/* ===== 演示模拟器面板（录屏专用 · 2026-10-09 站长）=====
   只有演示账号才会挂上来（features/home/demo-lab.js 门禁）。层级故意压在最上面：
   它要盖得住 AIPlaySkill 聊天框（140）、支付墙（150）与 toast（200）。 */

.dlab-fab {
  position: fixed;
  right: 12px;
  bottom: 86px;
  z-index: 240;
  width: 42px; height: 42px;
  border: 1px solid rgba(50,189,134,.34);
  border-radius: 50%;
  background: rgba(8,26,20,.72);
  color: #e6fff5;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.36);
  cursor: pointer;
  transition: opacity .35s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.dlab-fab.is-dim { opacity: .18; }
.dlab-fab:active { transform: scale(.94); }

.dlab-drawer {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  z-index: 245;
  width: min(94vw, 400px);
  padding: 14px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #0b1a18, #08120f 60%);
  border-left: 1px solid rgba(50,189,134,.22);
  box-shadow: -14px 0 40px rgba(0,0,0,.5);
  color: #e8f6f1;
  font-size: 13px;
  transform: translateX(102%);
  transition: transform .24s cubic-bezier(.2,.9,.3,1);
}
.dlab-drawer.is-open { transform: translateX(0); }

.dlab-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.dlab-title { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dlab-title strong { font-size: 15px; letter-spacing: .2px; }
.dlab-title em { font-style: normal; font-size: 11px; color: rgba(197,235,222,.6); }
.dlab-x {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #e8f6f1; font-size: 16px; line-height: 1; cursor: pointer;
}

.dlab-allow {
  display: block; margin: 0 0 10px;
  font-size: 11.5px; line-height: 1.5; color: rgba(255,214,140,.92);
}
.dlab-allow input { margin-right: 6px; }

.dlab-test { margin-bottom: 12px; }
.dlab-test-in,
.dlab-in {
  width: 100%; box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #e8f6f1;
  /* 16px：iOS 聚焦到小于 16px 的输入框会放大整页（2026-10-09 踩过的坑） */
  font-size: 16px;
}
.dlab-test-out { margin-top: 6px; }
.dlab-t-line { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 11.5px; color: rgba(226,255,244,.66); }
.dlab-t-line.is-top { color: #8ff0c6; font-weight: 700; }
.dlab-t-line.is-warn { color: #ffd08a; }

.dlab-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dlab-empty { padding: 14px 12px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 12px; line-height: 1.6; color: rgba(226,255,244,.6); }
.dlab-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(50,189,134,.14);
}
.dlab-thumb { position: relative; flex: none; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; background: #000; }
.dlab-thumb img, .dlab-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlab-badge {
  position: absolute; left: 3px; bottom: 3px; padding: 1px 4px; border-radius: 4px;
  background: rgba(0,0,0,.6); font-size: 9px; color: #9ff0cd;
}
.dlab-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dlab-meta strong { font-size: 12px; line-height: 1.35; word-break: break-word; }
.dlab-meta em { font-style: normal; font-size: 10.5px; color: rgba(197,235,222,.58); }
.dlab-ops { flex: none; display: flex; flex-direction: column; gap: 5px; }

.dlab-btn {
  padding: 7px 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #e8f6f1; font-size: 12px; line-height: 1;
}
.dlab-btn-mini { padding: 6px 8px; font-size: 11px; }
.dlab-btn-primary { background: #32bd86; border-color: #32bd86; color: #04150f; font-weight: 800; }
.dlab-btn-danger { color: #ffb0a6; border-color: rgba(255,120,100,.3); }
.dlab-btn-new { width: 100%; padding: 11px; font-size: 13px; font-weight: 700; border-style: dashed; }

.dlab-form { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(50,189,134,.18); }
.dlab-lb { display: block; margin-bottom: 11px; font-size: 12px; line-height: 1.5; }
.dlab-lb em { font-style: normal; color: rgba(197,235,222,.55); font-size: 11px; }
.dlab-lb input[type="file"] { display: block; margin-top: 6px; width: 100%; font-size: 11.5px; color: rgba(226,255,244,.7); }
.dlab-prev { margin: 4px 0 12px; }
.dlab-prev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11px; color: rgba(226,255,244,.6); }
.dlab-chip { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: 10.5px; }
.dlab-chip.is-on { background: rgba(50,189,134,.2); color: #9ff0cd; }
.dlab-chip.is-empty { color: rgba(255,180,160,.8); }
.dlab-form-ops { display: flex; gap: 8px; }

.dlab-foot { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.dlab-toast {
  position: fixed; left: 50%; top: 16%; transform: translateX(-50%);
  z-index: 99999; padding: 9px 16px; border-radius: 12px;
  background: rgba(255,209,102,.95); color: #221a00;
  font-size: 12.5px; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
