/* AK Campus 互动抢答：题目区、抢答按钮、本场榜、老师控制台 */

.bz {
	max-width: 1080px;
	margin: 0 auto;
	padding: 8px 0 28px;
	color: #1f2937;
}

/* ---------- 头部 ---------- */
.bz-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 18px 20px;
	border-radius: 18px;
	background: linear-gradient(135deg, #fff1f2 0%, #ffedd5 100%);
	border: 1px solid #fed7aa;
	margin-bottom: 16px;
}
.bz-hero-l {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.bz-logo {
	font-size: 30px;
	line-height: 1;
}
.bz-hero h1 {
	margin: 0;
	font-size: 19px;
	color: #9a3412;
}
.bz-hero p {
	margin: 3px 0 0;
	font-size: 12.5px;
	color: #b45309;
}
.bz-hero-r {
	display: flex;
	align-items: center;
	gap: 14px;
}
.bz-wallet {
	font-size: 12.5px;
	color: #7c2d12;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 999px;
	padding: 5px 12px;
	white-space: nowrap;
}
.bz-wallet b {
	font-size: 15px;
	color: #ea580c;
}
.bz-link {
	font-size: 12.5px;
	color: #b45309;
	text-decoration: none;
	white-space: nowrap;
}
.bz-link:hover {
	text-decoration: underline;
}

/* ---------- 布局 ---------- */
.bz-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 288px;
	gap: 16px;
	align-items: start;
}
.bz-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.bz-side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bz-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.bz-card h2 {
	margin: 0 0 10px;
	font-size: 15px;
	color: #111827;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bz-card h2 em {
	font-style: normal;
	font-size: 12px;
	color: #9ca3af;
	font-weight: 400;
}

/* ---------- 按钮 ---------- */
.bz-btn {
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1;
	padding: 11px 20px;
	border-radius: 11px;
	border: 1px solid transparent;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	white-space: nowrap;
}
.bz-btn:hover {
	transform: translateY(-1px);
}
.bz-btn:active {
	transform: translateY(0);
}
.bz-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none;
}
.bz-btn.is-primary {
	background: #f97316;
	color: #fff;
	box-shadow: 0 6px 16px rgba(249, 115, 22, .28);
}
.bz-btn.is-primary:hover {
	background: #ea580c;
}
.bz-btn.is-danger {
	background: #fff;
	color: #b91c1c;
	border-color: #fecaca;
}
.bz-btn.is-danger:hover {
	background: #fef2f2;
}
.bz-btn.is-ghost {
	background: #fff;
	color: #374151;
	border-color: #e5e7eb;
}
.bz-btn.is-wide {
	width: 100%;
}
.bz-btn.is-buzzer {
	width: 100%;
	padding: 20px 24px;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 4px;
	color: #fff;
	background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(239, 68, 68, .34);
	animation: bzPulse 1.8s ease-in-out infinite;
}
@keyframes bzPulse {
	0%, 100% { box-shadow: 0 10px 26px rgba(239, 68, 68, .30); }
	50% { box-shadow: 0 12px 34px rgba(249, 115, 22, .50); }
}

/* ---------- 题目 ---------- */
.bz-qhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #f1f5f9;
	margin-bottom: 12px;
}
.bz-qno {
	font-size: 12.5px;
	font-weight: 600;
	color: #b45309;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 999px;
	padding: 4px 11px;
}
.bz-count {
	font-size: 12px;
	color: #9ca3af;
}
.bz-stem {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: #111827;
	font-weight: 500;
	white-space: pre-wrap;
	word-break: break-word;
}
.bz-stem p {
	margin: 0 0 6px;
}
.bz-stem pre,
.bz-stem code {
	font-family: Consolas, "Courier New", monospace;
	font-size: 13.5px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 10px;
	display: block;
	overflow-x: auto;
	white-space: pre;
}
.bz-empty {
	margin: 0;
	font-size: 13px;
	color: #9ca3af;
}

.bz-opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 14px;
}
.bz-opt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.55;
	color: #374151;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 11px;
	padding: 11px 13px;
	cursor: default;
	transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.bz-opt b {
	flex: 0 0 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	border-radius: 7px;
	background: #e5e7eb;
	color: #4b5563;
	font-size: 12px;
}
.bz-opt span {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
}
.bz-opt.is-live {
	cursor: pointer;
	background: #fff;
	border-color: #fdba74;
	box-shadow: 0 4px 14px rgba(249, 115, 22, .12);
}
.bz-opt.is-live:hover {
	background: #fff7ed;
	border-color: #f97316;
	transform: translateX(2px);
}
.bz-opt.is-right {
	background: #ecfdf5;
	border-color: #34d399;
	color: #065f46;
}
.bz-opt.is-right b {
	background: #34d399;
	color: #fff;
}
.bz-opt:disabled {
	opacity: 1;
}

.bz-ans {
	margin-top: 12px;
	padding: 11px 13px;
	border-radius: 11px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	font-size: 13.5px;
	color: #065f46;
}
.bz-ans b {
	font-size: 15px;
}
.bz-ans em {
	display: block;
	margin-top: 6px;
	font-style: normal;
	font-size: 12.5px;
	color: #047857;
	line-height: 1.6;
}

