/* 随堂测发布弹窗样式；逻辑见 js/demo-practice-assistant.js（对齐 practice/index.styl） */
#practice-modal-mask.demo-practice-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#practice-modal-mask.demo-practice-mask.is-open {
  display: flex;
}

.demo-practice-dialog {
  width: 100%;
  max-width: 470px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.demo-practice-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.demo-practice-close {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
}

.demo-practice-tabs {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
  color: #666;
}

.demo-practice-tabs li {
  height: 32px;
  line-height: 32px;
  padding: 0 5px;
  margin: 0 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.demo-practice-tabs li.active {
  color: #333;
  border-bottom-color: #ff842f;
}

.demo-practice-body {
  padding: 0 16px 16px;
  text-align: center;
}

.demo-practice-tools {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.demo-practice-tools.is-hidden {
  display: none;
}

.demo-practice-tools button {
  width: 110px;
  height: 28px;
  line-height: 26px;
  border-radius: 15px;
  border: 1px solid #f78f17;
  font-size: 14px;
  color: #ff842f;
  background: #fff;
  cursor: pointer;
  padding: 0 8px;
}

.demo-practice-tools button:hover:not(:disabled) {
  background: #fff2ea;
}

.demo-practice-tools button:disabled {
  border-color: #ddd;
  color: #999;
  background: #f4f4f4;
  cursor: default;
}

.demo-practice-tools button span {
  font-weight: bold;
  font-size: 18px;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.demo-practice-options {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.demo-practice-options li {
  width: 60px;
  height: 60px;
  margin: 0 5px;
  line-height: 60px;
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  position: relative;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  font-style: italic;
  color: #333;
  vertical-align: middle;
}

.demo-practice-options li:hover {
  background: #fff;
  border-color: #ff842f;
}

.demo-practice-options li.is-selected {
  background: #fff;
  border-color: #ff842f;
}

.demo-practice-options li .demo-practice-check {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  font-style: normal;
  font-weight: bold;
  color: #ff842f;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ff842f;
}

.demo-practice-options li.is-selected .demo-practice-check {
  display: block;
}

.demo-practice-publish {
  width: 180px;
  height: 40px;
  line-height: 40px;
  margin: 22px auto 0;
  border: none;
  border-radius: 4px;
  background: #ff842f;
  color: #fff;
  font-size: 14px;
  cursor: not-allowed;
  opacity: 0.55;
}

.demo-practice-publish.is-ready {
  opacity: 1;
  cursor: pointer;
}

.demo-practice-publish.is-ready:hover {
  filter: brightness(1.03);
}

.demo-practice-declare {
  margin: 16px -16px -16px;
  height: 36px;
  line-height: 36px;
  background: rgba(255, 132, 47, 0.1);
  font-size: 13px;
  color: #666;
  text-align: left;
  padding-left: 12px;
}

.demo-practice-declare .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #b5b7be;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* —— 随堂测统计弹层（对齐 practice/index.vue 结果弹层布局） */
#practice-result-mask.demo-practice-result-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100011;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#practice-result-mask.demo-practice-result-mask.is-open {
  display: flex;
}

.demo-practice-result-dialog {
  width: 100%;
  max-width: 662px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.demo-practice-result-body {
  display: flex;
  min-height: 220px;
  border-top: 1px solid #eee;
}

.demo-practice-result-col {
  flex: 1;
  padding: 12px 16px 16px;
  box-sizing: border-box;
}

.demo-practice-result-col--rank {
  border-left: 1px solid #eee;
}

.demo-practice-result-subtit {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #ff842f;
}

.demo-practice-result-stat {
  margin: 0;
}

.demo-practice-result-stat dd {
  margin: 0 0 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.demo-practice-result-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  line-height: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  background: #ff842f;
}

.demo-practice-result-stat dd.is-correct .demo-practice-result-badge {
  background: #1aad19;
}

.demo-practice-result-row-main {
  flex: 1;
  min-width: 0;
}

.demo-practice-result-meta {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

.demo-practice-result-meta .pct {
  color: #999;
  margin-left: 6px;
}

.demo-practice-result-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.demo-practice-result-bar > span {
  display: block;
  height: 100%;
  background: #ff842f;
  border-radius: 3px;
  max-width: 100%;
}

.demo-practice-result-stat dd.is-correct .demo-practice-result-bar > span {
  background: #1aad19;
  min-height: 8px;
  margin-top: -1px;
}

.demo-practice-result-stat dd.is-correct .demo-practice-result-bar {
  height: 8px;
}

.demo-practice-result-rank {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-practice-result-rank li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f2f2f2;
}

.demo-practice-result-rank li:last-child {
  border-bottom: none;
}

.demo-practice-result-rank-num {
  width: 22px;
  text-align: center;
  color: #999;
}

.demo-practice-result-rank-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.demo-practice-result-rank-time {
  color: #666;
  font-variant-numeric: tabular-nums;
}

.demo-practice-result-rank-cup {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  opacity: 0.92;
}

.demo-practice-result-rank-cup:hover:not(.is-prized) {
  opacity: 1;
  transform: scale(1.06);
}

.demo-practice-result-rank-cup.is-prized {
  cursor: default;
  opacity: 1;
  filter: saturate(1.35) brightness(1.05);
}

.demo-practice-result-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #666;
}

.demo-practice-result-ft-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.demo-practice-result-action {
  min-width: 120px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 4px;
  background: #f55757;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.demo-practice-result-action:hover:not(:disabled) {
  background: #e04545;
}

.demo-practice-result-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.demo-practice-result-correct {
  color: #1aad19;
  font-weight: 600;
}

.demo-practice-result-timer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff842f;
  font-variant-numeric: tabular-nums;
}

.demo-practice-result-clock {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ff842f;
  border-radius: 50%;
  box-sizing: border-box;
  position: relative;
}

.demo-practice-result-clock::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 4px;
  background: #ff842f;
  left: 50%;
  top: 2px;
  margin-left: -0.5px;
  transform-origin: bottom center;
}

/* 送奖杯确认弹层（对齐 practice/index.vue message-box） */
#practice-prize-mask.demo-practice-prize-mask,
#practice-close-tip-mask.demo-practice-prize-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100012;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#practice-prize-mask.demo-practice-prize-mask.is-open,
#practice-close-tip-mask.demo-practice-prize-mask.is-open {
  display: flex;
}

.demo-practice-prize-dialog {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.demo-practice-prize-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.demo-practice-prize-bd {
  padding: 28px 20px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

.demo-practice-prize-name {
  color: #ff842f;
  font-weight: 600;
}

.demo-practice-prize-ft {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid #eee;
}

.demo-practice-prize-btn {
  min-width: 88px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}

.demo-practice-prize-btn--ghost {
  background: #fff;
  border-color: #ddd;
  color: #666;
}

.demo-practice-prize-btn--ghost:hover {
  background: #fafafa;
}

.demo-practice-prize-btn--primary {
  background: #ff842f;
  border-color: #ff842f;
  color: #fff;
}

.demo-practice-prize-btn--primary:hover {
  filter: brightness(1.03);
}

.demo-practice-prize-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
