:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #ec4899;
  --accent: #14b8a6;
  --danger: #e11d48;
  --warn: #f59e0b;
  --ok: #16a34a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
.site-header {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 55%, #ec4899 100%);
  color: #fff;
  padding: 18px 0;
  box-shadow: 0 10px 24px -18px rgba(30, 27, 75, 0.6);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand small { font-weight: 500; font-size: 0.8rem; opacity: 0.85; }
.top-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.top-nav a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}
.top-nav a:hover { background: rgba(255,255,255,0.24); text-decoration: none; }

/* hero */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(79,70,229,0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero h1 {
  margin: 14px 0 12px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero p { color: var(--ink-soft); font-size: 1rem; max-width: 640px; margin: 0 auto; }
.hero-slim { padding: 28px 0 20px; }
.hero-slim h1 { margin: 0 0 8px; font-size: 1.75rem; }
.hero-sub { color: var(--ink-soft); font-size: 0.95rem; }

/* ========== 平板端学生界面（大字体、大按钮） ========== */
.tablet body, body.tablet { font-size: 18px; }
.big-input {
  width: 100%;
  font-size: 1.5rem;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-height: 60px;
}
.big-input:focus { border-color: var(--brand); outline: none; }
.big-btn {
  min-height: 60px;
  padding: 14px 24px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: transform 0.05s;
}
.big-btn:active { transform: scale(0.97); }
.big-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
}
.big-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-color: transparent;
}
.big-btn.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: transparent;
}
.big-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* 数字键盘 */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 12px auto;
}
.numpad button {
  height: 70px;
  font-size: 1.6rem;
  font-weight: 700;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.numpad button:active { background: #eef2ff; }
.numpad button.ctrl { background: #f8fafc; color: #64748b; }

/* 学生名单网格 */
.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.name-grid button {
  padding: 18px 12px;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.name-grid button:active { background: #eef2ff; border-color: var(--brand); }

/* 步骤检查项（大 checkbox） */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1.55;
}
.check-list li.done {
  background: #f0fdf4;
  border-color: #86efac;
}
.check-list li .cb {
  width: 26px;
  height: 26px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #10b981;
  font-weight: 900;
  font-size: 1.05rem;
}
.check-list li.done .cb { background: #10b981; border-color: #10b981; color: #fff; }

/* 录制状态条 */
.rec-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
}
.rec-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #ef4444;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* 报告分数环 */
.score-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 60%, #ec4899 100%);
  color: #fff;
}
.score-hero .big-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}
.score-hero .grade-badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 8px;
  font-size: 1.1rem;
}

.dim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 10px;
}
.dim-row .dim-title { flex: 1; font-weight: 700; color: #0f172a; }
.dim-row .dim-val { font-size: 1.4rem; font-weight: 800; color: var(--brand); }
.dim-row .dim-val small { color: #94a3b8; font-weight: 500; font-size: 0.75rem; }

.sub-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #475569;
  font-size: 0.92rem;
  border-bottom: 1px dashed #e2e8f0;
}
.sub-row:last-child { border-bottom: none; }
.sub-row .sub-name span { color: #94a3b8; font-size: 0.8rem; margin-left: 6px; }

/* 拨杆 tag */
.tag.na { background: #f1f5f9; color: #64748b; }

/* entry grid */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.entry-card {
  display: block;
  background: var(--panel);
  border-radius: 20px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 6px 14px -12px rgba(15, 23, 42, 0.35);
}
.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(79, 70, 229, 0.35);
  border-color: rgba(79, 70, 229, 0.35);
  text-decoration: none;
}
.entry-card .icon-badge {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand);
}
.entry-card.primary .icon-badge { background: linear-gradient(135deg, #4f46e5, #ec4899); color: #fff; }
.entry-card.accent .icon-badge { background: rgba(20, 184, 166, 0.12); color: var(--accent); }
.entry-card.warn .icon-badge { background: rgba(245, 158, 11, 0.14); color: var(--warn); }
.entry-card .name { margin-top: 14px; font-weight: 800; font-size: 1.1rem; }
.entry-card .desc { margin-top: 6px; color: var(--ink-soft); font-size: 0.88rem; }
.entry-card.primary { background: linear-gradient(135deg, #4338ca 5%, #7c3aed 60%, #ec4899 100%); color: #fff; border: 0; }
.entry-card.primary .desc { color: rgba(255,255,255,0.85); }

/* panels */
.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  margin: 20px 0;
}
.panel h2 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; }
.panel h3 { margin: 18px 0 8px; font-size: 1rem; font-weight: 700; color: var(--brand); }
.panel p, .panel ul, .panel ol { color: var(--ink-soft); }
.panel ul, .panel ol { padding-left: 22px; }
.panel li { margin: 4px 0; }

/* table */
table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.92rem;
}
table.data th, table.data td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}
table.data thead th { background: #f1f5f9; font-weight: 700; }
table.data tr:nth-child(even) td { background: #f8fafc; }

/* footer */
.site-footer {
  padding: 24px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--muted); }

/* util */
.text-brand { color: var(--brand); }
.text-danger { color: var(--danger); }
.text-ok { color: var(--ok); }
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2ff;
  color: var(--brand);
  margin-right: 6px;
}
.tag.warn { background: #fef3c7; color: #b45309; }
.tag.ok { background: #dcfce7; color: #15803d; }
.tag.danger { background: #ffe4e6; color: #be123c; }

.callout {
  border-left: 4px solid var(--brand);
  background: #eef2ff;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--ink-soft);
  margin: 12px 0;
}
.callout.warn { border-left-color: var(--warn); background: #fffbeb; }
.callout.danger { border-left-color: var(--danger); background: #fef2f2; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: #fff;
  border-color: transparent;
}
.btn.primary:hover { text-decoration: none; opacity: .92; }
.btn:hover { text-decoration: none; }

/* login form */
.form-panel {
  max-width: 420px;
  margin: 32px auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.4);
}
.form-panel h2 { margin-top: 0; font-size: 1.2rem; }
.form-panel .row { margin: 12px 0; }
.form-panel label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 0.88rem; }
.form-panel input, .form-panel select {
  width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); font-size: 1rem; outline: none; background: #fff;
}
.form-panel input:focus, .form-panel select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,0.14); }

