/* ==================== 全网视频解析落地页（复刻 4dj videoparsing） ==================== */
.vp-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}
.vp-box{
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 34px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,.02);
}
/* ---------- 头部 ---------- */
.vp-header{ text-align: center; margin-bottom: 24px; }
.vp-header h1{
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vp-header h1 svg{ color: #4a6cf7; }
.vp-header p{ margin: 0; font-size: 15px; color: #718096; }
/* ---------- 输入区 ---------- */
.vp-input-group{
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 16px;
}
.vp-input-group input{
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f7fafc;
  font-size: 14px;
  color: #1a202c;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  min-width: 0;
}
.vp-input-group input:focus{
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74,108,247,.08);
  background: #fff;
}
.vp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 30px;
  border: none;
  border-radius: 10px;
  background: #4a6cf7;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.vp-btn:hover{ background: #3a5cd9; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(74,108,247,.25); }
.vp-btn:disabled{ opacity: .7; cursor: not-allowed; transform: none; }
.vp-btn--primary{ background: #4a6cf7; }
.vp-btn--cover{ background: #38a169; }
.vp-btn--cover:hover{ background: #2f9d63; }
/* ---------- 通知条 ---------- */
.vp-notice{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 auto 26px;
  max-width: 680px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
  border-radius: 12px;
  font-size: 13px;
  color: #2d3748;
  line-height: 1.6;
}
.vp-notice-tag{
  flex: 0 0 auto;
  background: #4a6cf7;
  color: #fff;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 20px;
  margin-top: 2px;
}
.vp-notice-text b{ color: #1a202c; }
/* ---------- 加载/错误 ---------- */
.vp-loading{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  color: #718096;
  font-size: 14px;
}
.vp-spinner{
  width: 22px; height: 22px;
  border: 3px solid #e2e8f0;
  border-top-color: #4a6cf7;
  border-radius: 50%;
  animation: vp-spin .8s linear infinite;
}
@keyframes vp-spin{ to{ transform: rotate(360deg); } }
.vp-error{
  padding: 14px 16px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 10px;
  color: #c53030;
  font-size: 14px;
  margin-bottom: 20px;
}
/* ---------- 结果区 ---------- */
.vp-result{ margin-bottom: 24px; }
.vp-video{
  width: 100%;
  max-height: 480px;
  border-radius: 10px;
  background: #000;
  outline: none;
}
.vp-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.vp-gallery-item{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #eef2f6;
}
.vp-gallery-item img{
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.vp-gallery-dl{
  position: absolute;
  right: 6px; bottom: 6px;
  background: rgba(74,108,247,.9);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.vp-gallery-dl:hover{ background: #4a6cf7; }
.vp-info{ margin-top: 14px; }
.vp-info-title{ font-size: 15px; font-weight: 600; color: #1a202c; margin-bottom: 4px; }
.vp-info-author{ font-size: 13px; color: #718096; margin-bottom: 10px; }
.vp-info-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.vp-info-actions .vp-btn{ padding: 9px 20px; font-size: 13px; }
.vp-watermark-tip{
  margin-top: 10px;
  font-size: 12px;
  color: #a0aec0;
  background: #f7fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
}
/* ---------- 特性卡片 ---------- */
.vp-features-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.vp-card{
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vp-card:hover{
  border-color: #4a6cf7;
  box-shadow: 0 4px 16px rgba(74,108,247,.06);
  transform: translateY(-3px);
}
.vp-card-icon{ font-size: 30px; line-height: 1; margin-bottom: 10px; }
.vp-card h4{ margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #1a202c; }
.vp-card p{ margin: 0; font-size: 12px; color: #718096; line-height: 1.6; }
/* ---------- 底部两栏 ---------- */
.vp-bottom-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vp-card--panel{ text-align: left; padding: 20px; }
.vp-card--panel h3{ margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #1a202c; }
.vp-steps{ margin: 0; padding: 0; list-style: none; counter-reset: step; }
.vp-steps li{
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 42px;
  font-size: 13px;
  color: #2d3748;
  border-bottom: 1px dashed #eef2f6;
}
.vp-steps li:last-child{ border-bottom: none; }
.vp-steps li::before{
  content: counter(step);
  position: absolute;
  left: 0; top: 6px;
  width: 26px; height: 26px;
  background: #4a6cf7;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-types{ margin: 0; padding: 0; list-style: none; }
.vp-types li{
  padding: 10px 0;
  font-size: 13px;
  color: #2d3748;
  border-bottom: 1px dashed #eef2f6;
  line-height: 1.6;
}
.vp-types li:last-child{ border-bottom: none; }
/* ---------- 暗色模式适配（跟随站点 body.dark-mode） ---------- */
body.dark-mode .vp-box,
body.dark-mode .vp-card{ background: #16213e; border-color: #2a3a5a; }
body.dark-mode .vp-header h1,
body.dark-mode .vp-card h4,
body.dark-mode .vp-card--panel h3,
body.dark-mode .vp-notice-text b,
body.dark-mode .vp-info-title{ color: #e2e8f0; }
body.dark-mode .vp-header p,
body.dark-mode .vp-card p,
body.dark-mode .vp-info-author{ color: #8ea0c0; }
body.dark-mode .vp-input-group input{
  background: #1a2747;
  border-color: #2a3a5a;
  color: #e2e8f0;
}
body.dark-mode .vp-notice{
  background: linear-gradient(135deg, #16213e, #1d2b4f);
  color: #a8b8d8;
}
body.dark-mode .vp-watermark-tip{
  background: #1a2747;
  border-color: #2a3a5a;
  color: #8ea0c0;
}
body.dark-mode .vp-steps li,
body.dark-mode .vp-types li{ color: #cbd5e0; border-color: #2a3a5a; }
body.dark-mode .vp-gallery-item{ background: #1a2747; border-color: #2a3a5a; }
body.dark-mode .vp-error{ background: #2d1a1a; border-color: #4c2a2a; color: #feb2b2; }
/* ---------- 响应式 ---------- */
@media (max-width: 992px){
  .vp-features-grid{ grid-template-columns: repeat(2, 1fr); }
  .vp-bottom-row{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .vp-shell{ padding: 16px 12px 32px; }
  .vp-box{ padding: 20px 16px; border-radius: 14px; }
  .vp-header h1{ font-size: 22px; }
  .vp-input-group{ flex-direction: column; }
  .vp-input-group input{ width: 100%; }
  .vp-btn{ width: 100%; }
  .vp-gallery{ grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}
