/* ==========================================================================
   净影 · 视频解析下载
   设计令牌 → 基础样式 → 组件 → 响应式
   ========================================================================== */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --text: #0e1117;
  --text-2: #2b3240;
  --muted: #5d6678;
  --muted-2: #8a93a6;
  --line: #e6e9f1;
  --line-strong: #d5dae7;
  --accent: #5b5bf6;
  --accent-2: #8b5cf6;
  --btn-from: #5b5bf6;
  --btn-to: #8b5cf6;
  --btn-shadow: rgba(91, 91, 246, 0.85);
  --accent-soft: #eeeefe;
  --danger: #e5484d;
  --ok: #12a594;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(39, 42, 90, 0.28), 0 4px 12px rgba(16, 24, 40, 0.06);
  --ring: rgba(91, 91, 246, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 64px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #0a0c11;
  --bg-soft: #0d1016;
  --surface: #12151c;
  --surface-2: #171b24;
  --text: #edf0f7;
  --text-2: #d4dae8;
  --muted: #98a2b7;
  --muted-2: #6f7a8e;
  --line: #222836;
  --line-strong: #2f3748;
  --accent: #7b7bff;
  --accent-2: #a78bfa;
  --btn-from: #4f46e5;
  --btn-to: #7c3aed;
  --btn-shadow: rgba(79, 70, 229, 0.7);
  --accent-soft: #1a1b33;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.4);
  --ring: rgba(123, 123, 255, 0.25);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

textarea,
input {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.container.narrow {
  width: min(780px, calc(100% - 40px));
}

/* ------------------------------- 背景装饰 ------------------------------- */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 22s ease-in-out infinite;
}

.blob-1 {
  width: 42rem;
  height: 42rem;
  top: -18rem;
  left: -10rem;
  background: radial-gradient(circle at 30% 30%, rgba(109, 94, 252, 0.45), transparent 65%);
}

.blob-2 {
  width: 34rem;
  height: 34rem;
  top: -8rem;
  right: -8rem;
  background: radial-gradient(circle at 60% 40%, rgba(255, 110, 160, 0.32), transparent 65%);
  animation-delay: -7s;
}

.blob-3 {
  width: 36rem;
  height: 36rem;
  top: 26rem;
  left: 40%;
  background: radial-gradient(circle at 50% 50%, rgba(45, 179, 199, 0.22), transparent 65%);
  animation-delay: -14s;
}

html[data-theme='dark'] .blob {
  opacity: 0.32;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(120, 130, 160, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 130, 160, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 40%, transparent 75%);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2rem, 2.5rem) scale(1.06);
  }
}

/* ------------------------------- 顶部导航 ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px -6px rgba(91, 91, 246, 0.7);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-mark.small {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand-mark.small svg {
  width: 19px;
  height: 19px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.16s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

html[data-theme='light'] .icon-moon,
html[data-theme='dark'] .icon-sun {
  display: none;
}

/* ------------------------------- Hero ------------------------------- */

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 165, 148, 0.16);
}

.hero-title {
  margin: 22px 0 0;
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-title .grad {
  display: block;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, #f472b6 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
}

/* ------------------------------- 解析卡片 ------------------------------- */

.parser-card {
  margin: 34px auto 0;
  max-width: 780px;
  padding: 18px;
  text-align: left;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.platform-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  background: var(--bg-soft);
  transition: all 0.15s ease;
}

.chip:hover {
  color: var(--text);
}

.chip.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.pdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

.input-wrap {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 4px var(--ring);
}

.input-wrap textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  max-height: 220px;
  padding: 17px 18px 42px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.5;
}

.input-wrap textarea::placeholder {
  color: var(--muted-2);
}

.input-tools {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 2px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.15s ease;
}

.ghost-btn svg {
  width: 15px;
  height: 15px;
}

