:root {
  --electric: #3D7BFF;
  --neon: #22C8A8;
  --amber: #FFB020;
  --deep: #101528;
  --panel: #1A2238;
  --cloud: #F4F6FA;
  --ink: #1A2233;
  --muted: #66707F;
  --line: #E2E8F0;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cloud); color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 撑满视口：.page 吃掉剩余高度，首页才能把内容纵向居中 */
  min-height: 100vh; display: flex; flex-direction: column;
}
button { font-family: inherit; }

/* ---------- 学生端框架 ---------- */
/* 顶栏常驻：身份和进度点不随内容滚走。
   返回按钮已下移到内容区，顶栏高度改由 15px 的品牌名决定（8 + 21 + 8 + 1px 边框 = 38px）。 */
.topbar {
  position: sticky; top: 0; z-index: 10; background: rgba(244,246,250,.92);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  padding: 8px 20px; display: flex; align-items: center; gap: 12px;
}
.topbar .logo { font-weight: 700; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
/* 登录身份与退出常驻顶栏右端：学生要能随时确认「我是谁」，
   也要能把机器让给下一位同学；两件事都不藏进菜单。 */
.topbar .ident { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar .ident[hidden] { display: none; }
.topbar .who {
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 260px;
}
.btn-exit {
  height: 30px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 13px; font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-exit:hover { border-color: var(--electric); color: var(--electric); }
.btn-exit:active { background: #E1EAFF; border-color: #2E63DB; color: #2E63DB; }
.topbar .logo em { font-style: normal; color: var(--electric); }

/* 返回上一步：一枚圆形的返回图标，全页唯一的回溯入口。
   - 屏宽 ≥1120px：落在内容左侧的空白里，与内容（标题 + 卡片）上下居中 ——
     `.step-row` 是与内容等高的定位容器，所以居中的是「卡片那一块」，不是整屏。
   - 更窄：内容左右没有余量，退回标题上方、与内容左沿对齐，不压卡片也不跑出屏幕。
   四年级学生的使用条件：44px 触控直径、22px 粗描边箭头、白底 + 轻投影，一眼看出这是能点的；
   图标没有可见文字，靠 aria-label / title 保留可访问名。
   它仍是次级动作 —— 全页唯一的高强调按钮始终是底部蓝色的「下一步」。 */
.step-row { position: relative; }
.back-nav { height: 44px; margin: 0 0 14px; }
.back-nav[hidden] { display: none; }
/* top 用 clamp 兜底：内容比一屏还高时（长列表），图标最多停在视口正中，不会被挤到屏幕外 */
@media (min-width: 1120px) {
  .back-nav {
    /* 左移量 = 按钮 44px + 间距 80px。
       间距从 16px 拉到 80px（原间距的 5 倍），图标与卡片拉开一段呼吸距离。
       窗口不够宽时用 max() 收敛：保证图标离视口左沿还有 24px 余量（492 = 页面留白 480 + 24，
       扣掉 50vw 里含的滚动条宽度后实际约 17px），不会被挤出屏幕。 */
    position: absolute; left: max(-124px, calc(492px - 50vw));
    top: clamp(22px, 50%, 50vh);
    transform: translateY(-50%); height: auto; margin: 0; z-index: 5;
  }
}
.btn-back {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  cursor: pointer; box-shadow: 0 2px 6px rgba(16,21,40,.08);
  transition: background .15s, border-color .15s, transform .1s;
}
.btn-back .ico { width: 22px; height: 22px; }
/* 三态只用背景与描边变化，箭头保持深色：
   换成蓝箭头会把对比度从 15.9:1 掉到 3.5:1，四年级学生反而更难看清。 */
.btn-back:hover { background: #F1F6FF; border-color: var(--electric); }
.btn-back:active { background: #E1EAFF; border-color: #2E63DB; transform: scale(.94); }
.btn-back:focus-visible { outline: 3px solid rgba(61,123,255,.45); outline-offset: 2px; }
.btn-back[hidden] { display: none; }
.step-dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.step-dots i {
  width: 26px; height: 6px; border-radius: 3px; background: #D8DEE8;
  transition: background .2s;
}
.step-dots i.done { background: var(--electric); }
.step-dots i.now { background: var(--neon); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.page { flex: 1; max-width: 1000px; margin: 0 auto; padding: 26px 20px 90px; width: 100%; }
/* 入口页（选课堂 / 点名签到）：教室电脑是横屏，容器放宽到与作品墙同宽，
   姓名用自适应多列网格一次排完，不再是一条窄竖版。 */
.page.page-gate { max-width: 1200px; }
.ask { font-size: 26px; font-weight: 700; margin: 10px 0 4px; }
.ask-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; text-align: left; padding: 0;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--electric); }
.card:active { transform: translateY(-1px) scale(.99); border-color: #2E63DB; }
.card.selected { border-color: var(--electric); border-width: 2.5px; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #D8DEE8; }
.card .body { padding: 10px 12px 12px; }
.card .name { font-weight: 700; font-size: 16px; }
.card .no { font-size: 11px; color: var(--muted); }
.card .tagline { font-size: 12px; color: var(--muted); margin-top: 3px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 受众卡 ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.aud-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 40px;
  padding: 18px 10px 14px; text-align: center; cursor: pointer; transition: all .15s;
}
.aud-card:hover { border-color: var(--neon); transform: translateY(-2px); }
.aud-card.selected { border-color: var(--neon); border-width: 2.5px; background: #F0FCF9; }
.aud-card .face {
  width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--cloud); display: flex; align-items: center; justify-content: center;
  color: var(--electric);
}
.aud-card .face svg { width: 32px; height: 32px; display: block; }
.aud-card.selected .face { background: var(--neon); color: #fff; }
.aud-card .nm { font-size: 14px; font-weight: 600; }

/* ---------- 词条胶囊 ---------- */
.pill {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 13px 18px; margin-bottom: 10px; cursor: pointer; font-size: 15px;
  text-align: left; transition: all .15s;
}
.pill:hover { border-color: var(--electric); }
.pill.selected { border-color: var(--electric); background: #EEF4FF; }
.pill .rec { font-size: 11px; color: #fff; background: var(--electric); border-radius: 8px; padding: 2px 7px; flex-shrink: 0; }
.pill .chk {
  margin-left: auto; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid #C9D2E0; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.pill.selected .chk { background: var(--electric); border-color: var(--electric); color: #fff; font-size: 12px; }

/* ---------- 表达形式 ---------- */
.fmt-row { display: flex; gap: 10px; margin: 6px 0 18px; }
.fmt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 16px; cursor: pointer; font-size: 14px; transition: all .15s;
}
.fmt.selected { border-color: var(--neon); background: #F0FCF9; color: #0F7A63; font-weight: 600; }

/* ---------- 判断页 ---------- */
.decide-zone { background: #FFF6E4; border-radius: 18px; padding: 24px; }
.decide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.decide-card {
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  padding: 20px; cursor: pointer; transition: all .15s; text-align: center;
}
.decide-card.yes.selected { border-color: var(--neon); box-shadow: 0 0 0 4px rgba(34,200,168,.18); }
.decide-card.no.selected { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255,176,32,.2); }
.decide-card h3 { margin: 10px 0 4px; font-size: 18px; }
.decide-card .why { font-size: 13px; color: var(--muted); }
.qr-demo { width: 56px; height: 56px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(5, 1fr); gap: 2px; }
.qr-demo i { background: var(--deep); border-radius: 1px; }
.qr-demo i.off { background: #E2E8F0; }
.sign-demo { width: 56px; height: 40px; margin: 8px auto 0; border-radius: 8px;
  background: #8FB4C9; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.reason-pills { margin-top: 18px; }
.reason-pills .pill { background: #fff; }

/* ---------- 主按钮 ---------- */
.cta {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 20;
  background: var(--electric); color: #fff; border: 0; border-radius: 26px;
  height: 52px; padding: 0 44px; font-size: 17px; font-weight: 700; cursor: pointer;
  transition: transform .1s, opacity .15s; box-shadow: 0 6px 20px rgba(61,123,255,.35);
}
.cta:active { transform: translateX(-50%) scale(.97); }
.cta:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.cta.neon { background: var(--neon); box-shadow: 0 6px 20px rgba(34,200,168,.4); }

/* ---------- 首页 ---------- */
/* 内容垂直居中，避免顶部堆一块、下面空一大片；flex 列由 body 承担 */
.page.page-home { display: flex; flex-direction: column; justify-content: center; padding-bottom: 32px; }
.hero {
  position: relative; overflow: hidden; color: #E8EEFA;
  background: radial-gradient(130% 150% at 100% 0%, #1F2C4E 0%, #121933 46%, var(--deep) 100%);
  border-radius: 22px; padding: 48px 40px 36px;
  box-shadow: 0 18px 46px rgba(16,21,40,.28);
}
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.6px; }
.hero-desc { color: #B7C6E3; font-size: 16px; line-height: 1.7; margin: 0 0 28px; max-width: 620px; }

/* 全页唯一的高强调元素：够大、够亮、hover 与按下都给出反馈 */
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 42px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 20px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, #4C88FF 0%, #2E63DB 100%);
  box-shadow: 0 10px 30px rgba(61,123,255,.5), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .15s, box-shadow .2s, filter .15s;
}
.hero-cta:hover { transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: 0 15px 40px rgba(61,123,255,.62), inset 0 1px 0 rgba(255,255,255,.34); }
.hero-cta:active { transform: translateY(0) scale(.98); filter: brightness(.95); }
.hero-cta:focus-visible { outline: 3px solid #7FE8D0; outline-offset: 3px; }
.hero-cta .arrow { font-size: 19px; transition: transform .2s; }
.hero-cta:hover .arrow { transform: translateX(4px); }
.hero-hint { font-size: 13px; color: #8497BB; }

/* 步骤节点：表达先后顺序，不是可点控件，因此不加边框、hover 和 pointer */
.hero-steps {
  list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid #26324F;
}
.hero-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-steps .n {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  background: rgba(34,200,168,.14); border: 1px solid rgba(34,200,168,.45);
  color: #7FE8D0; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.hero-steps .t { font-size: 14px; color: #C3D2EC; }
.hero-steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px);
  height: 1px; background: rgba(34,200,168,.28);
}
.pixel-deco {
  position: absolute; right: 32px; top: 32px;
  display: grid; grid-template-columns: repeat(6, 13px); gap: 3px; opacity: .85;
}
.pixel-deco i { width: 13px; height: 13px; border-radius: 2px; }

/* ---------- 入口页：选课堂 / 点名签到 ---------- */
.link-back {
  background: none; border: 0; color: var(--electric); font-size: 14px;
  cursor: pointer; padding: 0; font-family: inherit;
}
/* 多个课堂同时在上课时才出现，用网格铺开而不是一列窄卡片 */
.cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cls-grid .cls-card { margin-bottom: 0; }
/* 姓名格子吸收剩余宽度：1200px 宽的容器下排 8 列，30 人的班 4 行就能点完 */
.nm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.nm-card {
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  padding: 18px 8px; font-size: 17px; font-weight: 600; cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s; font-family: inherit; color: var(--ink);
}
.nm-card:hover { border-color: var(--electric); background: #F1F6FF; }
.nm-card:active { transform: scale(.97); background: #E1EAFF; border-color: #2E63DB; }
.nm-card:focus-visible { outline: 3px solid rgba(61,123,255,.45); outline-offset: 2px; }
.empty-tip { color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; padding: 26px 8px; }

/* ---------- 发布成功 ---------- */
.success-wrap { max-width: 460px; margin: 30px auto; text-align: center; }
.success-card { background: #fff; border-radius: 18px; border: 2px solid var(--neon); padding: 26px; }
.success-card.no-qr { border-color: var(--amber); }
.success-meta { font-size: 13px; color: var(--muted); }
.stay-note {
  margin: 16px 0 0; padding: 14px 16px; background: #FFF6E4; border-radius: 12px;
  color: #8A6410; font-size: 14px; line-height: 1.6; text-align: left;
}
/* 发布后的下一步：竖排整宽按钮，主次分明，学生一眼看到 */
.result-actions { display: grid; gap: 10px; margin-top: 20px; }
.result-actions .ra {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; border-radius: 14px; font-size: 16px; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.result-actions .ra:hover { border-color: var(--electric); color: var(--electric); }
.result-actions .ra.primary {
  background: var(--electric); border-color: var(--electric); color: #fff;
  box-shadow: 0 6px 16px rgba(61,123,255,.28);
}
.result-actions .ra.primary:hover { background: #2E63DB; border-color: #2E63DB; color: #fff; }
#qrcode { margin: 16px auto; width: 200px; height: 200px; display: flex;
  align-items: center; justify-content: center; }
#qrcode img, #qrcode canvas { border-radius: 8px; }
.scan-flash { animation: scanline 1.4s ease; }
@keyframes scanline {
  0% { box-shadow: inset 0 140px 0 rgba(34,200,168,.35); }
  100% { box-shadow: inset 0 -140px 0 rgba(34,200,168,0); }
}

/* ---------- 作品墙（浅色，与大屏同一套视觉） ---------- */
/* 作品墙是独立整页，不进学生端那套 flex 纵向布局：
   body 默认是 display:flex，会让 .wall-page 作为 flex 项被收缩到内容宽度（实测 678px），
   这里改回 block，让 max-width:1200px 真正生效、整行铺满。 */
body.wall { background: #F0F4FB; display: block; }
.wall-page { max-width: 1200px; margin: 0 auto; padding: 26px 20px 60px; }
.wall-title { font-size: 26px; font-weight: 700; margin: 6px 0 18px; letter-spacing: .5px; }
.wall-title .wt-sub { font-size: 13px; font-weight: 400; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.work-card {
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: border-color .2s, transform .15s;
}
.work-card:hover { transform: translateY(-2px); border-color: var(--electric); }
.work-card.qr { border-color: #7FD8C6; }
.work-card.noqr { border-color: #F0D48A; }
.work-card.speaking { border-color: var(--neon); box-shadow: 0 0 0 4px rgba(34,200,168,.35); }
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.work-card .wb { padding: 9px 11px 12px; }
.work-card .wn { font-weight: 700; font-size: 14px; }
.work-card .wm { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.work-card .ws { font-size: 11px; color: #B8860B; margin-top: 3px; }
.work-card.rise { animation: rise .35s ease; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters select, .filters input {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; height: 34px; padding: 0 12px; font-size: 13px;
  font-family: inherit; transition: border-color .15s;
}
.filters input { width: 130px; }
.filters select:focus, .filters input:focus { outline: 0; border-color: var(--electric); }

/* ---------- 后台 ---------- */
.admin-page { max-width: 960px; margin: 0 auto; padding: 26px 20px 60px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 16px;
  padding: 7px 16px; cursor: pointer; font-size: 14px;
}
.admin-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 12px; overflow: hidden; font-size: 14px; }
.admin-table th, .admin-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { background: #F8FAFC; font-size: 12px; color: var(--muted); }
.admin-table input[type=text], .admin-table textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-family: inherit; font-size: 13px;
}
.btn-s { border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 5px 12px; cursor: pointer; font-size: 13px; margin-right: 6px; }
.btn-s:hover { border-color: var(--electric); color: var(--electric); }
.btn-s.danger:hover { border-color: #E05252; color: #E05252; }
.btn-primary { background: var(--electric); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 20px; cursor: pointer; font-size: 14px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.pager button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px;
  padding: 6px 14px; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: default; }
/* 页码按钮只是指示器：禁用但保持可读 */
.pager button.now { opacity: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.hint-bar {
  position: sticky; bottom: 86px; margin: 18px auto 0; max-width: 640px;
  background: #FFF3D6; border: 1px solid #F0D48A; color: #8A6410;
  border-radius: 14px; padding: 12px 18px; font-size: 14px; text-align: center;
}
@media (max-width: 640px) {
  .decide-cards { grid-template-columns: 1fr; }
  .ask { font-size: 21px; }
  /* 首页窄屏：装饰让位、标题收小、步骤与卡片单列 */
  .hero { padding: 30px 22px 30px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 15px; }
  /* 窄屏正文会铺到右侧，装饰像素让位，避免压在文字上 */
  .pixel-deco { display: none; }
  .hero-cta { width: 100%; justify-content: center; padding: 0 24px; }
  .hero-hint { font-size: 12.5px; }
  .hero-steps { grid-template-columns: repeat(3, 1fr); gap: 18px 6px; }
  .hero-steps li::after { display: none; }
  /* 顶栏窄屏：进度点收窄、学生身份截断（返回按钮已不在顶栏，空间够用） */
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar .logo { font-size: 13.5px; }
  .topbar .who { font-size: 12px; max-width: 132px; padding: 3px 10px; }
  .btn-exit { height: 28px; padding: 0 11px; font-size: 12px; }
  .step-dots { gap: 4px; }
  .step-dots i { width: 14px; }
  /* 窄屏返回图标不缩小：44px 是四年级学生的触控底线 */
  .back-nav { margin-bottom: 12px; }
  /* 步骤页窄屏：7 个进度点 + 学生身份已经占满，品牌名让位 ——
     学生要确认的是「我是谁」，品牌名首页已经出现过一次 */
  body.in-step .topbar .logo { display: none; }
}

/* ---------- 招牌视觉：连接卡（半像素 · 三态） ----------
   底图 = 未连接态（左真实照片 + 右灰暗像素 + 琥珀虚线）
   上层 = 已连接态（右半全彩发光像素 + 青色实线），用 clip-path 从左往右「点亮」
   --rev 0→1 由进度控制，= 右半幅点亮的比例；注册为 <number> 才能平滑过渡出扫描感 */
@property --rev { syntax: '<number>'; inherits: true; initial-value: 0; }
.connect-card {
  position: fixed; right: 18px; top: 50px; width: 184px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 9px; box-shadow: 0 8px 28px rgba(16,21,40,.14);
  transition: --rev .6s ease;
}
.connect-card .cc-title { font-size: 10px; color: var(--muted); letter-spacing: .5px; margin-bottom: 6px; }
.connect-card .cc-img {
  position: relative; border-radius: 9px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #fff;
}
.connect-card .cc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.connect-card .cc-img img.on { clip-path: inset(0 calc(50% - var(--rev, 0) * 50%) 0 0); }
.connect-card .cc-scan {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--neon);
  left: calc(50% + var(--rev, 0) * 50%); box-shadow: 0 0 10px var(--neon); margin-left: -1px;
}
.connect-card.paper .cc-scan { display: none; }
.connect-card .cc-name { font-weight: 700; font-size: 13px; margin-top: 7px; }
.connect-card .cc-state { font-size: 11px; color: var(--muted); margin-top: 2px; }
.connect-card .cc-state.ok { color: #0F7A63; font-weight: 600; }
.connect-card .cc-state.stay { color: #8A6410; font-weight: 600; }
.connect-card .cc-bar { height: 4px; background: #EEF2F8; border-radius: 2px; margin-top: 7px; overflow: hidden; }
.connect-card .cc-bar i {
  display: block; height: 100%; width: calc(var(--rev, 0) * 100%);
  background: var(--neon); transition: width .4s ease;
}
.connect-card.paper .cc-bar i { background: #C9D3E0; }
@media (max-width: 900px) { .connect-card { display: none !important; } }
