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

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #eef2f7;
  color: #2c3e50;
  min-height: 100vh;
}

.container {
  margin: 0 auto;
}

/* ========== Header ========== */
header {
  text-align: center;
  padding: 56px 20px 36px;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0279ff;
}

header h1 {
  font-size: 32px;
  color: #0279ff;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

header p {
  color: #8899aa;
  font-size: 15px;
}

/* ========== Search Box ========== */
.search-box {
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 36px auto;
  max-width: 680px;
  border-radius: 12px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: 16px;
  outline: none;
  font-family: inherit;
  color: #2c3e50;
  background: #fff;
}

.search-box input::placeholder {
  color: #aabbcc;
}

.search-box button {
  padding: 16px 38px;
  background: #0279ff;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.search-box button:hover {
  background: #0068dd;
}

/* ========== Results Info ========== */
.results-info {
  color: #8899aa;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

/* ========== Records Grid ========== */
.records-grid {
  display: grid;
  padding: 20px;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 22px;
  padding-bottom: 40px;
}

.record-card {
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s, transform 0.2s;
}

.record-card:hover {
  box-shadow: 0 6px 24px rgba(2, 121, 255, 0.12);
  transform: translateY(-2px);
}

.record-header {
  padding: 16px 20px;
  background: #f4f8fd;
  border-bottom: 1px solid #dce8f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-body {
  padding: 18px 20px;
}

.field {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.field label {
  color: #7a8fa6;
  font-weight: 600;
  min-width: 62px;
  font-size: 13px;
}

.field span {
  color: #2c3e50;
}

/* ========== Status Badge ========== */
.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-pass { background: #eafbee; color: #1a9e3f; border: 1px solid #c2eecf; }
.status-suspect { background: #fef9e2; color: #b47d00; border: 1px solid #f5e6a0; }
.status-proxy { background: #e6f2ff; color: #0066cc; border: 1px solid #b3d4ff; }
.status-cheat { background: #fde8e8; color: #cc2222; border: 1px solid #f5b8b8; }
.status-fail { background: #f0f0f0; color: #666666; border: 1px solid #ddd; }

/* ========== Record Images ========== */
.record-images {
  padding: 14px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #eef2f7;
}

.record-images img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #dce8f5;
  transition: border-color 0.2s, transform 0.15s;
}

.record-images img:hover {
  border-color: #0279ff;
  transform: scale(1.04);
}

/* ========== Image Overlay ========== */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
}

.image-overlay img {
  max-width: 90%;
  max-height: 88%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 18px;
  border: 1px solid #cdd8e8;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: #2c3e50;
  transition: all 0.2s;
}

.pagination button:hover {
  border-color: #0279ff;
  color: #0279ff;
  background: #eef5ff;
}

.pagination button.active {
  background: #0279ff;
  color: white;
  border-color: #0279ff;
  font-weight: 600;
}

/* ========== States ========== */
.no-results, .loading, .error {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
}

.no-results { color: #aabbcc; }
.loading { color: #8899aa; }
.error { color: #e74c3c; }

/* ========== Announcement Modal ========== */
.announcement-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.announcement-content {
  background: #fff;
  border-radius: 16px;
  width: 520px;
  max-width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2, 121, 255, 0.2);
  animation: slideUp 0.3s;
  border: 2px solid #0279ff;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  background: linear-gradient(135deg, #0279ff 0%, #0068dd 100%);
  color: white;
}

.announcement-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.announcement-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  opacity: 0.9;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.announcement-body {
  padding: 28px 26px;
  line-height: 1.8;
  color: #2c3e50;
  font-size: 15px;
  white-space: pre-wrap;
  max-height: 50vh;
  overflow-y: auto;
}

.announcement-footer {
  padding: 18px 26px;
  border-top: 1px solid #eef2f7;
  display: flex;
  justify-content: center;
}

.announcement-btn {
  padding: 10px 36px;
  background: #0279ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 3px 10px rgba(2, 121, 255, 0.3);
}

.announcement-btn:hover {
  background: #0068dd;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(2, 121, 255, 0.4);
}

.announcement-btn:active {
  transform: translateY(0);
}
