/* ============================================================
   zoom.css - 电脑端放大样式 + 缩放支持
   配合 zoom.js 使用
   ============================================================ */

:root {
  --zoom: 1;   /* 缩放倍数，1 = 100% */
}

@media (min-width: 900px){

  body{
    padding: calc(24px * var(--zoom)) calc(40px * var(--zoom)) !important;
  }
  .wrap, .container, .app{
    max-width: 90% !important;
  }

  /* 标题 */
  header h1, .topbar h1, .topbar .title{
    font-size: calc(30px * var(--zoom)) !important;
  }
  header .sub, .topbar .sub{
    font-size: calc(15px * var(--zoom)) !important;
  }

  /* 卡片 */
  .card, .panel{
    padding: calc(28px * var(--zoom)) calc(32px * var(--zoom)) !important;
  }

  /* 题目 */
  .q{
    font-size: calc(42px * var(--zoom)) !important;
    line-height: 1.4 !important;
  }
  .qText{
    font-size: calc(36px * var(--zoom)) !important;
    line-height: 1.5 !important;
  }
  .qtext, .question{
    font-size: calc(38px * var(--zoom)) !important;
  }

  /* 答案 */
  .a{
    font-size: calc(30px * var(--zoom)) !important;
    line-height: 1.6 !important;
  }
  .answer, .analysis{
    font-size: calc(26px * var(--zoom)) !important;
  }

  /* 主按钮 */
  .primaryBtn{
    font-size: calc(20px * var(--zoom)) !important;
    padding: calc(18px * var(--zoom)) !important;
  }
  .row3 button{
    font-size: calc(22px * var(--zoom)) !important;
    padding: calc(20px * var(--zoom)) calc(12px * var(--zoom)) !important;
  }
  .ghost, .row3b .ghost{
    font-size: calc(18px * var(--zoom)) !important;
    padding: calc(16px * var(--zoom)) calc(10px * var(--zoom)) !important;
  }
  .navBtns button{
    font-size: calc(20px * var(--zoom)) !important;
    padding: calc(18px * var(--zoom)) calc(10px * var(--zoom)) !important;
  }

  /* 普通按钮 */
  .btn{
    font-size: calc(16px * var(--zoom)) !important;
    padding: calc(14px * var(--zoom)) calc(22px * var(--zoom)) !important;
  }
  .key{
    height: calc(60px * var(--zoom)) !important;
    font-size: calc(24px * var(--zoom)) !important;
  }

  /* 标签 */
  .chip{
    font-size: calc(18px * var(--zoom)) !important;
    padding: calc(10px * var(--zoom)) calc(18px * var(--zoom)) !important;
  }
  .tab{
    font-size: calc(18px * var(--zoom)) !important;
    padding: calc(16px * var(--zoom)) calc(10px * var(--zoom)) !important;
  }
  .qTag, .tag{
    font-size: calc(15px * var(--zoom)) !important;
    padding: calc(4px * var(--zoom)) calc(12px * var(--zoom)) !important;
  }

  /* 输入框 */
  .subInput, .fieldDisplay, input[type="text"], input[type="date"]{
    font-size: calc(20px * var(--zoom)) !important;
  }
  .stepArea{
    font-size: calc(18px * var(--zoom)) !important;
    min-height: calc(100px * var(--zoom)) !important;
  }
  .stepAnswerInput{
    font-size: calc(20px * var(--zoom)) !important;
  }

  /* 选项 */
  .option{
    font-size: calc(20px * var(--zoom)) !important;
    padding: calc(20px * var(--zoom)) calc(18px * var(--zoom)) !important;
  }
  .option .letter{
    font-size: calc(18px * var(--zoom)) !important;
  }

  /* 学生栏 */
  .studentBar{
    padding: calc(20px * var(--zoom)) calc(24px * var(--zoom)) !important;
  }
  .studentBar .sname, .studentBar .studentName{
    font-size: calc(24px * var(--zoom)) !important;
  }
  .studentBar .sstats{
    font-size: calc(15px * var(--zoom)) !important;
  }
  .timer{
    font-size: calc(32px * var(--zoom)) !important;
  }

  /* 统计 / 汇总 */
  .stats, .summary{
    font-size: calc(16px * var(--zoom)) !important;
  }

  /* 不熟清单 */
  details.wrongBox summary{
    font-size: calc(18px * var(--zoom)) !important;
  }
  details.wrongBox li{
    font-size: calc(16px * var(--zoom)) !important;
  }
  .wq{ font-size: calc(18px * var(--zoom)) !important; }
  .wa{ font-size: calc(16px * var(--zoom)) !important; }

  /* 弹窗 */
  .modal, .overlayCard{
    max-width: 560px !important;
    padding: calc(32px * var(--zoom)) calc(28px * var(--zoom)) !important;
  }
  .modal h3, .overlayTitle{
    font-size: calc(22px * var(--zoom)) !important;
  }
  .modal p{
    font-size: calc(16px * var(--zoom)) !important;
  }
  .modal input{
    font-size: calc(22px * var(--zoom)) !important;
    padding: calc(18px * var(--zoom)) calc(20px * var(--zoom)) !important;
  }

  /* 数字键盘 */
  .npKey{
    height: calc(58px * var(--zoom)) !important;
    font-size: calc(22px * var(--zoom)) !important;
  }

  /* 姓名条 */
  .nameBar{
    padding: calc(18px * var(--zoom)) calc(22px * var(--zoom)) !important;
  }
  .nameBar .info{
    font-size: calc(15px * var(--zoom)) !important;
  }
  .nameBar .info b{
    font-size: calc(22px * var(--zoom)) !important;
  }
  .nameBar .btnChange{
    font-size: calc(16px * var(--zoom)) !important;
    padding: calc(12px * var(--zoom)) calc(20px * var(--zoom)) !important;
  }

  /* 模式开关 */
  .modeToggle{
    font-size: calc(16px * var(--zoom)) !important;
    padding: calc(10px * var(--zoom)) calc(18px * var(--zoom)) !important;
  }

  /* 难度卡片 */
  .levelCard .lvTitle{
    font-size: calc(20px * var(--zoom)) !important;
  }
  .levelCard .lvRow{
    font-size: calc(14px * var(--zoom)) !important;
  }

  /* 结果页 */
  .resultHeader .score{
    font-size: calc(90px * var(--zoom)) !important;
  }
  .resultHeader .scoreUnit{
    font-size: calc(24px * var(--zoom)) !important;
  }
  .resultHeader .label{
    font-size: calc(18px * var(--zoom)) !important;
  }
  .resultHeader .tip{
    font-size: calc(20px * var(--zoom)) !important;
  }

  /* 教师端 */
  .studentHeader .sname{
    font-size: calc(22px * var(--zoom)) !important;
  }
  .sectionStats .statBox .stMain{
    font-size: calc(22px * var(--zoom)) !important;
  }
  .sectionStats .statBox .stTitle{
    font-size: calc(14px * var(--zoom)) !important;
  }
  .sectionStats .statBox .stSub{
    font-size: calc(14px * var(--zoom)) !important;
  }

  /* 表格 */
  table{
    font-size: calc(15px * var(--zoom)) !important;
  }
  th, td{
    padding: calc(12px * var(--zoom)) calc(10px * var(--zoom)) !important;
  }
  .miniTable th, .miniTable td{
    padding: calc(8px * var(--zoom)) calc(8px * var(--zoom)) !important;
    font-size: calc(14px * var(--zoom)) !important;
  }
}

/* ============================================================
   缩放控制按钮（固定右下角，不受缩放影响）
   ============================================================ */
#zoomControls{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(15,23,42,.88);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
#zoomControls button{
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
#zoomControls button:hover{ background: rgba(255,255,255,.22); }
#zoomControls button:active{ transform: scale(.94); }
#zoomControls #zoomLabel{
  min-width: 56px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
#zoomControls #zoomLabel .zlv{
  font-size: 11px;
  color: #94a3b8;
  display: block;
  font-weight: 600;
  margin-top: -2px;
}

/* 手机上隐藏按钮 */
@media (max-width: 899px){
  #zoomControls{ display: none !important; }
}