/* ============================================================
   陪跑 正式版骨架 · 首次问卷（真实数据版）
   视觉：demo/02 提取（粉白玻璃卡片 + 圆角 + emoji 大图标 + 进度点）
   作用域：.qz 整页固定层（自带滚动），不影响主页 body 布局
   ============================================================ */
.qz {
  --main: #e05570;
  --main-deep: #d6456d;
  --ink: #5a3a42;
  --ink-soft: #a87f8b;
  --ok: #4caf7d;
  position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(85% 65% at 10% 6%, rgba(255,255,255,.55), transparent 62%),
    radial-gradient(65% 55% at 90% 12%, rgba(255,196,220,.34), transparent 66%),
    var(--cream);
}
.qz * { box-sizing: border-box; }

/* ---- 顶栏 ---- */
.qz-hd { max-width: 680px; margin: 0 auto; padding: 26px 20px 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.qz-logo { font-size: 24px; font-weight: 900; color: var(--main-deep); letter-spacing: 2px; }
.qz-heart { font-size: 14px; }
.qz-hd-sub { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; }
.qz-pos { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--main-deep);
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.7);
  padding: 5px 14px; border-radius: 999px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap; }

.qz-wrap { max-width: 680px; margin: 0 auto; padding: 18px 20px 60px; }

/* ---- 主卡片 ---- */
.qz-card { background: rgba(255,255,255,.82); border-radius: 28px; padding: 26px 30px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 20px 60px rgba(60,20,30,.16);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.65); animation: qzPop .35s ease; }
@keyframes qzPop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.qz-prog { display: flex; gap: 5px; margin-bottom: 20px; }
.qz-prog i { flex: 1; height: 6px; border-radius: 6px; background: rgba(224,85,112,.14); transition: background .3s; }
.qz-prog i.on { background: var(--leaf); }

.qz-num { font-size: 12px; font-weight: 800; color: var(--main); letter-spacing: 2px; }
.qz-title { font-size: 22px; color: var(--ink); margin: 8px 0 4px; line-height: 1.4; font-weight: 800; }
.qz-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.qz-body { min-height: 60px; }

