/* ============================================================
   班呼 · 教室大屏 样式 v2
   深蓝夜色（投影友好）+ 品牌渐变强调 + 歌词入场动效
   ============================================================ */
[v-cloak] { display: none; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: #0a1330; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.classroom-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #0e1a30 0%, #16294d 55%, #0f2238 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 1.2s ease, filter 2s ease;
}
.classroom-screen.dim { filter: brightness(.45); }

/* ---- 绑定页 ---- */
.cs-bind { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
/* 氛围光斑 */
.cs-bind::before, .cs-bind::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(10px);
}
.cs-bind::before {
  width: 420px; height: 420px; left: -120px; top: -140px;
  background: radial-gradient(circle, rgba(106, 92, 255, .25), transparent 68%);
}
.cs-bind::after {
  width: 460px; height: 460px; right: -150px; bottom: -180px;
  background: radial-gradient(circle, rgba(255, 106, 138, .16), transparent 68%);
}
.cs-bind-card {
  width: 560px; max-width: 92vw; text-align: center;
  background: linear-gradient(rgba(20, 30, 58, .88), rgba(20, 30, 58, .88)) padding-box,
              linear-gradient(150deg, rgba(122, 108, 255, .65), rgba(255, 255, 255, .14), rgba(255, 106, 138, .5)) border-box;
  border: 1.5px solid transparent;
  border-radius: 28px; padding: 54px 52px; backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(4, 8, 22, .5);
  position: relative; z-index: 1;
  animation: cs-rise .55s cubic-bezier(.2, .8, .25, 1);
}
@keyframes cs-rise { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.cs-bind-icon { font-size: 58px; width: 104px; height: 104px; margin: 0 auto; line-height: 104px; border-radius: 32px; background: linear-gradient(150deg, rgba(106, 92, 255, .32), rgba(61, 139, 255, .2)); animation: cs-bob 3.4s ease-in-out infinite; }
@keyframes cs-bob { 50% { transform: translateY(-8px); } }
.cs-bind-card h1 { font-size: 42px; margin: 20px 0 10px; letter-spacing: 6px; font-weight: 800; }
.cs-bind-sub { font-size: 17px; opacity: .6; margin: 0 0 34px; line-height: 1.7; }
.cs-bind-input {
  width: 100%; height: 82px; font-size: 40px; letter-spacing: 14px; text-align: center;
  text-transform: uppercase; color: #fff; outline: none;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .22); border-radius: 18px;
  font-family: ui-monospace, Consolas, monospace; font-weight: 700;
  transition: border-color .18s, box-shadow .18s;
}
.cs-bind-input::placeholder { font-size: 21px; letter-spacing: 2px; color: rgba(255, 255, 255, .32); font-family: inherit; font-weight: 400; }
.cs-bind-input:focus { border-color: #8f80ff; box-shadow: 0 0 0 5px rgba(122, 108, 255, .18); }
.cs-bind-btn {
  width: 100%; height: 68px; margin-top: 22px; font-size: 23px; letter-spacing: 7px;
  font-weight: 800; color: #fff; border: none; border-radius: 18px; cursor: pointer;
  background: linear-gradient(135deg, #6a5cff, #3d8bff);
  box-shadow: 0 10px 30px rgba(106, 92, 255, .42);
  transition: transform .13s ease, filter .2s;
}
.cs-bind-btn:hover { filter: brightness(1.06); }
.cs-bind-btn:active { transform: scale(.975); }
.cs-bind-btn:disabled { opacity: .55; }
.cs-bind-tip { margin-top: 22px; font-size: 14px; opacity: .4; line-height: 1.8; }

/* ---- 顶部条（玻璃） ---- */
.cs-topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px 14px;
  background: linear-gradient(rgba(6, 12, 28, .38), transparent);
}
.cs-class { font-size: 29px; font-weight: 700; letter-spacing: 2px; opacity: .92; }
.cs-clock { text-align: center; }
.cs-time { font-size: 56px; font-weight: 800; letter-spacing: 4px; font-variant-numeric: tabular-nums; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.cs-date { font-size: 17px; opacity: .55; margin-top: 2px; }
.cs-theme-tag {
  font-size: 15px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); animation: cs-fadein .8s ease;
}
.cs-status {
  font-size: 15px; opacity: .8; display: flex; align-items: center; gap: 8px; min-width: 96px; justify-content: flex-end;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07);
}
.cs-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: cs-breathe 2.2s ease infinite; }
.cs-status.off .dot { background: #e8a54a; box-shadow: 0 0 8px #e8a54a; animation: blink 1.2s infinite; }
@keyframes cs-breathe { 50% { opacity: .55; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes cs-fadein { from { opacity: 0; transform: translateY(-6px); } }

/* 语音解锁提示 */
.cs-voice-hint {
  position: relative; z-index: 1;
  margin: 14px 48px 0; padding: 11px 22px; border-radius: 14px; text-align: center;
  font-size: 17px; cursor: pointer;
  background: rgba(106, 216, 166, .14); border: 1px solid rgba(90, 216, 166, .35); color: #9fe8c8;
  animation: hint-pulse 2s ease-in-out infinite;
  backdrop-filter: blur(4px);
}
@keyframes hint-pulse { 50% { opacity: .55; } }

/* ---- 主舞台 ---- */
.cs-stage { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.cs-carousel {
  position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .85); overflow: hidden;
}
.cs-carousel-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.cs-carousel-img.on { opacity: 1; }
.cs-carousel-img.broken { display: none; }

.cs-lyrics {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  -webkit-mask-image: linear-gradient(transparent 2%, #000 20%, #000 80%, transparent 98%);
  mask-image: linear-gradient(transparent 2%, #000 20%, #000 80%, transparent 98%);
  animation: cs-msg-in .8s cubic-bezier(.2, .8, .25, 1);
}
@keyframes cs-msg-in { from { opacity: 0; transform: translateY(26px); } }
.cs-lyrics-track {
  text-align: center; padding: 45vh 0; width: 88%;
  animation: cs-lyrics-up linear infinite;
}
.classroom-screen.dim .cs-lyrics-track { animation-play-state: paused; }
.cs-lyrics-line {
  font-weight: 800; letter-spacing: 5px; line-height: 1.75;
  white-space: pre-wrap;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .5);
}
@keyframes cs-lyrics-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.cs-idle { text-align: center; }
.cs-idle-icon { font-size: 76px; opacity: .85; animation: cs-bob 3.6s ease-in-out infinite; }
.cs-idle-text { font-size: 46px; font-weight: 700; margin-top: 20px; letter-spacing: 7px; }
.cs-idle-sub { font-size: 17px; opacity: .38; margin-top: 14px; letter-spacing: 1px; }

/* ---- 麦克风一次性设置 ---- */
.cs-mic-setup {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 3;
  padding: 13px 28px; border-radius: 999px; cursor: pointer;
  font-size: 18px; font-weight: 700; letter-spacing: 1px;
  background: rgba(47, 191, 143, .16); border: 2px solid rgba(90, 216, 166, .55); color: #9fe8c8;
  animation: mic-setup-pulse 2s ease-in-out infinite;
  backdrop-filter: blur(4px);
}
@keyframes mic-setup-pulse { 50% { box-shadow: 0 0 26px rgba(90, 216, 166, .4); } }

/* ---- 双向对讲横幅 ---- */
.cs-icom-bar {
  position: relative; z-index: 1;
  margin: 14px 48px 0; padding: 13px 24px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700; letter-spacing: 2px;
  background: rgba(255, 106, 106, .16); border: 1px solid rgba(255, 106, 106, .45);
  color: #ffb3a7;
  animation: icom-glow 1.6s ease-in-out infinite;
  backdrop-filter: blur(4px);
}
.cs-icom-bar.clickable { cursor: pointer; border-color: #5ad8a6; color: #9fe8c8; background: rgba(90, 216, 166, .12); animation: none; }
.icom-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff6a6a; box-shadow: 0 0 10px #ff6a6a; animation: blink 1s infinite; }
.icom-sub { font-size: 14px; font-weight: 400; opacity: .75; letter-spacing: 1px; }
.icom-retry {
  margin-left: auto; padding: 6px 16px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 179, 167, .5); background: transparent; color: #ffb3a7; font-size: 14px;
}
@keyframes icom-glow { 50% { box-shadow: 0 0 26px rgba(255, 106, 106, .35); } }

/* ---- 悬停角标 ---- */
.cs-hover-corner {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: flex; gap: 10px;
  opacity: 0; transition: opacity .25s ease;
}
.classroom-screen:hover .cs-hover-corner { opacity: 1; }
.cs-corner-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(10, 16, 34, .5); color: #fff; font-size: 18px; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .15s, transform .12s;
}
.cs-corner-btn:hover { background: rgba(255, 255, 255, .22); }
.cs-corner-btn:active { transform: scale(.92); }

/* 开机自启一次性引导条 */
.cs-autostart-hint {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 12px; max-width: 86vw;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(10, 16, 34, .82); color: #eef1ff; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.cs-autostart-hint b { color: #ffd76a; }
.cs-hint-x {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 13px;
}
/* 角落里的文字型安装按钮 */
.cs-corner-btn.cs-corner-install {
  width: auto; height: 46px; padding: 0 16px; border-radius: 23px;
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
  background: rgba(106, 92, 255, .85); border-color: rgba(255, 255, 255, .45);
}
.cs-corner-btn.cs-corner-install:hover { background: rgba(106, 92, 255, 1); }

/* 开机自启安装引导弹窗 */
.cs-modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 20, .6);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.cs-modal {
  width: min(680px, 92vw); max-height: 86vh; overflow: auto;
  background: #121a33; color: #eef1ff; border-radius: 18px; padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.cs-modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 20px; margin-bottom: 6px; }
.cs-modal-sub { font-size: 13px; color: #aab3d0; margin-bottom: 14px; line-height: 1.6; }
.cs-modal-sub b { color: #ffd76a; }
.cs-way { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.cs-way-tag { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.cs-way-tag.way1 { color: #5fe0a0; }
.cs-way-tag.way2 { color: #ffc46b; }
.cs-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.cs-step-t { display: inline; }
.cs-copy-btn {
  margin: 0 8px; padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #6a5cff, #3d8bff); border: none; white-space: nowrap;
}
.cs-copy-btn:hover { opacity: .88; }
.cs-copy-btn.big { padding: 9px 22px; font-size: 14px; margin-top: 6px; }
.cs-cmd {
  display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12px;
  background: rgba(0, 0, 0, .35); color: #9fd0ff; word-break: break-all; user-select: all;
}
.cs-way-note { margin-top: 8px; font-size: 12px; color: #8a93b5; }