.ghost-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.parser-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track .switch-knob {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch-track {
  box-shadow: 0 0 0 3px var(--ring);
}

.switch-label {
  font-size: 13.5px;
  color: var(--muted);
}

.primary-btn {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  box-shadow: 0 10px 24px -10px var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  overflow: hidden;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 16px 30px -12px var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.primary-btn:disabled {
  cursor: progress;
  filter: saturate(0.75);
}

.primary-btn .btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.primary-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.primary-btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.primary-btn.loading .btn-label,
.primary-btn.loading .btn-arrow {
  display: none;
}

.primary-btn.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.parser-hint {
  margin: 12px 2px 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

.parser-hint.error {
  color: var(--danger);
}

/* ------------------------------- 结果区 ------------------------------- */

.results {
  max-width: 780px;
  margin: 26px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.result-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #1b1e2b, #2c2f42);
  aspect-ratio: 9 / 12;
  align-self: start;
}

/* 图文作品：封面收小一点，把空间让给图片网格 */
.result-card.type-images {
  grid-template-columns: 168px 1fr;
}

.result-card.type-images .result-media {
  aspect-ratio: 3 / 4;
  max-height: 224px;
}

.result-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-media .media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.media-badges {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  pointer-events: none;
}

.badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 12, 18, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.badge.platform {
  background: color-mix(in srgb, var(--pcolor, #fe2c55) 82%, #000 8%);
}

.result-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.author-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.result-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.result-stats svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.quality-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.qchip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: all 0.14s ease;
}

/* 需要服务端合并音轨的档位（YouTube 高清）加个小圆点 */
.merge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
}

.qchip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.qchip.active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  transition: all 0.15s ease;
  overflow: hidden;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.action-btn.primary {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  box-shadow: 0 8px 20px -10px var(--btn-shadow);
}

.action-btn.primary:hover {
  box-shadow: 0 12px 24px -10px var(--btn-shadow);
}

.action-btn .dl-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.15s linear;
  pointer-events: none;
}

.action-btn .dl-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* 图片网格 */
.result-extra {
  grid-column: 1 / -1;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.image-cell {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

.image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-cell:hover img {
  transform: scale(1.05);
}

.image-cell .img-dl {
  position: absolute;
  inset: auto 6px 6px auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.image-cell:hover .img-dl {
  opacity: 1;
}

.image-cell .img-dl svg {
  width: 14px;
  height: 14px;
}

/* 骨架屏 */
.skeleton-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sk {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, color-mix(in srgb, var(--bg-soft) 55%, var(--surface)) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.sk-media {
  aspect-ratio: 9 / 12;
  border-radius: 14px;
}

.sk-line {
  height: 12px;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.loading-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 2px;
}

.loading-hint .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* 错误提示 */
.error-card {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  animation: rise 0.3s ease both;
}

.error-card .err-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--danger);
}

.error-card h4 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 650;
}

.error-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* 批量列表 */
.batch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  padding: 0 4px;
}

.batch-head button {
  font-size: 13px;
  color: var(--accent);
  font-weight: 550;
}

.batch-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: rise 0.35s ease both;
}

.batch-thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.batch-info {
  min-width: 0;
  flex: 1;
}

.batch-info h4 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-info p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-item .action-btn {
  height: 36px;
  padding: 0 13px;
  font-size: 13px;
  flex-shrink: 0;
}

.batch-fail {
  color: var(--danger);
  font-size: 13px;
}

/* ------------------------------- 通用 section ------------------------------- */

.section {
  padding: 76px 0;
}

.section.alt {
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 8px 18px -8px var(--c1);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 650;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* 平台 */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 860px;
  margin-inline: auto;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.platform-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.platform-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--c);
  flex-shrink: 0;
}

.platform-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
}

.platform-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.tag.ok {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.faq-body {
  padding: 0 18px 16px;
}

.faq-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ------------------------------- 页脚 ------------------------------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand strong {
  font-size: 15px;
  font-weight: 700;
}

.footer-brand p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

.footer-note {
  margin: 0;
  max-width: 480px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.footer-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--accent);
}

/* ------------------------------- Toast ------------------------------- */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(420px, calc(100% - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  color: #fff;
  background: color-mix(in srgb, #14161f 92%, transparent);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  max-width: 100%;
}

.toast.out {
  animation: toast-out 0.2s ease forwards;
}

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

/* ------------------------------- 入场动画 ------------------------------- */

.reveal {
  animation: reveal-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------- 平台图标条 ------------------------------- */

.platform-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
}

.strip-label {
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.strip-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.strip-item:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.pico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 72%, #ffffff));
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--c) 75%, transparent);
  flex-shrink: 0;
}

.pico svg {
  width: 16px;
  height: 16px;
}

.strip-more {
  opacity: 0.72;
}

