* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f6f8; color: #2c2c2a; font-size: 14px; line-height: 1.6; }
a { color: #185fa5; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #0c447c; color: #fff; padding: 0 24px; display: flex; align-items: center; height: 52px; gap: 20px; }
.topbar .brand { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; }
.topbar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topbar nav a { color: #cfe0f2; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.topbar nav a:hover, .topbar nav a.on { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.topbar .who { font-size: 12px; color: #cfe0f2; white-space: nowrap; }
.topbar .who a { color: #fff; margin-left: 8px; }
.wrap { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #e4e4e0; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #0c447c; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .g2,.g3,.g4 { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 16px 8px; }
.stat .num { font-size: 26px; font-weight: 600; color: #0c447c; }
.stat .lbl { font-size: 12px; color: #6b6b66; margin-top: 2px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb th, .tb td { border-bottom: 1px solid #eceae4; padding: 8px 10px; text-align: left; vertical-align: top; }
.tb th { background: #f7f7f4; font-weight: 600; color: #444; }
.btn { display: inline-block; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; background: #185fa5; color: #fff; text-decoration: none; }
.btn:hover { background: #0c447c; text-decoration: none; }
.btn.green { background: #3b6d11; } .btn.green:hover { background: #27500a; }
.btn.red { background: #a32d2d; } .btn.red:hover { background: #791f1f; }
.btn.gray { background: #888780; } .btn.gray:hover { background: #5f5e5a; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.flashes { margin-bottom: 14px; }
.flashes div { padding: 9px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.flashes .ok { background: #eaf3de; color: #27500a; border: 1px solid #c0dd97; }
.flashes .error { background: #fcebeb; color: #791f1f; border: 1px solid #f7c1c1; }
form .row { margin-bottom: 12px; }
form label { display: block; font-size: 13px; color: #444; margin-bottom: 4px; }
form input[type=text], form input[type=password], form input[type=number], form select, form textarea {
  width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 13px; font-family: inherit; }
form textarea { max-width: 640px; min-height: 80px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.badge.pending { background: #faeeda; color: #854f0b; }
.badge.approved { background: #eaf3de; color: #27500a; }
.badge.rejected { background: #fcebeb; color: #791f1f; }
.qcard { background: #fff; border: 1px solid #e4e4e0; border-radius: 12px; padding: 22px; }
.qcard .stem { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.qopt { display: block; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.qopt:hover { border-color: #185fa5; background: #f5f9fd; }
.qopt.ok { border-color: #3b6d11; background: #eaf3de; }
.qopt.no { border-color: #a32d2d; background: #fcebeb; }
.meta { font-size: 12px; color: #888; }
.countdown { font-size: 30px; font-weight: 600; color: #a32d2d; font-variant-numeric: tabular-nums; }
.hero { background: #0c447c; color: #fff; border-radius: 12px; padding: 26px 26px 20px; margin-bottom: 16px; }
.hero h1 { font-size: 20px; margin-bottom: 6px; }
.hero p { color: #cfe0f2; font-size: 13px; }
.cds { display: flex; gap: 26px; margin-top: 14px; }
.cds .cd .n { font-size: 26px; font-weight: 600; }
.cds .cd .t { font-size: 12px; color: #cfe0f2; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-grid figure { background: #fff; border: 1px solid #e4e4e0; border-radius: 10px; overflow: hidden; }
.photo-grid img { width: 100%; height: 150px; object-fit: cover; display: block; }
.photo-grid figcaption { padding: 8px 10px; font-size: 12px; }
.photo-grid figcaption b { display: block; font-size: 13px; }
.notice-item { padding: 8px 0; border-bottom: 1px dashed #e4e4e0; font-size: 13px; }
.notice-item .d { color: #999; font-size: 12px; }
.pagerow { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.opt-inline label { display: inline-block; margin-right: 16px; font-size: 14px; }
/* 报名动态行 */
.prow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.prow .pno { width: 22px; text-align: center; color: #888; font-size: 12px; }
.prow input[type=text], .prow input[type=number] { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.prow input[name=name] { width: 100px; }
.prow input[name=id_card] { width: 170px; }
.prow select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.prow input[name=honor_note] { width: 160px; }
.prow .pck { font-size: 12px; white-space: nowrap; }
.phead { font-size: 12px; color: #888; margin-bottom: 4px; }
.phead span { width: auto; }
/* 二维码 */
.qr-box { display: flex; flex-direction: column; align-items: center; padding: 14px; border: 1px dashed #c8c8c4; border-radius: 10px; margin-top: 10px; }
.qr-box .qr-url { margin-top: 8px; font-size: 13px; color: #0c447c; }
/* 准考证 */
.admit { width: 186mm; min-height: 100mm; margin: 14px auto; background: #fff; border: 2px solid #0c447c; border-radius: 8px; padding: 10mm 12mm; page-break-after: always; position: relative; }
.admit h1 { text-align: center; font-size: 26px; letter-spacing: 8px; color: #0c447c; margin-bottom: 2mm; }
.admit .sub { text-align: center; font-size: 12px; color: #666; margin-bottom: 6mm; }
.admit table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admit td { padding: 3.2mm 2mm; border-bottom: 1px solid #d8d8d4; }
.admit td.k { width: 34mm; color: #555; }
.admit td.v { font-weight: 600; }
.admit .no { position: absolute; top: 8mm; right: 10mm; font-size: 13px; color: #0c447c; font-weight: 600; }
.admit .tips { margin-top: 6mm; font-size: 12px; color: #555; line-height: 1.9; border-top: 1px dashed #ccc; padding-top: 3mm; }
.admit .tips b { color: #a32d2d; }
@media print {
  .topbar, .flashes { display: none !important; }
  .wrap { max-width: none; margin: 0; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; margin: 0; background: none; }
  @page { size: A4; margin: 8mm; }
}
