/* 悟空 API homepage tutorial player — loaded from no-cache index.html */
.wk-tutorial-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
  background: transparent;
  pointer-events: none;
}
/* 全站 html { zoom: 0.9 }，100vh 再乘 zoom 容易溢出。可用高度按 0.9 折算，
   宽度也可按「画布 16:9 + 底部字幕/控件」反算，保证一屏看完、不必滚动。 */
body:has(.wk-tutorial-modal) {
  overflow: hidden;
}
.wk-tutorial-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.72);
}
.wk-tutorial-modal-inner {
  --wk-zoom: 0.9;
  --wk-chrome: 104px;
  --wk-avail-h: calc(100vh * var(--wk-zoom) - 2.5rem);
  --wk-avail-w: min(1100px, calc(100vw * var(--wk-zoom) - 2.5rem));
  --wk-w: min(var(--wk-avail-w), calc((var(--wk-avail-h) - var(--wk-chrome)) * 16 / 9));
  --wk-h: calc(var(--wk-w) * 9 / 16 + var(--wk-chrome));
  position: relative;
  width: var(--wk-w);
  max-width: 100%;
  max-height: min(var(--wk-avail-h), 100%);
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}
.wk-tutorial-modal-inner iframe {
  display: block;
  width: 100%;
  height: var(--wk-h);
  max-height: var(--wk-avail-h);
  border: 0;
  background: #ffffff;
}
.wk-tutorial-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.wk-tutorial-close:hover {
  background: rgba(15, 23, 42, 0.95);
}
html.dark .wk-tutorial-modal-inner,
html.dark .wk-tutorial-modal-inner iframe {
  background: #0f1724;
}
@media (max-width: 640px) {
  .wk-tutorial-modal {
    padding: 0.75rem;
  }
  .wk-tutorial-modal-inner {
    --wk-avail-h: calc(100vh * var(--wk-zoom) - 1.5rem);
    --wk-avail-w: min(1100px, calc(100vw * var(--wk-zoom) - 1.5rem));
  }
}

/* Explicit scoped layout: live Tailwind bundle has no lg:col-span-6 utility.
   Never place new children into its 12-track grid using missing spans. */
.wk-setup-hero { display:block; flex:0 0 auto; width:100%; max-width:100%; min-width:0; box-sizing:border-box; padding:104px 32px 40px; }
.wk-setup-hero .wk-setup-layout { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:32px; width:100%; max-width:1280px; min-width:0; margin:0 auto; }
.wk-setup-hero .wk-setup-copy,.wk-setup-hero .wk-setup-media { grid-column:auto; width:100%; max-width:100%; min-width:0; }
.wk-setup-hero .wk-setup-copy { display:flex; flex-direction:column; justify-content:center; }
.wk-setup-hero .wk-setup-heading { width:100%; min-width:0; margin:8px 0 0; font-size:clamp(30px,3.3vw,48px); line-height:1.18; font-weight:750; letter-spacing:-.035em; color:#0f172a; word-break:normal; overflow-wrap:normal; }
.wk-setup-hero .wk-setup-description { margin:18px 0 0; width:100%; min-width:0; font-size:16px; line-height:1.8; color:#64748b; }
.wk-setup-hero .wk-setup-entries { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; min-width:0; margin-top:24px; }
.wk-setup-hero .wk-setup-entry { display:flex; flex-direction:column; width:100%; min-width:0; box-sizing:border-box; padding:20px; border-radius:16px; text-align:left; text-decoration:none; cursor:pointer; }
.wk-setup-hero .wk-setup-scratch { color:#fff; background:#0f172a; border:1px solid #0f172a; }
.wk-setup-hero .wk-setup-quick { color:#0f172a; background:#fff; border:1px solid #cbd5e1; }
.wk-setup-hero .wk-setup-clients { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; width:100%; min-width:0; }
.wk-setup-hero .wk-setup-client { display:inline-flex; align-items:center; gap:5px; font-size:12px; line-height:22px; white-space:nowrap; }
.wk-setup-hero .wk-setup-client-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 22px; width:22px; height:22px; color:#0f172a; background:white; border-radius:50%; }
.wk-setup-hero .wk-setup-poster { display:block; position:relative; width:100%; min-width:0; aspect-ratio:16/9; overflow:hidden; border-radius:24px; background:#f1f5f9; border:1px solid #e2e8f0; }
.wk-setup-hero .wk-tutorial-frame { position:absolute; inset:0; width:100%; height:100%; min-width:0; }
.wk-setup-hero .wk-setup-play { display:flex; position:absolute; inset:0; width:100%; height:100%; align-items:flex-end; justify-content:flex-start; padding:20px; border:0; background:transparent; cursor:pointer; }
html.dark .wk-setup-hero .wk-setup-heading { color:#f8fafc; }
html.dark .wk-setup-hero .wk-setup-description { color:#94a3b8; }
html.dark .wk-setup-hero .wk-setup-scratch { background:#f8fafc; color:#0f172a; border-color:#f8fafc; }
html.dark .wk-setup-hero .wk-setup-quick { background:#0f172a; color:#f8fafc; border-color:#475569; }
@media (min-width:1024px) { .wk-setup-hero .wk-setup-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; } }
@media (max-width:639px) { .wk-setup-hero { padding:88px 20px 28px; } .wk-setup-hero .wk-setup-entries { grid-template-columns:minmax(0,1fr); } .wk-setup-hero .wk-setup-heading { font-size:34px; } .wk-setup-hero .wk-setup-play { padding:14px; } }
