/* AI 新媒体数字员工 · 首页动态产品图
   只保留两件东西：左边真机、右边自动化过程（任务四步 → 进度 → 已发布回执）。
   没有外框、没有标题栏、没有数据条。作用域 .yq-live。 */

.yq-live {
  --yq-ink: #0e2740;
  --yq-text: #4f6b85;
  --yq-mute: #8ba0b5;
  --yq-line: #e6eef7;
  --yq-blue: #2161e8;
  --yq-green: #0f9d63;
  --yq-green-soft: #35c98c;
  --yq-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  container-type: inline-size;
  padding: 10px 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--yq-ink);
  -webkit-font-smoothing: antialiased;
}

/* 两栏：真机 + 过程 ------------------------------------------------------ */
.yq-live .yq-body {
  display: grid;
  grid-template-columns: minmax(115px, 172px) minmax(0, 372px);
  gap: clamp(16px, 5cqw, 38px);
  align-items: center;
  justify-content: center;
}

.yq-live .yq-phone {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #eef3f9;
  padding: 5px;
  box-shadow: 0 34px 64px -44px rgba(18, 56, 104, .6);
  transition: transform .4s cubic-bezier(.22, .68, .28, 1), box-shadow .4s;
}
.yq-live .yq-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  background: #fff;
  aspect-ratio: 1000 / 2172;
  object-fit: cover;
  object-position: top center;
}
.yq-live:hover .yq-phone {
  transform: translateY(-2px);
  box-shadow: 0 40px 70px -44px rgba(18, 56, 104, .65);
}

/* 屏幕上缓慢扫过的一道光，表示界面在活着（极淡，不遮内容） */
.yq-live .yq-scan {
  position: absolute;
  left: 5px; right: 5px; top: 5px;
  height: 30%;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateY(-120%);
  pointer-events: none;
  opacity: .55;
}
.yq-live.is-running .yq-scan { animation: yq-scan 9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes yq-scan {
  0% { transform: translateY(-120%); }
  34%, 100% { transform: translateY(360%); }
}

/* 右侧：任务过程 --------------------------------------------------------- */
.yq-live .yq-run { min-width: 0; }

.yq-live .yq-task {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--yq-line);
  font: 10px/1 var(--yq-mono);
  color: var(--yq-mute);
  letter-spacing: .02em;
}
.yq-live .yq-task .yq-clock { color: #47678a; font-variant-numeric: tabular-nums; }

.yq-live .yq-steps {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
}
.yq-live .yq-steps li {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: clamp(6px, 2.6cqw, 11px);
  align-items: center;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--yq-mute);
  transition: color .35s;
}
.yq-live .yq-steps .n {
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 1px solid #d3e0ee;
  display: grid; place-items: center;
  font: 8.5px/1 var(--yq-mono);
  color: var(--yq-mute);
  transition: border-color .35s, background .35s, color .35s;
}
.yq-live .yq-steps .st {
  font: 9.5px/1 var(--yq-mono);
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--yq-mute);
  transition: color .35s;
}
.yq-live .yq-steps li[data-state="done"] { color: #26405b; }
.yq-live .yq-steps li[data-state="done"] .n {
  border-color: var(--yq-green-soft); background: #f0fbf5; color: var(--yq-green);
}
.yq-live .yq-steps li[data-state="done"] .st { color: var(--yq-green); }
.yq-live .yq-steps li[data-state="run"] { color: var(--yq-ink); }
.yq-live .yq-steps li[data-state="run"] .n {
  border-color: var(--yq-blue); background: #edf3ff; color: var(--yq-blue);
}
.yq-live .yq-steps li[data-state="run"] .st { color: var(--yq-blue); }
.yq-live.is-running .yq-steps li[data-state="run"] .n { animation: yq-ring 1.9s ease-out infinite; }
@keyframes yq-ring {
  0% { box-shadow: 0 0 0 0 rgba(33, 97, 232, .32); }
  70% { box-shadow: 0 0 0 7px rgba(33, 97, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 97, 232, 0); }
}

/* 进度 */
.yq-live .yq-track {
  margin-top: 17px;
  height: 3px;
  border-radius: 3px;
  background: #e8eff7;
  overflow: hidden;
}
.yq-live .yq-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #2161e8, #58c8ff);
  transition: width .5s cubic-bezier(.32, .72, .3, 1);
}
.yq-live .yq-track.is-uploading i { transition: width 3.2s linear; }

/* 回执 */
.yq-live .yq-receipt {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 5px;
  background: #f3fbf7;
  border-left: 2px solid var(--yq-green-soft);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s cubic-bezier(.22, .68, .28, 1), transform .5s cubic-bezier(.22, .68, .28, 1), visibility .5s;
}
.yq-live .yq-receipt.is-on { visibility: visible; opacity: 1; transform: none; }
.yq-live .yq-receipt b { font-size: 11px; font-weight: 600; color: var(--yq-green); letter-spacing: .02em; }
.yq-live .yq-receipt span { font: 9.5px/1 var(--yq-mono); color: #6f9384; }


.yq-live .yq-task span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.yq-live .yq-clock {
  flex: 0 0 auto;
}

@container (max-width: 390px) {
  .yq-live .yq-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    justify-items: center;
  }
  .yq-live .yq-phone { width: min(152px, 52cqw); }
  .yq-live .yq-run { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .yq-live *,
  .yq-live *::before,
  .yq-live *::after {
    animation: none !important;
    transition: none !important;
  }
  .yq-live .yq-scan { display: none; }
}