/* B 站画质提示 */
.result-hint {
  margin: -6px 0 12px;
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ------------------------------- 免责提示条 ------------------------------- */

.consent-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(760px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.32s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.consent-bar[hidden] {
  display: none;
}

.consent-bar p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.consent-bar a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.consent-more {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.consent-ok {
  padding: 8px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  box-shadow: 0 8px 18px -10px var(--btn-shadow);
  white-space: nowrap;
}

/* ------------------------------- 法务页 ------------------------------- */

.legal {
  padding: 52px 0 80px;
}

.legal .container {
  max-width: 780px;
}

.legal-card {
  padding: 32px 34px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--muted-2);
}

.legal h2 {
  margin: 26px 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.legal p,
.legal li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.legal p {
  margin: 0 0 10px;
}

.legal ul {
  margin: 0 0 10px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 4px;
}

.legal strong {
  color: var(--text-2);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.legal-back:hover {
  color: var(--text);
}

/* ------------------------------- 商务合作 ------------------------------- */

.biz-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  border: 0;
  background: transparent;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.biz-link:hover {
  background: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-section {
  padding-top: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background-image: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%);
}

.contact-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
}

.contact-info h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 740;
  letter-spacing: -0.01em;
}

.contact-info p {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.contact-qq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 18px 26px;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}

.qq-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.qq-num {
  font-family: 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.contact-qq .action-btn {
  margin-top: 6px;
  height: 34px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .contact-card {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 24px 20px;
  }
  .contact-qq {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
  }
  .contact-qq .action-btn {
    margin-top: 0;
  }
  .biz-link {
    display: none;
  }
}

/* ------------------------------- 响应式 ------------------------------- */

.only-desktop {
  display: inline;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .consent-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    bottom: 12px;
    padding: 12px 14px;
  }
  .consent-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .platform-strip {
    gap: 10px 12px;
  }
  .strip-label {
    width: 100%;
    text-align: center;
  }
  .legal-card {
    padding: 24px 20px 28px;
  }
  .hero {
    padding: 40px 0 28px;
  }
  .container,
  .header-inner {
    width: calc(100% - 28px);
  }
  .result-card,
  .skeleton-card {
    grid-template-columns: 1fr;
  }
  .result-media {
    aspect-ratio: 16 / 10;
    max-height: 240px;
  }
  .parser-card {
    padding: 14px;
    border-radius: 18px;
  }
  .parser-actions {
    flex-wrap: wrap;
  }
  .primary-btn {
    margin-left: 0;
    width: 100%;
    order: 2;
  }
  .header-actions {
    margin-left: auto;
  }
  .switch {
    order: 1;
  }
  .only-desktop {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid {
    gap: 12px;
  }
  .section {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }
}

@media (max-width: 420px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .result-actions .action-btn {
    flex: 1 1 auto;
  }
}

/* ========================================================================
   视觉升级：章节节奏 / 卡片质感 / 细节动效
   全部走 CSS 变量，深色模式自动跟随
   ======================================================================== */

/* ---------- 1. 章节标题：英文小标 + 渐变小下划线 ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  margin-bottom: 48px;
}

.section-head[data-eyebrow]::before {
  content: attr(data-eyebrow);
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.24em;
  color: var(--accent);
  opacity: 0.72;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.section-head p {
  margin-top: 16px;
}

/* 交替底色：更柔和的分层，而不是一条生硬的分割线 */
.section.alt {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 60%),
    color-mix(in srgb, var(--bg-soft) 62%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

/* ---------- 2. 功能卡：顶部渐变细线 + 图标光环 ---------- */
.feature {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.feature::after {
  content: '';
  position: absolute;
  inset: -40% -30% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.feature:hover::before,
.feature:hover::after {
  opacity: 1;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow:
    0 10px 22px -10px var(--c1),
    0 0 0 1px color-mix(in srgb, var(--c1) 18%, transparent);
  transition: transform 0.24s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.06) rotate(-3deg);
}

/* ---------- 3. 步骤卡：幽灵数字 + 连接线 ---------- */
.steps {
  gap: 20px;
}

.step {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step::after {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  right: 12px;
  top: -14px;
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.step-no {
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. 平台卡：品牌色浸染 ---------- */
.platform-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--c) 8%, var(--surface)), var(--surface) 62%);
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 34%, var(--line));
  box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--c) 70%, transparent);
}

.platform-logo {
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--c) 85%, transparent);
  transition: transform 0.22s ease;
}

.platform-card:hover .platform-logo {
  transform: scale(1.08);
}

/* ---------- 5. FAQ：卡片化 + 展开态高亮 ---------- */
.faq {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, background 0.2s ease;
}

.faq:hover {
  border-color: var(--line-strong);
}

.faq[open] {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 12px 30px -20px rgba(16, 24, 40, 0.28);
  background: var(--surface);
}

.faq summary {
  padding: 17px 20px;
  font-size: 15px;
  transition: color 0.16s ease;
}

.faq[open] summary {
  color: var(--accent);
}

/* ---------- 6. 顶部平台小条：更精致的胶囊 ---------- */
.strip-item {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.strip-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

/* ---------- 7. 深色模式微调 ---------- */
[data-theme='dark'] .feature,
[data-theme='dark'] .step {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 80%, #000));
}

[data-theme='dark'] .step::after {
  opacity: 0.07;
}

[data-theme='dark'] .platform-card {
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 65%);
}

[data-theme='dark'] .section.alt {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    color-mix(in srgb, var(--bg-soft) 90%, #000);
}

/* ---------- 8. 小屏适配 ---------- */
@media (max-width: 760px) {
  .section {
    padding: 66px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .step::after {
    font-size: 62px;
    top: -10px;
  }
}

/* ---------- 9. 页脚备案号：底部居中 ---------- */
.footer-icp {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.footer-icp:empty {
  display: none;
}

.footer-icp a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-icp a:hover {
  color: var(--accent);
  text-decoration: underline;
}


