:root {
  --ink: #172036;
  --muted: #5b6680;
  --line: #e4e8f2;
  --card: #ffffff;
  --bg: #f3f5fb;
  --blue: #3657e8;
  --violet: #7b4fe0;
  --orange: #ff6a2b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; }
p, figcaption, footer, h3 { text-wrap: pretty; }
.nb { display: inline-block; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 16px 92px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(520px 260px at 12% 0%, rgba(255,140,90,.55), transparent 70%),
    radial-gradient(560px 300px at 92% 10%, rgba(64,214,255,.45), transparent 70%),
    linear-gradient(135deg, #2f4be0 0%, #5a46e2 52%, #8b45d8 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(243,245,251,0), var(--bg));
}
.tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 12px;
  font-size: 13px;
  letter-spacing: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
}
h1 { margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: 1px; text-shadow: 0 3px 16px rgba(20,20,80,.25); }
.slogan { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: #ffe9a8; }
.lead { margin: 6px auto 0; max-width: 560px; font-size: 14px; opacity: .9; }
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: -74px auto 0;
  padding: 0 16px 28px;
}
.narrow { max-width: 760px; margin: 0 auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(40,50,110,.10);
}

/* ---------- video stage ---------- */
.stage {
  --pw: max(420px, min(720px, calc(100vh - 190px), calc(100vw - 390px)));
  display: grid;
  grid-template-columns: var(--pw) 290px;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
}
.screen { min-width: 0; }
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  background: #0f1630;
  border-radius: 12px;
}
.player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0f1630; }
.now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin: 0 auto;
  padding: 10px 4px 2px;
}
.now strong { font-size: 17px; }
.now span { color: var(--muted); font-size: 14px; }

.list-title { margin: 2px 4px 8px; font-size: 14px; color: var(--muted); }
.playlist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px;
  font: inherit;
  text-align: left;
  color: inherit;
  background: #f7f8fd;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.item:hover { background: #eef1ff; }
.item img {
  flex: none;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 9px;
  background: #0f1630;
}
.item-body { min-width: 0; }
.item-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.item-desc { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.item-time {
  display: inline-block;
  margin-top: 4px;
  padding: 0 8px;
  font-size: 12px;
  color: #3a47a8;
  background: #e7ebff;
  border-radius: 999px;
}
.item.active {
  background: #fff;
  border-color: #c9d2ff;
  box-shadow: 0 6px 18px rgba(54,87,232,.14), inset 4px 0 0 var(--blue);
}
.item.active .item-time { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.item[data-id="edit"] .item-time { color: #a24a12; background: #fff1e6; }
.item[data-id="click"] .item-time { color: #17734a; background: #e8f8ef; }
.item[data-id="record"] .item-time { color: #8b2fc9; background: #f6ebff; }
.item[data-id="sync"] .item-time { color: #0b7fa6; background: #e4f6fc; }
.item.active[data-id] .item-time { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }

/* ---------- guide ---------- */
.section-title { display: flex; align-items: center; gap: 10px; margin: 22px 4px 10px; font-size: 19px; }
.section-title::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(var(--orange), var(--violet));
}
.steps { margin: 0; padding: 6px 18px; list-style: none; }
.step { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-no {
  flex: none;
  padding: 1px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.step:nth-child(2) .step-no { background: linear-gradient(135deg, #ff7a3d, #ff4f6d); }
.step:nth-child(3) .step-no { background: linear-gradient(135deg, #1fb57a, #19a3c9); }
.step:nth-child(4) .step-no { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.step:nth-child(5) .step-no { background: linear-gradient(135deg, #f59e0b, #f97316); }
.step-title { margin: 0; font-size: 16.5px; font-weight: 700; }
.step-text { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.kw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #c2410c;
  background: #fff4ec;
  border: 1px solid #ffd2b5;
  border-radius: 10px;
  cursor: pointer;
}
.kw small { font-weight: 400; font-size: 12px; color: #d9733a; }
.kw:hover { background: #ffeadb; }
.kw.done { color: #17734a; background: #e8f8ef; border-color: #b5e6cc; }
.kw.done small { color: #17734a; }
.note { margin: 8px 0 0; padding: 7px 11px; font-size: 13.5px; color: #8a5a00; background: #fff8e6; border-radius: 8px; }
.shop-figure {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 10px 0 0;
  padding: 10px;
  background: #f6f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shop-figure img {
  flex: none;
  width: 200px;
  height: 200px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(40,50,110,.12);
}
.shop-figure figcaption { color: var(--muted); font-size: 14px; }
.shop-figure figcaption b { color: var(--ink); }
.delivery {
  margin: 8px 0 0;
  padding: 9px 12px;
  font-size: 14px;
  color: #17603a;
  background: #ecf9f2;
  border-left: 4px solid #2ea66a;
  border-radius: 8px;
}
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.tip { padding: 12px 14px; }
.tip h3 { margin: 0 0 2px; font-size: 15px; }
.tip p { margin: 0; font-size: 13.5px; color: var(--muted); }
.tip:nth-child(1) { border-top: 3px solid #3b82f6; }
.tip:nth-child(2) { border-top: 3px solid #22c55e; }
.tip:nth-child(3) { border-top: 3px solid #f97316; }
footer { padding: 6px 16px 28px; text-align: center; color: #8a93a8; font-size: 12.5px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 9;
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  font-size: 14px;
  color: #fff;
  background: rgba(20,26,50,.9);
  border-radius: 999px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 760px) {
  .hero { padding: 32px 16px 100px; }
  h1 { font-size: 34px; }
}
/* tablet / phone: list goes under the player as a swipe row */
@media (max-width: 899px) {
  .wrap { max-width: 760px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; width: auto; }
  .list-title { margin: 0 2px 6px; }
  .playlist {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .playlist li { flex: none; width: 150px; scroll-snap-align: start; }
  .item { flex-direction: column; align-items: stretch; gap: 6px; height: 100%; padding: 6px; }
  .item img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .item-name { font-size: 14px; }
  .item-desc { display: none; }
  .item.active { box-shadow: 0 6px 18px rgba(54,87,232,.14), inset 0 -3px 0 var(--blue); }
}
@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .slogan { font-size: 15.5px; }
  .wrap { padding: 0 12px 24px; }
  .playlist li { width: 128px; }
  .steps { padding: 4px 14px; }
  .shop-figure { flex-direction: column; align-items: stretch; }
  .shop-figure img { width: 100%; height: auto; max-width: 320px; margin: 0 auto; }
  .tips { grid-template-columns: 1fr; gap: 8px; }
}
