/* ==========================================================================
   Zeus Insights · 主站 v3 样稿 · 方案 H2_free · story.css
   区块 5 面板里的四段画面（story.js 生成内容）。画板固定 680×600，由 --k 等比缩放。
   2026-10-04 第二轮修改：画板里的字号以画板单位写（最小 15），再按 --k 反向补偿：
   屏幕上的实际字号 = 画板字号 × k，任何时候不低于 13.3 像素（--f15 等变量）。
   靠加大卡片、减少行数与列数腾地方，不靠缩字。
   ========================================================================== */
.art {
  --st-bg: #FFFFFF; --st-bg2: #FAF8F5; --st-bg3: #F1EEE8;
  --st-line: #E9E5DE; --st-line2: #D8D3CA;
  --st-ink: #1E1D1B; --st-mut: #5F5C57;
  --st-ok: #1B6336; --st-ok-bg: #E1F2E6; --st-ok-dot: #1E9A50;
  --fmin: calc(13.3px / var(--k, 1));
  --f15: max(15px, var(--fmin)); --f16: max(16px, var(--fmin)); --f17: max(17px, var(--fmin));
  position: absolute; left: 50%; top: 50%; width: 680px; height: 600px;
  transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: 50% 50%;
  font-family: var(--f-sans); font-size: var(--f15); line-height: 1.35; color: var(--st-ink); text-align: left;
  -webkit-user-select: none; user-select: none;
}
.art code { font-family: var(--f-mono); font-size: var(--f15); letter-spacing: 0; }
.art b { font-weight: 600; }
.art em { font-style: normal; }
.art ol, .art ul { list-style: none; margin: 0; padding: 0; }
.art dl, .art dd { margin: 0; }

