/* 教师后台 */
html, body { height: auto; overflow: auto; touch-action: auto; }
body { user-select: text; -webkit-user-select: text; min-height: 100vh; background: linear-gradient(180deg, rgba(246, 236, 214, .92), rgba(246, 236, 214, .97)), url(../assets/gen/bg-a1.jpg) center / cover fixed; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 28px 28px 60px; }
header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
header h1 { margin: 0; font-size: 34px; letter-spacing: .04em; }
header .seal-mini { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff4ec; font-weight: 900; font-size: 20px; line-height: 1.05; text-align: center; background: radial-gradient(circle at 30% 25%, #f0603f, var(--cinnabar) 55%, var(--cinnabar-deep)); border: 3px solid #fff3ea; box-shadow: 0 0 0 2px var(--cinnabar), 0 6px 14px rgba(169, 44, 24, .3); transform: rotate(-6deg); }
header .grow { flex: 1; }
.live { font-size: 15px; color: var(--ink-soft); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px rgba(47, 174, 116, .2); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.tbtn { height: 44px; padding: 0 18px; border-radius: 14px; border: 2px solid rgba(63, 44, 29, .12); background: #fffaf0; font: 800 16px var(--font); color: var(--ink); cursor: pointer; }
.tbtn:hover { background: #fff; }
.tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { height: 58px; padding: 0 26px; border-radius: 18px; border: 0; cursor: pointer; font: 900 20px var(--font); color: var(--ink-soft); background: rgba(255, 250, 238, .7); border: 2px solid rgba(63, 44, 29, .08); display: flex; align-items: center; gap: 10px; }
.tab b { min-width: 30px; height: 28px; padding: 0 8px; border-radius: 14px; background: rgba(63, 44, 29, .08); font-size: 15px; display: grid; place-items: center; }
.tab.on { color: #fff; background: linear-gradient(180deg, #4fd394, var(--jade)); border-color: var(--jade-deep); box-shadow: 0 6px 0 var(--jade-deep); }
.tab.on b { background: rgba(255, 255, 255, .25); }
.seg { display: inline-flex; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255, 250, 238, .85); border: 2px solid rgba(63, 44, 29, .08); flex-wrap: wrap; }
.seg button { height: 42px; padding: 0 16px; border-radius: 13px; border: 0; cursor: pointer; font: 800 16px var(--font); color: var(--ink-soft); background: transparent; display: flex; align-items: center; gap: 8px; }
.seg button .sw { width: 12px; height: 12px; border-radius: 4px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(90, 60, 30, .14); }
.seg button small { font-size: 13px; color: var(--ink-soft); }
.bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.bar select { height: 46px; border-radius: 14px; border: 2px solid rgba(63, 44, 29, .12); background: #fffaf0; padding: 0 12px; font: 700 16px var(--font); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 20px; border-radius: 20px; background: rgba(255, 252, 245, .92); border: 2px solid rgba(63, 44, 29, .07); box-shadow: 0 8px 20px rgba(90, 60, 30, .07); }
.stat span { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.stat b { display: block; font-size: 34px; margin-top: 4px; }
.stat em { font-style: normal; font-size: 15px; color: var(--ink-soft); font-weight: 700; margin-left: 6px; }
.panel { border-radius: 24px; background: rgba(255, 252, 245, .94); border: 2px solid rgba(63, 44, 29, .07); box-shadow: 0 10px 26px rgba(90, 60, 30, .08); padding: 18px 20px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 19px; display: flex; align-items: baseline; gap: 10px; }
.panel h3 small { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.combos { display: flex; flex-wrap: wrap; gap: 10px; }
.combo { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 16px; background: #fff; border: 2px solid rgba(63, 44, 29, .07); }
.combo .city { font-size: 13px; font-weight: 900; padding: 3px 9px; border-radius: 9px; color: #fff; }
.combo .vals { display: flex; gap: 5px; }
.combo .vals i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; background: rgba(63, 44, 29, .06); }
.combo .n { font-weight: 900; color: var(--jade-deep); }
.combo .sum { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 14px; color: var(--ink-soft); font-weight: 800; padding: 10px 12px; border-bottom: 2px solid rgba(63, 44, 29, .08); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(63, 44, 29, .06); font-size: 17px; font-weight: 700; vertical-align: middle; }
tr:hover td { background: rgba(244, 181, 44, .06); }
.sid { font-size: 22px; font-weight: 900; }
.citytag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 10px; color: #fff; font-weight: 900; font-size: 15px; }
.cells { display: flex; gap: 6px; }
.cellv { width: 46px; text-align: center; }
.cellv .sh { height: 22px; display: grid; place-items: center; }
.cellv .sh svg { width: 20px; height: 20px; }
.cellv .v { height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; font-weight: 900; background: rgba(63, 44, 29, .05); }
.cellv .v.w { box-shadow: inset 0 -4px 0 rgba(216, 67, 42, .55); }
.cellv .v.z { color: #b9a58a; font-size: 14px; }
.num { font-size: 24px; font-weight: 900; }
.muted { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.shot { width: 132px; height: 74px; border-radius: 10px; object-fit: cover; cursor: zoom-in; border: 2px solid rgba(63, 44, 29, .1); background: #eee; display: block; }
.del { height: 34px; padding: 0 12px; border-radius: 10px; border: 2px solid rgba(216, 67, 42, .25); background: #fff4f0; color: var(--cinnabar-deep); font: 800 14px var(--font); cursor: pointer; }
.placeimg { width: 54px; height: 54px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.empty-row td { text-align: center; padding: 50px; color: var(--ink-soft); font-size: 18px; }
.ok { color: var(--jade-deep); }
.diff { color: var(--cinnabar-deep); }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(30, 20, 10, .78); display: grid; place-items: center; padding: 30px; }
.modal[hidden] { display: none; }
.modal figure { margin: 0; max-width: min(1500px, 96vw); }
.modal img { width: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.modal figcaption { color: #fff; font-size: 20px; font-weight: 800; margin-top: 14px; display: flex; justify-content: space-between; gap: 20px; }
.modal .x { position: fixed; right: 24px; top: 20px; width: 54px; height: 54px; border-radius: 50%; border: 0; font-size: 28px; cursor: pointer; background: #fff; }
.modal .nav { position: fixed; top: 50%; width: 60px; height: 60px; border-radius: 50%; border: 0; font-size: 28px; cursor: pointer; background: rgba(255, 255, 255, .9); transform: translateY(-50%); }
.modal .prev { left: 20px; } .modal .next { right: 20px; }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .wrap { padding: 16px; } }

.gate { max-width: 460px; margin: 60px auto; text-align: center; padding: 34px 30px; }
.gate h3 { justify-content: center; font-size: 24px; }
.gate form { display: flex; gap: 10px; justify-content: center; margin: 14px 0 6px; }
.gate input { height: 48px; width: 200px; border-radius: 14px; border: 2px solid rgba(63, 44, 29, .15); padding: 0 14px; font: 800 22px var(--font); letter-spacing: .3em; text-align: center; background: #fff; }

/* ===== 第二轮：按老师草图 ===== */
.top2 { display: grid; grid-template-columns: 220px 1fr; gap: 14px; margin-bottom: 16px; }
.stat.miss .ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stat.miss .ids i { font-style: normal; min-width: 38px; height: 34px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; font-weight: 900; color: var(--cinnabar-deep); background: #fff1ec; border: 2px solid rgba(216, 67, 42, .25); }
.stat.miss .all { font-style: normal; font-size: 20px; font-weight: 900; color: var(--jade-deep); }
.boxes { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.box { display: flex; align-items: center; gap: 10px; height: 128px; padding: 8px 22px 8px 10px; border-radius: 22px; cursor: pointer; font: inherit;
  background: rgba(255, 252, 245, .95); border: 3px solid rgba(63, 44, 29, .08); box-shadow: 0 8px 20px rgba(90, 60, 30, .08); transition: transform .15s, box-shadow .15s; }
.box .pic { display: flex; flex-direction: column; align-items: center; }
.box img { width: 100px; height: 100px; object-fit: contain; }
.box small { margin-top: -4px; font-size: 15px; font-weight: 900; color: var(--c, var(--ink)); }
.box b { font-size: 46px; min-width: 40px; text-align: center; color: var(--ink); }
.box:hover { transform: translateY(-2px); }
.box.on { border-color: var(--c, var(--gold)); box-shadow: 0 0 0 4px var(--c, var(--gold)), 0 10px 24px rgba(90, 60, 30, .16); }
.result { display: inline-flex; align-items: center; gap: 10px; }
.result b { font-size: 30px; }
.rbar { display: inline-block; width: 46px; height: 14px; border-radius: 5px; background: linear-gradient(180deg, #b8f5cf, #55c98a); border: 2px solid #23533c; }
.placeimg { width: 64px; height: 64px; }
.mini-m { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.cellv .v.none { background: transparent; }
@media (max-width: 900px) { .top2 { grid-template-columns: 1fr; } }
