/* 教师后台 */
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(236, 252, 255, .9), rgba(236, 252, 255, .96)), url(../assets/img/bg-cz.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(--red) 55%, #b3261c); border: 3px solid #fff3ea; box-shadow: 0 0 0 2px var(--red), 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(--green); 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(20, 70, 90, .12); background: #fff; 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, 255, 255, .7); border: 2px solid rgba(20, 70, 90, .08); display: flex; align-items: center; gap: 10px; }
.tab b { min-width: 30px; height: 28px; padding: 0 8px; border-radius: 14px; background: rgba(20, 70, 90, .08); font-size: 15px; display: grid; place-items: center; }
.tab.on { color: #fff; background: linear-gradient(180deg, #4fd394, var(--green)); border-color: var(--green-deep); box-shadow: 0 6px 0 var(--green-deep); }
.tab.on b { background: rgba(255, 255, 255, .25); }
.seg { display: inline-flex; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .85); border: 2px solid rgba(20, 70, 90, .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(20, 70, 90, .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(20, 70, 90, .12); background: #fff; 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, 255, 255, .92); border: 2px solid rgba(20, 70, 90, .07); box-shadow: 0 8px 20px rgba(20, 70, 90, .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, 255, 255, .94); border: 2px solid rgba(20, 70, 90, .07); box-shadow: 0 10px 26px rgba(20, 70, 90, .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(20, 70, 90, .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(20, 70, 90, .06); }
.combo .n { font-weight: 900; color: var(--green-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(20, 70, 90, .08); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(20, 70, 90, .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(20, 70, 90, .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(20, 70, 90, .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: #b3261c; 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(--green-deep); }
.diff { color: #b3261c; }
.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(20, 70, 90, .15); padding: 0 14px; font: 800 22px var(--font); letter-spacing: .3em; text-align: center; background: #fff; }

/* ===== 第二轮：按老师草图 ===== */
.top2 { display: grid; grid-template-columns: 200px 200px 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: #b3261c; background: #fff1ec; border: 2px solid rgba(216, 67, 42, .25); }
.stat.miss .all { font-style: normal; font-size: 20px; font-weight: 900; color: var(--green-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, 255, 255, .95); border: 3px solid rgba(20, 70, 90, .08); box-shadow: 0 8px 20px rgba(20, 70, 90, .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(20, 70, 90, .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; } }


/* 省赛版 */
.top2:has(.stat:nth-child(2):last-child) { grid-template-columns: 200px 1fr; }
header .seal-mini { background: radial-gradient(circle at 30% 25%, #4fd394, var(--green) 60%, var(--green-deep)); box-shadow: 0 0 0 2px var(--green); border-color: #effff5; }
.bars { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; }
.bars i { width: 9px; height: 24px; border-radius: 3px; background: linear-gradient(90deg, #b9f3cf, #5cc98a); border: 1.5px solid #2d5a45; }
.num.bad, .bad { color: #c2271b; }
.small { font-size: 13px; }
.fenhe { display: inline-grid; grid-template-columns: 34px 34px; grid-template-rows: 34px 16px 34px; justify-items: center; align-items: center; }
.fenhe > b { grid-column: 1 / 3; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef8fb; font-size: 20px; }
.fenhe > i { grid-column: 1 / 3; width: 40px; height: 14px; border: 2px solid #8fb7c0; border-bottom: 0; border-radius: 6px 6px 0 0; }
.fenhe > span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #eef8fb; font-size: 18px; font-weight: 900; }
.fenhe.ok > b, .fenhe.ok > span { background: #e3f8eb; color: var(--green-deep); }
.fenhe.bad > b, .fenhe.bad > span { background: #fff0ed; }
.combo { gap: 14px; padding: 8px 16px; }
.seq { display: flex; flex-wrap: wrap; gap: 4px; }
.seq .st { position: relative; display: inline-block; }
.seq .st em { position: absolute; left: -2px; top: -2px; width: 20px; height: 20px; border-radius: 50%; background: #1f6fe0; color: #fff; font-style: normal; font-size: 12px; font-weight: 900; display: grid; place-items: center; z-index: 1; }
.seq .st .cg { position: absolute; right: -4px; bottom: -2px; padding: 0 5px; border-radius: 8px; background: var(--green); color: #fff; font-size: 13px; }
.seq .placeimg { width: 54px; height: 54px; }
.big { font-size: 40px; font-weight: 900; margin-right: 8px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 13px; font-weight: 900; color: #fff; margin: 2px 4px 2px 0; }
.tag.gold { background: #e09a12; } .tag.green { background: var(--green); }
.shots2 { display: flex; gap: 6px; }
.shots2 .shot { width: 110px; height: 62px; }
.wrap .panel { position: relative; left: auto; top: auto; }
