* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eef2f7;
  color: #223;
  min-height: 100vh;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 14px 40px; }

.topbar {
  background: linear-gradient(135deg, #1b3a6b 0%, #2c5aa0 100%);
  color: #fff;
  margin: 0 -14px 18px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(27,58,107,.25);
}
.topbar .logo { font-size: 21px; font-weight: 700; letter-spacing: 1px; }
.topbar .sub { font-size: 12px; opacity: .7; margin-top: 5px; letter-spacing: .5px; }

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 22px 18px;
}

.tip { color: #667; font-size: 14px; margin-bottom: 14px; text-align: center; }
.input-row { display: flex; gap: 10px; }
.input-row input {
  flex: 1; height: 46px; border: 1px solid #cdd6e2; border-radius: 8px;
  padding: 0 14px; font-size: 15px; outline: none; transition: .2s;
}
.input-row input:focus { border-color: #2c5aa0; box-shadow: 0 0 0 3px rgba(44,90,160,.12); }
.input-row button {
  height: 46px; padding: 0 26px; border: none; border-radius: 8px;
  background: #2c5aa0; color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.input-row button:active { background: #1b3a6b; }

/* 结果表格 */
.result { margin-top: 20px; }
.result-title {
  font-size: 16px; font-weight: 700; color: #1b3a6b;
  border-left: 4px solid #2c5aa0; padding-left: 10px; margin-bottom: 14px;
}
table.info { width: 100%; border-collapse: collapse; font-size: 14px; }
table.info th, table.info td {
  border: 1px solid #dbe3ee; padding: 12px 14px; text-align: left; vertical-align: top;
}
table.info th {
  background: #f4f7fb; color: #33475e; font-weight: 600; width: 118px; white-space: nowrap;
}
table.info td { color: #222; line-height: 1.6; word-break: break-all; }

.status-tag {
  display: inline-block; padding: 4px 14px; border-radius: 30px;
  font-size: 13px; font-weight: 700; color: #fff;
}
.status-有效 { background: #17a34a; }
.status-暂停 { background: #e02020; }
.status-撤销 { background: #777; }

.status-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 8px;
  font-size: 13px; line-height: 1.7;
}
.status-note.bad { background: #fdecec; color: #b31616; border: 1px solid #f7c5c5; }
.status-note.good { background: #e9f8ee; color: #12813d; border: 1px solid #bfe8ce; }

.not-found { text-align: center; padding: 30px 0; color: #999; font-size: 15px; }
.not-found .big { font-size: 42px; margin-bottom: 12px; }

.foot { text-align: center; color: #99a; font-size: 12px; margin-top: 22px; }

.loading { text-align: center; padding: 24px; color: #889; font-size: 14px; }

/* 管理页 */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-panel { display: none; }
.admin-panel.on { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-grid label { font-size: 13px; color: #556; display: block; margin-bottom: 4px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; border: 1px solid #cdd6e2; border-radius: 7px; padding: 10px 12px;
  font-size: 14px; outline: none; font-family: inherit;
}
.form-grid textarea { min-height: 62px; resize: vertical; }
.btn {
  border: none; border-radius: 8px; padding: 11px 20px; font-size: 14px;
  font-weight: 600; cursor: pointer; background: #2c5aa0; color: #fff;
}
.btn.gray { background: #8894a5; }
.btn.red { background: #e02020; }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.admin-item {
  border: 1px solid #dbe3ee; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
  font-size: 13px; line-height: 1.6;
}
.admin-item .t { font-weight: 700; color: #1b3a6b; font-size: 14px; }
.admin-item .actions { margin-top: 8px; display: flex; gap: 8px; }