/* ---- 三轨标注色 ---- */
.tz { font-style: normal; }
.tz-auto { color: #2e8b57; }
.tz-mom { color: #c96a1e; }
.tz-both { color: #6a55a8; }
.qz-leg { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: 11.5px; font-weight: 700;
  color: var(--ink-soft); background: rgba(255,255,255,.6); border: 1px dashed rgba(224,85,112,.3);
  border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; line-height: 1.7; }

/* ---- 单选大按钮 ---- */
.qz-opts { display: flex; flex-direction: column; gap: 10px; }
.qz-opt { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: rgba(255,255,255,.72); border: 1.5px solid rgba(224,85,112,.16); border-radius: 18px;
  padding: 12px 18px; cursor: pointer; font-family: inherit; transition: all .15s; color: var(--ink);
  box-shadow: none; }
.qz-opt:hover { border-color: rgba(224,85,112,.45); background: rgba(255,255,255,.92); }
.qz-opt .o-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 21px; background: #fff0f3; }
.qz-opt .o-t { flex: 1; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.qz-opt .o-d { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.qz-opt .o-who { display: block; font-size: 11px; font-weight: 800; margin-top: 3px; }
.qz-opt .o-c { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ecc4cd;
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: transparent; font-weight: 900; }
.qz-opt.sel { border-color: var(--main); background: #fff0f3; box-shadow: 0 4px 16px rgba(224,85,112,.16); }
.qz-opt.sel .o-c { background: var(--main); border-color: var(--main); color: #fff; }

/* ---- chips（Q7 周几 + 互斥「没有固定课」） ---- */
.qz-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.qz-chip { border: 1.5px solid rgba(224,85,112,.25); background: rgba(255,255,255,.8); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  color: var(--ink); transition: all .15s; }
.qz-chip:hover { border-color: var(--main); }
.qz-chip.sel { background: var(--main); border-color: var(--main); color: #fff;
  box-shadow: 0 4px 12px rgba(224,85,112,.3); }
.qz-chip.none-sel { background: #fff; border-color: #d8a6b2; color: #c26a83; }

/* ---- 习惯 chips（Q3 多选无上限：emoji + 名称 + 谁来管） ---- */
.qz-hc { display: flex; align-items: center; gap: 11px; text-align: left;
  border: 1.5px solid rgba(224,85,112,.18); background: rgba(255,255,255,.85); border-radius: 18px;
  padding: 10px 13px; cursor: pointer; font-family: inherit; color: var(--ink);
  transition: all .15s; flex: 1 1 44%; min-width: 210px; }
.qz-hc:hover { border-color: rgba(224,85,112,.5); background: rgba(255,255,255,.97); }
.qz-hc .hc-e { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff0f3;
  display: flex; align-items: center; justify-content: center; font-size: 20px; }
.qz-hc .hc-t { flex: 1; font-size: 14.5px; font-weight: 800; line-height: 1.35; min-width: 0; }
.qz-hc .hc-t small { display: block; font-size: 10.5px; font-weight: 800; margin-top: 2px; }
.qz-hc .hc-c { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ecc4cd;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; font-weight: 900; }
.qz-hc.sel { border-color: var(--main); background: #fff0f3; box-shadow: 0 4px 14px rgba(224,85,112,.18); }
.qz-hc.sel .hc-e { background: #fff; }
.qz-hc.sel .hc-c { background: var(--main); border-color: var(--main); color: #fff; }

/* ---- 输入（昵称 / 补充） ---- */
.qz-inp-row { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.8);
  border: 1.5px solid rgba(224,85,112,.25); border-radius: 18px; padding: 6px 8px 6px 18px; }
.qz-inp-row .big { font-size: 26px; }
.qz-inp-row input { flex: 1; border: none; outline: none; background: none; font-family: inherit;
  font-size: 17px; color: var(--ink); padding: 10px 4px; min-width: 0; }
.qz-inp-row input::placeholder { color: #d3b3bc; }
.qz-inp-row:focus-within { border-color: var(--main); box-shadow: 0 0 0 3px rgba(224,85,112,.12); }
.qz-inp-row.area { flex-direction: column; align-items: stretch; padding: 14px 16px 10px; gap: 4px; }
.qz-inp-row.area textarea { border: none; outline: none; resize: none; background: none;
  font-family: inherit; font-size: 15px; line-height: 1.7; color: var(--ink); min-height: 88px; }
.qz-inp-row.area textarea::placeholder { color: #d3b3bc; }
.qz-area-cnt { font-size: 11.5px; color: #d3b3bc; text-align: right; font-weight: 600; }

/* 联动提示（Q6 未选 Q3 时的引导） */
.qz-hint { font-size: 12.5px; color: #b04a66; font-weight: 700; background: #fff0f3;
  border-radius: 12px; padding: 10px 13px; margin-bottom: 12px; line-height: 1.6; }

/* ---- 动作按钮 ---- */
.qz-actions { display: flex; gap: 12px; margin-top: 22px; }
.qz-btn { border: none; border-radius: 999px; padding: 11px 26px; font-size: 15px; font-family: inherit;
  font-weight: 800; cursor: pointer; transition: all .15s; }
.qz-btn.prev { background: rgba(255,255,255,.7); color: var(--ink-soft); }
.qz-btn.next { background: var(--main); color: #fff; flex: 1; box-shadow: 0 6px 18px rgba(224,85,112,.3); }
.qz-btn.next:disabled { background: #e9c3cb; box-shadow: none; cursor: not-allowed; }
.qz-btn.next:hover:not(:disabled) { background: var(--main-deep); }
.qz-btn.prev:hover { color: var(--main-deep); }
.qz-btn.block { flex: 1; }

/* ---- 完成/已建档面板 ---- */
.qz-done { text-align: center; padding-bottom: 26px; }
.qz-done .qz-done-e { font-size: 52px; display: inline-block; animation: qzBounce 1.2s ease infinite; }
@keyframes qzBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.qz-done .qz-title { text-align: center; }
.qz-done-sub { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 18px; text-align: center; line-height: 1.7; }

/* ---- AUTO 调试结果行（headless 断言用） ---- */
.qz-auto { margin-top: 14px; text-align: center; font-size: 12px; color: #2e8b57; font-weight: 700;
  word-break: break-all; line-height: 1.8; background: rgba(46,139,87,.09); border-radius: 12px; padding: 8px 12px; }
