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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: #f2f3f5;
  color: #222;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.page-wrap {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: #f2f3f5;
  position: relative;
}

.top-banner {
  position: relative;
  background: linear-gradient(135deg, #1b3b7a 0%, #23488f 100%);
  color: #fff;
  padding: 18px 16px 42px;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.banner-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.back-btn {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
  padding: 0 28px;
}

.main-content {
  position: relative;
  margin-top: -26px;
  padding: 0 12px 24px;
  z-index: 2;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  overflow: hidden;
}

.card-header {
  background-color: #eef1f6;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 10px 14px;
}

.query-form {
  padding: 10px 16px 18px;
}

.form-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 0;
}

.form-row label {
  width: 82px;
  flex-shrink: 0;
  font-size: 15px;
  color: #333;
}

.form-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #111;
  background: transparent;
  min-width: 0;
}

.form-row input::placeholder {
  color: #bbb;
}

.form-hint {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

.error-msg {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #d9363e;
  font-size: 13px;
}

.submit-btn {
  margin-top: 16px;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #1e3f80;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.lbl {
  color: #333;
}

.val {
  color: #111;
  font-weight: 500;
  text-align: right;
}

.score-total {
  color: #d9363e;
  font-size: 18px;
  font-weight: 700;
}

.score-sub {
  color: #1e3f80;
  font-size: 15px;
  font-weight: 600;
}

.sub-rows {
  padding-left: 72px;
  border-bottom: 1px solid #f2f2f2;
}

.sub-row {
  padding-left: 0;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.tag-pass {
  background: #e6f7ed;
  color: #1a8a43;
}

.tag-fail {
  background: #f0f0f0;
  color: #666;
}

.tag-absent {
  background: #fff7e6;
  color: #d46b08;
}

.detail-body {
  padding: 12px 14px;
}

.sec-block {
  margin-bottom: 16px;
}

.sec-block:last-child {
  margin-bottom: 0;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color: #1e3f80;
  margin-bottom: 6px;
}

.prog-track {
  width: 100%;
  height: 5px;
  background: #eef1f6;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #2b58ad, #1e3f80);
  border-radius: 3px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.detail-table th,
.detail-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #f2f2f2;
  text-align: center;
}

.detail-table th {
  color: #888;
  font-weight: 500;
}

.detail-table td:first-child,
.detail-table th:first-child {
  text-align: left;
}

.detail-table td:last-child,
.detail-table th:last-child {
  text-align: right;
}

.detail-table tr.subtotal-row td {
  font-weight: 600;
  color: #333;
  background: #fafbfc;
  border-bottom: none;
}

.note-card {
  padding: 12px 14px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

.page-footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 8px 0 16px;
}
