/* 报名登记表 · 屏幕与 A4 打印样式 */

:root {
  --ink: #141517;
  --ink-2: #3f4348;
  --ink-3: #7a7c80;
  --accent: #a4693d;
  --accent-soft: #f7f3ed;
  --brass: #b98a63;
  --rule: #d8d2c7;
  --rule-soft: #e8e3da;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: #f1eee8;
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.toolbar {
  width: min(210mm, calc(100% - 32px));
  margin: 22px auto 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(18, 34, 30, 0.08);
  font-size: 12.5px;
}

.toolbar__back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.toolbar__back:hover {
  text-decoration: underline;
}

.toolbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.toolbar__btn {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.toolbar__btn:hover {
  background: #85502d;
  transform: translateY(-1px);
}

.sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 60px;
  padding: 17mm 18mm 15mm;
  background: #fff;
  box-shadow: 0 18px 60px rgba(18, 34, 30, 0.14);
  position: relative;
}

.sheet__head {
  position: relative;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid #1d1e20;
}

.sheet__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--brass);
  opacity: 0.55;
}

.sheet__attach {
  position: absolute;
  top: 0;
  right: 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 7px;
}

.sheet__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: left;
}

.sheet__brand img {
  width: auto;
  height: 58px;
}

.sheet__school {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.sheet__union {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.sheet h1 {
  margin: 12px 0 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

.sheet__slogan {
  margin: 7px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--brass);
}

.notice {
  margin: 13px 0 4px;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.part {
  margin-top: 15px;
}

.part h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.part h2 span {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tbl th,
.tbl td {
  border: 1px solid var(--rule);
  padding: 7px 10px;
  vertical-align: middle;
}

.tbl th {
  width: 10.5%;
  background: #f4f7f6;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  letter-spacing: 0.02em;
}

.tbl td {
  height: 33px;
  font-size: 11.5px;
}

.tbl th small {
  font-size: 9px;
  color: var(--ink-3);
  font-weight: 400;
}

.tbl--choice th {
  width: 13%;
  vertical-align: top;
  padding-top: 10px;
}

.tbl--choice td {
  height: 37px;
  line-height: 2.05;
}

.opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 17px;
  white-space: nowrap;
  font-size: 11px;
}

.box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #52625c;
  border-radius: 1px;
  vertical-align: -1px;
  flex-shrink: 0;
}

.line {
  display: inline-block;
  width: 72px;
  height: 9px;
  border-bottom: 1px solid #7d8a85;
  margin-left: 2px;
}

.write {
  margin-bottom: 10px;
}

.write__label {
  margin: 0 0 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.write__label small {
  font-size: 9.5px;
  font-weight: 400;
  color: var(--ink-3);
}

.ruled {
  height: 96px;
  border: 1px solid var(--rule-soft);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 23px,
    var(--rule-soft) 23px,
    var(--rule-soft) 24px
  );
  background-position: 0 8px;
}

.ruled--short {
  height: 72px;
}

.part--flow {
  margin-top: 13px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.flow__step {
  padding: 9px 12px;
  border: 1px dashed var(--rule);
  border-radius: 6px;
}

.flow__step b {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.flow__step p {
  margin: 4px 0 0;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.sheet__foot {
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--rule);
}

.sheet__foot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--ink-2);
}

.sheet__foot-note {
  margin: 7px 0 0;
  text-align: center;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .toolbar__right {
    justify-content: space-between;
  }

  .sheet {
    width: calc(100% - 24px);
    min-height: 0;
    margin-bottom: 24px;
    padding: 22px 16px;
  }

  .sheet h1 {
    font-size: 20px;
  }

  .sheet__attach {
    position: static;
    display: inline-block;
    margin-bottom: 6px;
  }

  .tbl th {
    width: 14%;
  }

  .tbl td {
    height: 30px;
  }

  .opt {
    margin-right: 10px;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .sheet__foot-row {
    flex-direction: column;
    gap: 3px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm 14mm;
  }

  html,
  body {
    background: #fff !important;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .toolbar {
    display: none !important;
  }

  .sheet {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .sheet__foot {
    page-break-inside: avoid;
  }

  .part,
  .write {
    page-break-inside: avoid;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}