.bz-act {
	margin-top: 14px;
}
.bz-wait {
	margin: 0;
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	padding: 12px 10px;
	background: #f9fafb;
	border-radius: 11px;
}
.bz-mine {
	margin: 0;
	text-align: center;
	font-size: 14px;
	color: #b91c1c;
	font-weight: 600;
	padding: 12px 10px;
	background: #fef2f2;
	border: 1px dashed #fecaca;
	border-radius: 11px;
}
.bz-mine b {
	font-size: 19px;
	color: #dc2626;
}

/* ---------- 排行榜 ---------- */
.bz-board-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}
.bz-tab {
	font-family: inherit;
	font-size: 12.5px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
}
.bz-tab.is-on {
	background: #fff7ed;
	border-color: #fdba74;
	color: #c2410c;
	font-weight: 600;
}
.bz-board {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 420px;
	overflow-y: auto;
}
.bz-board-empty {
	font-size: 12.5px;
	color: #9ca3af;
	padding: 10px 2px;
}
.bz-brow {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 13px;
	background: #f9fafb;
}
.bz-brow.is-me {
	background: #fff7ed;
	border: 1px solid #fed7aa;
}
.bz-brank {
	flex: 0 0 24px;
	text-align: center;
	font-size: 12.5px;
	color: #9ca3af;
}
.bz-bname {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #111827;
}
.bz-bok {
	flex: 0 0 auto;
	font-size: 11.5px;
	color: #9ca3af;
}
.bz-bcoin {
	flex: 0 0 46px;
	text-align: right;
	font-weight: 700;
	color: #ea580c;
	font-variant-numeric: tabular-nums;
}

/* ---------- 我的战绩 ---------- */
.bz-me-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.bz-me-grid div {
	background: #f9fafb;
	border-radius: 11px;
	padding: 10px;
	text-align: center;
}
.bz-me-grid b {
	display: block;
	font-size: 18px;
	color: #111827;
	font-variant-numeric: tabular-nums;
}
.bz-me-grid span {
	font-size: 11.5px;
	color: #9ca3af;
}

/* ---------- 本场同学 ---------- */
.bz-people {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: 160px;
	overflow-y: auto;
}
.bz-chip {
	font-size: 12px;
	color: #374151;
	background: #f3f4f6;
	border-radius: 999px;
	padding: 4px 10px;
}

/* ---------- 规则 ---------- */
.bz-rule {
	margin: 0;
	padding-left: 18px;
	font-size: 12.5px;
	line-height: 1.75;
	color: #4b5563;
}
.bz-rule b {
	color: #b91c1c;
}

/* ---------- 老师控制台 ---------- */
.bz-card.is-teach {
	border-color: #fdba74;
	background: linear-gradient(135deg, #fffbf5 0%, #fff 60%);
}
.bz-teach-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.bz-pill {
	font-size: 12px;
	color: #9a3412;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 999px;
	padding: 4px 11px;
}
.bz-teach-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bz-tip {
	margin: 10px 0 0;
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.6;
}
.bz-sub {
	margin: 0 0 12px;
	font-size: 12.5px;
	color: #6b7280;
	line-height: 1.6;
}
.bz-cfg {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}
.bz-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 12px;
	color: #6b7280;
}
.bz-field select {
	font-family: inherit;
	font-size: 13px;
	color: #111827;
	padding: 9px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	width: 100%;
}

/* ---------- 飘字 ---------- */
.bz-flash {
	position: fixed;
	left: 50%;
	top: 18%;
	transform: translateX(-50%);
	z-index: 2147483200;
	max-width: 82vw;
	padding: 13px 22px;
	border-radius: 13px;
	background: #065f46;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	box-shadow: 0 14px 34px rgba(6, 95, 70, .32);
	animation: bzFlash .28s ease;
}
.bz-flash.is-bad {
	background: #b91c1c;
	box-shadow: 0 14px 34px rgba(185, 28, 28, .3);
}
.bz-flash i {
	display: block;
	margin-top: 4px;
	font-style: normal;
	font-size: 11.5px;
	font-weight: 400;
	opacity: .85;
}
@keyframes bzFlash {
	from { opacity: 0; transform: translate(-50%, -8px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 未登录 ---------- */
.bz-guest {
	max-width: 460px;
	margin: 40px auto;
	text-align: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	padding: 34px 22px;
}
.bz-guest b {
	font-size: 18px;
}
.bz-guest p {
	margin: 10px 0 18px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.7;
}

/* ---------- 适配 ---------- */
@media (max-width: 900px) {
	.bz-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.bz-side {
		flex-direction: column;
	}
	.bz-cfg {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.bz {
		padding: 4px 0 20px;
		/* 右下角有私聊 / 小K 两个悬浮按钮，底部多留一截，榜单才不会被压住 */
		padding-bottom: 96px;
	}
	.bz-hero {
		padding: 14px 15px;
		border-radius: 15px;
	}
	.bz-hero h1 {
		font-size: 17px;
	}
	.bz-hero-r {
		width: 100%;
		justify-content: space-between;
	}
	.bz-card {
		padding: 14px 14px;
		border-radius: 14px;
	}
	.bz-stem {
		font-size: 15px;
	}
	.bz-btn.is-buzzer {
		font-size: 19px;
		padding: 18px 16px;
		letter-spacing: 3px;
	}
	.bz-cfg {
		grid-template-columns: 1fr 1fr;
	}
	.bz-me-grid {
		grid-template-columns: 1fr 1fr;
	}
	.bz-flash {
		top: 12%;
		width: 88vw;
		font-size: 14px;
	}
}
