/* 首页 7 幕的场景元素（assets/js/home.js 建）。舞台坐标是 px，story.js 整体缩放。
   电脑舞台 1200×720（.story__stage--desktop），手机舞台 390×760（.story__stage--mobile）。 */

.story__stage .h-card {
  position: absolute;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(120, 90, 20, 0.08);
}

.h-inner,
.h-lab,
.h-gap,
.h-yel,
.h-tile,
.h-sku,
.h-cv,
.h-out,
.h-ph,
.h-cvl,
.h-cta,
.h-q__label,
.h-q__big {
  position: absolute;
}

.h-inner {
  opacity: 0;
}

/* scene 1: role cards */
.h-role__body {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
}

.h-role__n {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.h-role__who {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.h-role__head {
  display: flex;
  align-items: center;
}

.h-av {
  flex: none;
  display: block;
  overflow: hidden;
  width: 52px;
  height: 52px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--bg-2);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2);
}

.h-av img {
  display: block;
  width: 100%;
  height: 100%;
}

.h-todo {
  margin-top: 16px;
}

.h-todo__i {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 24px;
  color: #4a4438;
  white-space: nowrap;
}

/* an empty checkbox in front of each to-do */
.h-todo__i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 1.5px solid #d4c7a6;
  border-radius: 3px;
}

.h-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

/* scenes 2–3: queue / inbox panels */
.h-big {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.h-lbl {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.h-q__big {
  text-align: right;
}

.h-sku {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(120, 90, 20, 0.06);
}

.h-sku__p {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 28px;
  background: var(--shot);
}

.h-sku__p img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-sku__tag {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--y);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.h-sku__no {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 27px;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.h-cal {
  position: absolute;
  font-size: 17px;
  line-height: 1.5;
  white-space: nowrap;
}

.h-cal s,
.h-cal b {
  margin-left: 10px;
}

.h-cal s {
  color: #b5a88a;
}

.h-cal b {
  color: var(--warn);
}

.h-cv {
  padding: 14px;
  border: 1px solid #e6dcc6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.h-cv__hd {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.h-cv__ini {
  flex: none;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  color: #5a4a26;
  background: #fbe3a6;
}

.h-cv--under .h-cv__n,
.h-cv--under .h-cv__r,
.h-cv--under .h-cv__l {
  visibility: hidden;
}

.h-cv__ini--1 {
  background: #f7d4c4;
}

.h-cv__ini--2 {
  background: #cfe6dc;
}

.h-cv__ini--3 {
  background: #dcd6f2;
}

.h-cv__n {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.h-cv__r {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}

.h-cv__l {
  position: relative;
  padding-left: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: #4a4438;
  white-space: nowrap;
}

.h-cv__l::before,
.h-jd__l::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9b88f;
}

.story__stage .h-jd {
  padding: 16px;
  opacity: 0;
}

.h-jd__role {
  margin: 4px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

/* "通用模板" as a rubber stamp: the JD is a copy-paste */
.h-jd__stamp {
  display: inline-block;
  margin-bottom: 12px;
  padding: 1px 8px;
  border: 1.5px solid var(--warn);
  border-radius: 4px;
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  white-space: nowrap;
  -webkit-transform: rotate(-6deg);
  transform: rotate(-6deg);
}

.h-jd__l {
  position: relative;
  padding-left: 11px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #4a4438;
  white-space: nowrap;
}

.h-note {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid #f1d3a8;
  border-radius: 10px;
  background: #fff6ea;
  color: #8a5414;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0;
}

/* scene 4: puzzle */
.h-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(120, 90, 20, 0.05);
  color: #8a7448;
}

.story__stage svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h-tile__i svg {
  display: block;
  width: 30px;
  height: 30px;
}

.h-tile__n {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}

.h-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #e0a63a;
  border-radius: 8px;
  color: #e0a63a;
  opacity: 0;
}

.h-gap__i svg {
  display: block;
  width: 30px;
  height: 30px;
}

/* the label sits inside its slot, under the icon */
.story__stage .h-gap {
  -webkit-box-align: start;
  align-items: flex-start;
  padding-top: 18px;
}

.story__stage .h-lab--in {
  padding-top: 42px;
}

.h-yel {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--y);
  box-shadow: 0 8px 20px rgba(255, 194, 61, 0.35);
  opacity: 0;
}

.h-yel .h-av {
  width: 44px;
  height: 44px;
  margin: 0;
  box-shadow: 0 0 0 2px #fff;
}

.h-lab {
  opacity: 0;
}

.h-lab__t {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #6b5a33;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}

.h-lab--in {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* scene 5: person asks in one sentence, the digital worker ticks off steps */
.story__stage .h-chat {
  padding: 22px;
}

.h-chat__r {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.h-chat__r b {
  flex: none;
  overflow: hidden;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--y);
}

.h-chat__r b img {
  display: block;
  width: 100%;
  height: 100%;
}

.h-who {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--faint);
}

.h-who--me {
  text-align: right;
}

.h-bub {
  margin-bottom: 12px;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.5;
}

.h-bub--me {
  width: -webkit-max-content;
  width: max-content;
  max-width: 100%;
  min-height: 46px;
  margin-left: auto;
  background: var(--ink);
  color: #fff;
}

.h-bub--ai {
  display: flex;
  align-items: flex-start;
  background: var(--shot);
}

.h-bub__steps {
  flex: 1 1 auto;
  min-width: 0;
}

/* the result the digital worker hands back, right of its ticked steps */
.h-res {
  flex: none;
  width: 150px;
  margin: 6px 0 4px 12px;
  opacity: 0;
}

.h-res__l {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--faint);
}

.h-res__g {
  display: flex;
  flex-wrap: wrap;
  width: 116px;
}

.h-res__g img {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 4px 4px 0;
  border-radius: 6px;
  background: #fff;
}

.h-res__d {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}

.h-res__c {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
}

.h-res__c .h-cv__ini {
  background: #cfe6dc;
}

.h-res__b b,
.h-res__b span {
  display: block;
  white-space: nowrap;
}

.h-res__b b {
  font-size: 14px;
  line-height: 1.5;
}

.h-res__b span {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ok);
}

