* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1f2937;
  background: #f1f5f9;
}

/* ===== 手机端通用卡片 ===== */
body.mobile { background: linear-gradient(160deg,#eef2ff,#f8fafc); min-height: 100vh; padding: 24px 16px; }
.card { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(30,41,59,.08); padding: 26px 22px; }
.brand { font-size: 22px; margin: 0 0 18px; text-align: center; color: #111827; }

.fld { display: block; margin-bottom: 18px; font-size: 14px; color: #374151; font-weight: 600; }
.fld input[type=text], .fld input:not([type]), .fld input[name=name] {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  border: 1px solid #d1d5db; border-radius: 10px; font-size: 16px; font-weight: 400;
}
.hint { font-size: 12px; color: #9ca3af; margin-top: 6px; font-weight: 400; }

.uploader {
  position: relative; margin-top: 8px; border: 2px dashed #cbd5e1; border-radius: 14px;
  min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #94a3b8; background: #f8fafc; overflow: hidden; font-weight: 400;
}
.uploader img { max-width: 120px; max-height: 120px; border-radius: 12px; object-fit: cover; margin-bottom: 6px; }
.uploader input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.btn {
  display: block; width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: #4f46e5; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #eef2ff; color: #4f46e5; margin-top: 14px; }
.btn.gray { background: #64748b; }

.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.me { text-align: center; padding: 10px 0; }
.avatar-lg { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid #eef2ff; }
.me-name { font-size: 22px; font-weight: 700; margin: 14px 0 6px; }
.me-tip { color: #6b7280; font-size: 14px; margin-bottom: 8px; }

/* ===== 评委打分 ===== */
.topbar { position: sticky; top: 0; z-index: 5; background: #4f46e5; color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.topbar .who { font-size: 14px; font-weight: 600; }
.topbar .out { color: #c7d2fe; font-size: 13px; text-decoration: none; }
.rounds { display: flex; gap: 8px; padding: 12px 16px; background: #fff; position: sticky; top: 44px; z-index: 4; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.rounds button { flex: 1; padding: 10px 4px; border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 10px; font-size: 13px; color: #374151; cursor: pointer; font-weight: 600; }
.rounds button.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.rounds button .rn { display: block; font-size: 11px; font-weight: 400; opacity: .8; margin-top: 2px; }

.stu-list { padding: 12px 12px 40px; max-width: 640px; margin: 0 auto; }
.stu-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.stu-row .ord { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #eef2ff; color: #4f46e5; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.stu-row .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #e5e7eb; }
.stu-row .nm { flex: 1; font-weight: 600; font-size: 16px; }
.stu-row .score-in { width: 78px; padding: 10px; text-align: center; font-size: 18px; font-weight: 700; border: 2px solid #e5e7eb; border-radius: 10px; }
.stu-row .score-in.saved { border-color: #10b981; background: #ecfdf5; }
.stu-row .save { border: none; background: #4f46e5; color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }

.center-tip { text-align: center; color: #9ca3af; padding: 40px 20px; }

/* 登录 */
.login-wrap { max-width: 380px; margin: 60px auto; padding: 0 16px; }
