/* 课堂互动小部件（public/assets/interact/interact.js）。挂在课件 #stage 内，随舞台等比缩放。
 * 层级：弹幕层 70（在水印 60、页眉 50 之上，在底部选页器 75 之下）；开关 96；放大二维码 97。 */

.ln-ia {
  position: absolute;
  top: 70px;
  right: 24px;
  z-index: 96;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.ln-ia[hidden],
.ln-ia-card[hidden],
.ln-ia-big[hidden] {
  display: none !important;
}

.ln-ia-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(33, 28, 22, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4a443c;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.ln-ia-toggle:hover {
  border-color: #a5171c;
}
.ln-ia-switch {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #d6d0c6;
  transition: background 0.2s;
}
.ln-ia-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.ln-ia.on .ln-ia-switch {
  background: #a5171c;
}
.ln-ia.on .ln-ia-switch i {
  transform: translateX(12px);
}
.ln-ia.on .ln-ia-toggle {
  color: #a5171c;
}

.ln-ia-card {
  width: 150px;
  padding: 10px;
  border: 1px solid rgba(33, 28, 22, 0.12);
  background: #fff;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.ln-ia-qr {
  display: block;
  width: 130px;
  height: 130px;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}
.ln-ia-qr svg,
.ln-ia-bigqr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ln-ia-code {
  margin-top: 6px;
  color: #8b8377;
  font-size: 11px;
  line-height: 1.4;
}
.ln-ia-code b {
  display: block;
  color: #211c16;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px;
  letter-spacing: 0.2em;
}
.ln-ia-count {
  margin-top: 4px;
  color: #8b8377;
  font-size: 11px;
}
.ln-ia-flash {
  padding: 6px 12px;
  background: rgba(33, 28, 22, 0.9);
  color: #fff;
  font-size: 12px;
}

.ln-ia-layer {
  position: absolute;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}
.ln-ia-dm {
  position: absolute;
  left: 0;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(33, 28, 22, 0.74);
  color: #fff;
  font: 600 26px/1.3 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  transform: translateX(1280px);
  will-change: transform;
}

.ln-ia-big {
  position: absolute;
  inset: 0;
  z-index: 97;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  background: rgba(251, 250, 247, 0.97);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  cursor: zoom-out;
}
.ln-ia-bigqr {
  width: 440px;
  height: 440px;
}
.ln-ia-bigtext {
  color: #211c16;
}
.ln-ia-bighead {
  margin-bottom: 14px;
  font-size: 34px;
  font-weight: 600;
}
.ln-ia-bigurl {
  color: #4a443c;
  font-size: 20px;
}
.ln-ia-bigcode {
  display: block;
  margin: 10px 0 18px;
  color: #a5171c;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 96px;
  letter-spacing: 0.18em;
  line-height: 1.1;
}
.ln-ia-bighint {
  color: #8b8377;
  font-size: 14px;
}