/* ---------- 01 需求清单 ---------- */
.st-doc { position: absolute; left: 100px; top: 30px; width: 480px; height: 540px; background: var(--st-bg); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); transform-origin: 50% 40%; }
.st-doc__bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; background: var(--st-bg2); border-bottom: 1px solid var(--st-line); }
.st-doc__bar b { font-size: var(--f16); letter-spacing: -0.01em; }
.st-doc__bar span { color: var(--st-mut); }
.st-doc__bar i { margin-left: auto; font-family: var(--f-mono); font-style: normal; color: var(--st-mut); }
.st-req { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: start; height: 108px; padding: 15px 18px 0; border-bottom: 1px solid var(--st-line); }
.st-check { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--st-line2); color: #fff; display: grid; place-items: center; transition: background var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out); }
.st-check svg { display: block; }
.st-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--d-3) var(--e-out); }
.st-req.is-checked .st-check { background: var(--st-ink); border-color: var(--st-ink); animation: st-pop var(--d-3) var(--e-spring); }
.st-req.is-checked .st-check path { stroke-dashoffset: 0; }
.st-req__t { font-size: var(--f17); line-height: 1.28; font-weight: 600; letter-spacing: -0.012em; }
.st-req__t code { margin-right: 9px; font-weight: 500; color: var(--st-mut); }
.st-req__a { grid-column: 2; margin-top: 4px; color: var(--st-mut); }
.st-doc__foot { display: flex; align-items: center; gap: 8px; height: 59px; padding: 0 18px; }
.st-doc__foot span { font-family: var(--f-mono); font-weight: 500; line-height: 28px; padding: 0 11px; border-radius: 99px; background: var(--st-bg3); color: var(--st-ink); white-space: nowrap; }
@keyframes st-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.st-scrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .65); }
.st-note { width: 180px; padding: 14px 16px 20px; background: #FFF1BF; font-size: var(--f17); line-height: 1.26; font-weight: 500; letter-spacing: -0.01em; border-radius: 2px; }
.st-note--b { width: 190px; background: #FBE3D4; }
.st-note--c { width: 172px; }
.st-sheet { width: 258px; display: grid; grid-template-columns: 1fr 1.25fr .7fr; background: var(--st-bg); border: 1px solid var(--st-line2); border-radius: 3px; overflow: hidden; }
.st-sheet span { font-family: var(--f-mono); line-height: 30px; padding: 0 10px; border-right: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); white-space: nowrap; }
.st-sheet span:nth-child(3n) { border-right: 0; text-align: right; }
.st-sheet span:nth-child(n+7) { border-bottom: 0; }
.st-sheet span:nth-child(-n+3) { background: var(--st-bg2); }
.st-mail { width: 262px; padding: 12px 14px 13px; background: var(--st-bg); border-radius: 8px; border-left: 3px solid var(--st-line2); }
.st-mail b { display: block; }
.st-mail span { display: block; margin-top: 3px; color: var(--st-mut); }
.st-chat { width: 262px; padding: 11px 15px 12px; background: #E7EDF8; border-radius: 14px 14px 14px 4px; font-weight: 500; }

/* ---------- 02 线框变界面 ---------- */
.st-win { position: absolute; left: 40px; top: 56px; width: 600px; height: 488px; background: var(--st-bg); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.st-win__bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: var(--st-bg2); border-bottom: 1px solid var(--st-line); }
.st-win__bar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #BDB7AC; }
.st-win__tag { margin-left: auto; line-height: 24px; font-weight: 500; padding: 0 10px; border-radius: 99px; border: 1px dashed var(--st-line2); color: var(--st-ink); background: var(--st-bg); }
.st-win__body { position: relative; height: 450px; overflow: hidden; }
.st-layer { position: absolute; inset: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--st-bg); }
.st-real { clip-path: circle(0 at 300px 225px); }
.st-side { padding: 14px 10px; background: var(--st-bg2); border-right: 1px solid var(--st-line); }
.st-side span { display: block; height: 32px; line-height: 32px; padding: 0 10px; margin-bottom: 6px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.st-side span.is-cur { background: #EBE7E0; }
.st-w { display: block; height: 10px; border-radius: 5px; background: #E4E0D8; }
.st-side .st-w { margin: 11px 10px 28px; height: 10px; }
.st-w--thin { height: 8px; margin-top: 10px; background: #EEEBE5; }
.st-w--btn { width: 100px; height: 32px; border-radius: 99px; background: none; border: 1px dashed #C9C4BA; margin-left: auto; }
.st-w--pill { width: 72px; height: 24px; border-radius: 99px; background: none; border: 1px dashed #C9C4BA; }
.st-main { position: relative; min-width: 0; overflow: hidden; }
.st-mh { display: flex; align-items: center; height: 52px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--st-line); }
.st-mh b { font-size: var(--f17); letter-spacing: -0.01em; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 14px; margin-left: auto; border-radius: 99px; background: var(--st-ink); color: #fff; font-weight: 500; white-space: nowrap; }
.st-th, .st-tr { display: grid; grid-template-columns: 84px minmax(0, 1fr) 100px; align-items: center; column-gap: 8px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--st-line); }
.st-th { height: 30px; color: var(--st-mut); }
.st-tr { height: 72px; transition: background var(--d-2) var(--e-out); }
.st-tr > span { min-width: 0; }
.st-tr span b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tr span em { display: block; color: var(--st-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tr.is-sel { background: #FFF5EC; }
.st-chip { justify-self: start; line-height: 26px; font-weight: 500; padding: 0 9px; border-radius: 7px; white-space: nowrap; }
.st-chip--new { background: #E7EDF8; color: #2B4885; }
.st-chip--rev { background: #FAEFD6; color: #7A4E00; }
.st-chip--ok { background: var(--st-ok-bg); color: var(--st-ok); }
.st-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 260px; display: flex; flex-direction: column; padding: 16px 16px 18px; background: var(--st-bg); border-left: 1px solid var(--st-line); box-shadow: -24px 0 40px -28px rgba(25, 24, 23, .45); transform: translateX(102%); }
.st-drawer > code { color: var(--st-mut); }
.st-drawer > b { display: block; margin-top: 4px; font-size: var(--f17); line-height: 1.25; letter-spacing: -0.01em; }
.st-drawer dl { margin-top: 14px; }
.st-drawer dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); padding: 11px 0; border-top: 1px solid var(--st-line); }
.st-drawer dt { color: var(--st-mut); }
.st-btn--go { margin: auto 0 0; height: 40px; }
.st-btn--go i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--c-red); }
.st-btn--go i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--c-red); opacity: 0; }
.st-btn--go.is-hot i::after { animation: zi-ring 1.3s var(--e-out) infinite; }
.st-iris { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; border: 1.5px solid var(--c-red); box-shadow: 0 0 0 10px rgba(230, 0, 0, .06); pointer-events: none; opacity: 0; }
.st-cursor { position: absolute; left: -4px; top: -2px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); will-change: transform; }
.st-click { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c-red); opacity: 0; pointer-events: none; }

/* ---------- 03 流程里的 AI 位置 ---------- */
.st-flow { position: absolute; inset: 0; }
.st-quad { stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 75 100; stroke-dashoffset: -8; transition: stroke var(--d-3) var(--e-out), stroke-width var(--d-3) var(--e-out); }
.st-quad.is-on { stroke: var(--c-red-dark); stroke-width: 5; }
.st-appr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.st-nd { position: absolute; width: 0; height: 0; }
.st-nd i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-ink); border: 1.5px solid rgba(255, 255, 255, .8); }
.st-nd em { position: absolute; left: 0; top: 26px; transform: translateX(-50%); color: rgba(255, 255, 255, .86); white-space: nowrap; }
.st-nd--appr i { left: -4.5px; top: -4.5px; width: 9px; height: 9px; border: 0; background: var(--c-red-dark); }
.st-nd code { position: absolute; left: 0; top: 50px; transform: translateX(-50%); color: rgba(255, 255, 255, .74); }
.st-nd.is-tick i { animation: st-pop var(--d-3) var(--e-spring); }
.st-slot-l { position: absolute; left: 240px; top: 112px; transform: translateX(-50%); color: rgba(255, 255, 255, .86); white-space: nowrap; }
.st-slot-t { position: absolute; left: 240px; top: 212px; width: 104px; transform: translate(-50%, -50%); text-align: center; font-family: var(--f-mono); font-weight: 500; line-height: 1.2; color: #fff; }
.st-token { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); will-change: transform; }
.st-fills { position: absolute; left: 44px; top: 338px; width: 372px; height: 226px; }
.st-fill { position: absolute; inset: 0; padding: 18px 20px; background: var(--st-bg); border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: transform var(--d-3) var(--e-out), opacity var(--d-2) var(--e-out); }
.st-fill[data-pos="next"] { transform: translateY(34px) scale(.97); opacity: 0; }
.st-fill[data-pos="past"] { transform: translateY(-34px) scale(.97); opacity: 0; }
.st-fill__k { display: inline-block; font-family: var(--f-mono); font-weight: 500; line-height: 26px; padding: 0 10px; border-radius: 99px; background: var(--st-bg3); }
.st-fill__n { position: absolute; right: 20px; top: 21px; font-family: var(--f-mono); color: var(--st-mut); }
.st-fill b { display: block; margin-top: 13px; font-size: max(22px, var(--fmin)); line-height: 1.16; letter-spacing: -0.022em; }
.st-fill__l { display: block; margin-top: 13px; color: var(--st-mut); }
.st-fill__v { display: block; margin-top: 2px; font-size: var(--f16); }
.st-opts { position: absolute; left: 442px; top: 338px; width: 206px; }
.st-opts li { display: flex; align-items: center; gap: 10px; height: 56px; border-bottom: 1px solid rgba(255, 255, 255, .13); font-family: var(--f-mono); line-height: 1.15; color: rgba(255, 255, 255, .76); transition: color var(--d-2) var(--e-out); }
.st-opts li:first-child { border-top: 1px solid rgba(255, 255, 255, .13); }
.st-opts i { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); transition: border-color var(--d-2) var(--e-out); }
.st-opts i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--c-red-dark); transform: scale(0); transition: transform var(--d-3) var(--e-spring); }
.st-opts li.is-on { color: #fff; }
.st-opts li.is-on i { border-color: #fff; }
.st-opts li.is-on i::after { transform: scale(1); }

/* ---------- 04 上线 ---------- */
.st-env, .st-log { position: absolute; left: 40px; width: 600px; background: var(--st-bg); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.st-env { top: 36px; }
.st-env__bar { display: flex; align-items: center; height: 56px; padding: 0 14px 0 18px; }
.st-env__bar b { font-size: var(--f17); letter-spacing: -0.01em; }
.st-env__bar > span:not(.st-live) { margin-left: 12px; color: var(--st-mut); white-space: nowrap; }
.st-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 11px; border-radius: 99px; border: 1px solid var(--st-line2); font-weight: 500; color: var(--st-mut);
  transition: background var(--d-2) var(--e-out), color var(--d-2) var(--e-out), border-color var(--d-2) var(--e-out); }
.st-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #BDB7AC; transition: background var(--d-2) var(--e-out); }
.st-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--st-ok-dot); opacity: 0; }
.st-live.is-on { background: var(--st-ok-bg); color: var(--st-ok); border-color: transparent; }
.st-live.is-on i { background: var(--st-ok-dot); }
.st-live.is-on i::after { animation: zi-ring 2.2s var(--e-out) infinite; }
.st-svcs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--st-line); }
.st-svc { padding: 16px 14px 18px 16px; border-right: 1px solid var(--st-line); min-width: 0; }
.st-svc:last-child { border-right: 0; }
.st-lamp { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--st-line2); transition: border-color var(--d-2) var(--e-out); }
.st-lamp i { width: 10px; height: 10px; border-radius: 50%; background: var(--st-line2); transition: background var(--d-2) var(--e-out); }
.st-svc b { display: block; margin-top: 12px; }
.st-svc code { display: block; margin-top: 2px; color: var(--st-mut); }
.st-svc.is-on .st-lamp { border-color: var(--st-ok-dot); animation: st-pop var(--d-3) var(--e-spring); }
.st-svc.is-on .st-lamp i { background: var(--st-ok-dot); }
.st-svc.is-on code { color: var(--st-ok); }
.st-log { top: 252px; height: 312px; }
.st-log__bar { display: flex; align-items: center; height: 50px; padding: 0 18px; background: var(--st-bg2); }
.st-log__bar b { font-size: var(--f16); }
.st-log__bar span { margin-left: auto; color: var(--st-mut); }
.st-log li { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; height: 52px; padding: 0 18px; border-top: 1px solid var(--st-line); opacity: 0; transition: opacity var(--d-2) var(--e-out); }
.st-log li.is-in { opacity: 1; }
.st-log li code { color: var(--st-mut); }
.st-log li span { white-space: nowrap; }
.st-log li.is-typing span::after { content: ""; display: inline-block; width: 1.5px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--c-red); }