.h-res__b span:last-child {
  color: var(--warn);
}

.h-st {
  display: flex;
  align-items: center;
  margin: 7px 0;
  font-size: 15px;
  line-height: 1.4;
  color: #444;
  opacity: 0;
}

.h-st b {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border-radius: 50%;
  background: #e8dfcb;
}

.h-st i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--y2);
  opacity: 0;
}

.h-st svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* scene 6: product cards (real links) */
.story__stage .h-pc {
  display: block;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.story__stage .h-pc:hover {
  border-color: var(--y2);
  box-shadow: 0 18px 40px rgba(120, 90, 20, 0.14);
}

.h-pc__n {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.h-pc__d {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.h-pc__go {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 2px solid var(--y2);
}

.h-ph,
.h-out {
  overflow: hidden;
  border-radius: 10px;
  background: var(--shot);
}

.h-out {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(120, 90, 20, 0.1);
}

.h-ph img,
.h-out img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-cvl {
  font-size: 15px;
  line-height: 22px;
  color: #4a4438;
  white-space: nowrap;
}

.h-cvl__t {
  position: relative;
}

/* a highlighter stroke under the lower half of the words that match the profile */
.h-cvl i {
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 1px;
  height: 45%;
  border-radius: 3px;
  background: var(--y);
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}

/* scene 7: closing buttons */
.h-cta {
  right: 0;
  text-align: center;
  opacity: 0;
}

.story__stage .btn {
  min-height: 0;
  height: 48px;
  padding: 0 28px;
  border-radius: 24px;
  font-size: 16px;
}

.story__stage .story__soon {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.story__soon.is-pulse {
  -webkit-animation: h-pulse 1.2s ease;
  animation: h-pulse 1.2s ease;
}

@-webkit-keyframes h-pulse {
  0%, 100% { color: var(--faint); }
  30% { color: var(--ink); }
}

@keyframes h-pulse {
  0%, 100% { color: var(--faint); }
  30% { color: var(--ink); }
}

/* ---------- phone stage (390×760) ---------- */

.story__stage--mobile .h-role__body {
  padding: 14px;
}

.story__stage--mobile .h-role__n {
  font-size: 15px;
}

.story__stage--mobile .h-role__who {
  font-size: 12px;
}

.story__stage--mobile .h-role__head {
  display: block;
}

.story__stage--mobile .h-av {
  width: 34px;
  height: 34px;
  margin: 0 0 6px;
}

.story__stage--mobile .h-todo {
  margin-top: 8px;
}

.story__stage--mobile .h-todo__i {
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 19px;
}

.story__stage--mobile .h-todo__i::before {
  top: 5px;
  width: 8px;
  height: 8px;
  border-width: 1.2px;
  border-radius: 2px;
}

/* the phone card is short: two to-dos are enough */
.story__stage--mobile .h-todo__i:nth-child(n+3) {
  display: none;
}

.story__stage--mobile .h-sku__p {
  bottom: 22px;
}

.story__stage--mobile .h-sku__tag {
  right: 4px;
  top: 4px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 15px;
}

.story__stage--mobile .h-sku__no {
  height: 22px;
  font-size: 10.5px;
  line-height: 21px;
}

.story__stage--mobile .h-badge {
  right: 10px;
  top: 12px;
  padding: 2px 7px;
  font-size: 11px;
}

.story__stage--mobile .h-big {
  font-size: 34px;
}

.story__stage--mobile .h-lbl {
  font-size: 13px;
}

.story__stage--mobile .h-cal {
  font-size: 15px;
}

.story__stage--mobile .h-cal s,
.story__stage--mobile .h-cal b {
  margin-left: 8px;
}

.story__stage--mobile .h-cv {
  padding: 10px;
}

.story__stage--mobile .h-cv__hd {
  margin-bottom: 5px;
}

.story__stage--mobile .h-cv__ini {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  font-size: 11px;
  line-height: 20px;
}

.story__stage--mobile .h-cv__n {
  font-size: 12px;
}

.story__stage--mobile .h-cv__r {
  margin-bottom: 5px;
  padding-bottom: 5px;
  font-size: 10.5px;
}

.story__stage--mobile .h-cv__l {
  padding-left: 8px;
  font-size: 10.5px;
}

.story__stage--mobile .h-cv__l::before,
.story__stage--mobile .h-jd__l::before {
  width: 3px;
  height: 3px;
}

.story__stage--mobile .h-jd__role {
  margin: 2px 0 6px;
  font-size: 14px;
}

.story__stage--mobile .h-jd__stamp {
  margin-bottom: 8px;
  padding: 0 5px;
  font-size: 11px;
}

.story__stage--mobile .h-jd__l {
  padding-left: 8px;
  font-size: 10.5px;
  line-height: 1.8;
}

.story__stage--mobile .h-tile__i svg {
  width: 22px;
  height: 22px;
}

.story__stage--mobile .h-tile__n {
  margin-top: 5px;
  font-size: 11.5px;
}

/* phone: the gap's label sits inside the slot, under the icon */
.story__stage--mobile .h-gap {
  padding-top: 14px;
}

.story__stage--mobile .h-gap__i svg {
  width: 22px;
  height: 22px;
}

.story__stage--mobile .h-lab--in {
  padding-top: 30px;
}

.story__stage--mobile .h-yel .h-av {
  width: 32px;
  height: 32px;
}

.story__stage--mobile .h-jd {
  padding: 12px;
}


.story__stage--mobile .h-note {
  padding: 9px 12px;
  font-size: 14px;
}

.story__stage--mobile .h-lab__t {
  padding: 2px 6px;
  font-size: 11px;
}

.story__stage--mobile .h-chat {
  padding: 14px 16px;
}

.story__stage--mobile .h-chat__r {
  margin-bottom: 6px;
  font-size: 13px;
}

.story__stage--mobile .h-chat__r b {
  width: 22px;
  height: 22px;
}

.story__stage--mobile .h-who {
  margin-bottom: 4px;
  font-size: 11px;
}

.story__stage--mobile .h-bub {
  margin-bottom: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.story__stage--mobile .h-bub--me {
  min-height: 0;
}

.story__stage--mobile .h-st {
  margin: 4px 0;
  font-size: 13px;
}

.story__stage--mobile .h-chat__r b {
  width: 24px;
  height: 24px;
}

.story__stage--mobile .h-res {
  width: 96px;
  margin: 2px 0 0 8px;
}

.story__stage--mobile .h-res__l {
  margin-bottom: 4px;
  font-size: 10.5px;
}

.story__stage--mobile .h-res__g {
  width: 68px;
}

.story__stage--mobile .h-res__g img {
  width: 31px;
  height: 31px;
  margin: 0 3px 3px 0;
  border-radius: 4px;
}

/* the phone bubble is short: the pictures say it */
.story__stage--mobile .h-res__d {
  display: none;
}

.story__stage--mobile .h-res__c {
  display: block;
  padding: 6px 7px;
  border-radius: 8px;
}

.story__stage--mobile .h-res__c .h-cv__ini {
  display: none;
}

.story__stage--mobile .h-res__b b {
  font-size: 11.5px;
}

.story__stage--mobile .h-res__b span {
  font-size: 10.5px;
  line-height: 1.5;
}

.story__stage--mobile .h-cvl {
  font-size: 11.5px;
  line-height: 17px;
}

.story__stage--mobile .h-st b {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.story__stage--mobile .h-pc {
  padding: 18px 20px;
}

.story__stage--mobile .h-pc__n {
  font-size: 20px;
}

.story__stage--mobile .h-pc__d {
  margin-top: 2px;
  font-size: 13px;
}

.story__stage--mobile .h-pc__go {
  left: 20px;
  bottom: 16px;
  font-size: 14px;
}

/* the phone stage scales down to ~0.68 on a 375x667 screen; 66px keeps the real tap height >= 44px */
.story__stage--mobile .h-cta .btn {
  display: flex;
  width: 320px;
  height: 66px;
  margin: 0 auto;
  border-radius: 33px;
  font-size: 19px;
}

.story__stage--mobile .h-cta .btn + .btn {
  margin-top: 12px;
  margin-left: auto;
}
