* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f4f8;
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 36px 16px 28px;
  text-align: center;
}

.site-header h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
}

.site-header p {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.92;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.08);
  padding: 22px;
  margin-bottom: 18px;
}

.card.hidden {
  display: none;
}

.field-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

select,
input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

select:focus,
input:focus {
  border-color: #2563eb;
}

button {
  width: 100%;
  padding: 13px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover {
  background: #1d4ed8;
}

button:active {
  background: #1e40af;
}

.privacy-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.student-name {
  font-size: 20px;
  font-weight: 600;
}

.exam-name {
  font-size: 13px;
  color: #6b7280;
}

.id-masked {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
}

th {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: #f9fafb;
}

.error-card {
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  font-size: 15px;
}

.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #9ca3af;
}