/* experiment page */
.exp-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.exp-grade {
  padding: 4px 12px; border-radius: 999px;
  background: rgba(79, 70, 229, 0.1); color: var(--brand);
  font-size: 0.85rem; font-weight: 700;
}
.exp-name { font-size: 1.4rem; font-weight: 800; }
.exp-prompt {
  margin-top: 8px; padding: 12px 16px; border-radius: 12px;
  background: #fef3c7; color: #92400e; font-size: 0.92rem;
}
.exp-fill {
  margin-top: 16px; padding: 20px; border-radius: 14px;
  background: #f8fafc; border: 1px dashed var(--line);
  font-size: 1.1rem; line-height: 2.1;
}
.exp-fill .blank {
  display: inline-block; min-width: 4em;
  border-bottom: 2px solid var(--brand); text-align: center;
  color: var(--brand); font-weight: 700;
}

/* experiment index */
.grade-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 12px 0;
  background: #fff;
}
.grade-block h3 { margin: 0 0 8px; font-size: 1rem; color: var(--brand); }
.grade-block .row { display: flex; gap: 12px; flex-wrap: wrap; }
.grade-block .row a {
  flex: 1 1 260px; padding: 10px 14px;
  border-radius: 12px; background: #f1f5f9; color: var(--ink);
  font-weight: 600; font-size: 0.92rem; display: flex; align-items: center; justify-content: space-between;
}
.grade-block .row a:hover { background: #e0e7ff; color: var(--brand); text-decoration: none; }

@media (max-width: 640px) {
  .hero { padding: 30px 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .exp-fill { font-size: 1rem; }
  .brand { font-size: 1.1rem; }
}

/* ============================================================
   jc.kejisuyang.cn — Phase 0 差异化样式
   （Phase 1 接入 guanwang 后端时移除 .proto-banner）
   ============================================================ */
body::before {
  content: "监考场次系统已上线 · 视频真实上传（OSS）与聚合报表 · 待接入";
  display: block;
  background: repeating-linear-gradient(
    45deg,
    #fef3c7,
    #fef3c7 10px,
    #fde68a 10px,
    #fde68a 20px
  );
  color: #78350f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid #f59e0b;
  letter-spacing: 0.02em;
}

.site-footer .container::after {
  content: " · jc.kejisuyang.cn";
  color: var(--muted);
  font-size: 0.9em;
}
