:root {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #07152f;
  background: #eef6ff;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d2df;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fbfdff;
  color: #07152f;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3769ff;
  box-shadow: 0 0 0 4px rgba(55, 105, 255, 0.12);
}

textarea { resize: vertical; }

.hidden { display: none !important; }

.admission-page {
  min-height: 100vh;
  padding: 22px 24px 32px;
  background:
    linear-gradient(180deg, #2f82ff 0%, #8dbdff 34%, #eff7ff 78%, #ffffff 100%);
}

body.showing-result .site-header {
  display: none;
}

body.showing-result .page-footer {
  display: none;
}

body.showing-result .admission-page {
  padding-top: 0;
}

.site-footer {
  width: min(100%, 760px);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(167, 202, 245, 0.65);
  color: rgba(7, 21, 47, 0.62);
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
}

.site-footer strong {
  color: rgba(7, 21, 47, 0.82);
  font-weight: 700;
}

.result-footer {
  width: min(100% - 32px, 520px);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
}

.result-footer strong {
  color: #fff;
  font-weight: 700;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 138px;
}

.site-logo {
  width: min(430px, 78vw);
  max-height: 118px;
  object-fit: contain;
}

.query-shell {
  width: min(1250px, calc(100vw - 48px));
  min-height: 700px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(420px, 46%) minmax(420px, 54%);
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(30, 88, 168, 0.18);
}

.query-visual {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #eef6ff;
}

.query-side-image {
  width: 100%;
  height: 100%;
  min-height: 700px;
  display: block;
  object-fit: cover;
  object-position: 28% 56%;
}

.query-content {
  display: grid;
  align-items: center;
  padding: 56px min(8vw, 120px);
}

.query-form {
  width: min(430px, 100%);
  margin: 0 auto;
}

.query-form h1 {
  margin: 0 0 52px;
  color: #000;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}

.current-year-badge {
  width: fit-content;
  margin: -32px auto 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #3159dd;
  background: #eef4ff;
  font-size: 14px;
  font-weight: 700;
}

.query-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.candidate-note {
  margin: -2px 0 10px;
  color: #3159dd;
  font-size: 14px;
  font-weight: 700;
}

.query-form input {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #f4f4f4;
}

.submit-button {
  width: 100%;
  height: 44px;
  margin-top: 50px;
  background: #3f68f6;
  color: #fff;
  box-shadow: 0 12px 24px rgba(63, 104, 246, .24);
}

.submit-button:hover { background: #3159dd; }

.submit-button:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.captcha-box {
  display: grid;
  grid-template-columns: 130px auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.captcha-box img {
  width: 130px;
  height: 42px;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #f8fafc;
}

.captcha-box input { grid-column: 1 / -1; }

.text-button {
  height: 40px;
  background: transparent;
  color: #3159dd;
}

.hint {
  min-height: 24px;
  margin: 14px 0 0;
  color: #b42318;
}

.result {
  width: min(540px, calc(100vw - 28px));
  margin: 22px auto 0;
}

.result-page {
  min-height: 820px;
  padding: 16px 12px 30px;
  color: #fff;
  background-color: #c42828;
  background-image: url("assets/huawen.png");
  background-repeat: repeat;
  background-size: 360px 360px;
  border-radius: 0;
  box-shadow: 0 20px 46px rgba(124, 10, 10, .2);
}

.result-nav {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  height: 40px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}

.back-result {
  width: 34px;
  height: 34px;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.scroll-wrap {
  position: relative;
  margin-top: 16px;
  padding: 26px 18px 34px;
}

.scroll-top,
.scroll-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 34px;
  background: url("assets/6956.png") center / 100% 100% no-repeat;
  z-index: 3;
}

.scroll-top { top: 0; }
.scroll-bottom { bottom: 0; }

.scroll-side {
  position: absolute;
  top: 28px;
  bottom: 28px;
  width: 18px;
  background: url("assets/6954.png") center / 100% 100% repeat-y;
  z-index: 2;
}

.scroll-side.left { left: 3px; }
.scroll-side.right { right: 3px; }

.result-paper {
  position: relative;
  min-height: 520px;
  padding: 42px 30px 70px;
  color: #8a1d12;
  background:
    url("assets/54.png") left top / 58px 170px no-repeat,
    url("assets/55.png") right top / 58px 170px no-repeat,
    linear-gradient(180deg, #fffbea, #fff8df);
  border: 1px solid rgba(210, 176, 88, .42);
}

.result-paper h2 {
  margin: 0;
  text-align: center;
  color: #d90000;
  font-size: 32px;
  line-height: 1.2;
}

.result-subtitle {
  margin: 12px 0 30px;
  text-align: center;
  color: #d90000;
  font-size: 14px;
  line-height: 1.7;
}

.result-line {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  min-height: 42px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(210, 176, 88, .46);
  color: #6d2b17;
  font-size: 14px;
}

.result-line span:first-child {
  color: rgba(65, 38, 22, .72);
}

.result-line strong {
  justify-self: end;
  text-align: right;
  font-weight: 700;
  color: #5b2315;
  overflow-wrap: anywhere;
}

.result-logo {
  display: block;
  width: 210px;
  margin: 26px auto 0;
}

.empty-result {
  padding: 26px;
  color: #8a1d12;
  background: #fff8df;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

.empty-result strong {
  display: block;
  color: #c90000;
  font-size: 20px;
  line-height: 1.5;
}

.empty-result p {
  margin: 14px 0 0;
  color: #7a321c;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
}

.progress-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff8df;
  background: #c42828;
  box-shadow: 0 8px 18px rgba(196, 40, 40, .18);
  text-decoration: none;
  font-size: 14px;
}

.admission-progress {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(210, 176, 88, .46);
}

.admission-progress h3 {
  margin: 0 0 14px;
  color: #c90000;
  text-align: center;
  font-size: 20px;
}

.progress-list {
  display: grid;
  gap: 12px;
}

.progress-item {
  padding: 14px;
  border: 1px solid rgba(210, 176, 88, .38);
  border-radius: 8px;
  background: rgba(255, 252, 239, .72);
}

.progress-item h4 {
  margin: 0 0 8px;
  color: #7a1d12;
  font-size: 16px;
}

.progress-content {
  color: #6d2b17;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.progress-content p {
  margin: 0 0 8px;
}

.progress-content p:last-child {
  margin-bottom: 0;
}

.progress-content ul,
.progress-content ol {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.progress-empty {
  padding: 14px;
  color: #7a321c;
  text-align: center;
  border: 1px dashed rgba(210, 176, 88, .5);
  border-radius: 8px;
}

.progress-page {
  min-height: 100vh;
  padding: 30px 24px;
  background:
    linear-gradient(180deg, #2f82ff 0%, #8dbdff 32%, #eff7ff 82%, #ffffff 100%);
}

.progress-header {
  width: min(1080px, 100%);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr auto;
  gap: 24px;
  align-items: center;
  color: #fff;
}

.progress-logo {
  width: min(360px, 100%);
  display: block;
}

.progress-title h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.2;
}

.progress-title p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.7;
}

.progress-back {
  padding: 10px 16px;
  border-radius: 999px;
  color: #1d61b8;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(30, 88, 168, .18);
  white-space: nowrap;
}

.progress-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(207, 232, 251, .9);
  box-shadow: 0 24px 60px rgba(30, 88, 168, .16);
}

.progress-list-page {
  gap: 16px;
}

.progress-item-page {
  background: #fbfeff;
  border-color: #dcecf8;
}

.progress-item-page h2 {
  margin: 0 0 10px;
  color: #06477d;
  font-size: 20px;
}

.progress-item-page .progress-content {
  color: #24364a;
}

.progress-footer {
  width: min(1080px, 100%);
  color: rgba(7, 21, 47, .68);
}

.admin-page {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  color: #172033;
  background: #eef3f8;
}

.admin-card {
  margin-top: 20px;
  padding: 30px;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(22, 43, 69, 0.1);
}

.admin-header,
.section-title,
.province-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-card button,
.admin-header button,
.section-title button {
  padding: 12px 22px;
  background: #9d1f2f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(157, 31, 47, 0.18);
}

.stack-form,
.upload-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.province-editor {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.province-item,
.year-row {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.province-name { max-width: 220px; }
.year-value { max-width: 160px; }

.admission-list-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.admission-list-tools select {
  width: min(240px, 100%);
}

.admission-list-tools button {
  padding: 10px 16px;
  background: #fff;
  color: #9d1f2f;
  border: 1px solid #9d1f2f;
  box-shadow: none;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e6edf5;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #334155;
  background: #f5f7fb;
  font-weight: 700;
}

.admin-table td {
  color: #172033;
  overflow-wrap: anywhere;
}

.inline-check {
  white-space: nowrap;
  color: #334155;
}

.inline-check input {
  width: auto;
  margin-right: 6px;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .admission-page {
    padding: 12px 12px 24px;
  }

  .site-header {
    height: 96px;
  }

  .query-shell {
    width: min(100%, 520px);
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 14px;
  }

  .query-visual {
    min-height: 300px;
  }

  .query-content {
    padding: 34px 24px 42px;
  }

  .query-form h1 {
    margin-bottom: 34px;
    font-size: 24px;
  }

  .query-side-image {
    min-height: 300px;
    object-position: center;
  }

  body.showing-result .admission-page {
    padding: 0;
    background: #c42828;
  }

  body.showing-result .result {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  body.showing-result .result-page {
    width: 100%;
    min-height: 100vh;
    padding: 10px 0 28px;
    box-shadow: none;
  }

  body.showing-result .scroll-wrap {
    width: 100%;
    margin-top: 8px;
    padding: 24px 18px 30px;
    overflow: hidden;
  }

  body.showing-result .scroll-top,
  body.showing-result .scroll-bottom {
    left: 10px;
    right: 10px;
  }

  body.showing-result .scroll-side.left {
    left: 13px;
  }

  body.showing-result .scroll-side.right {
    right: 13px;
  }

  body.showing-result .result-paper {
    min-height: 500px;
    margin: 0 16px;
    padding: 34px 28px 66px;
  }

  body.showing-result .result-paper h2 {
    font-size: 30px;
  }

  body.showing-result .result-line {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
  }

  body.showing-result .result-logo {
    width: 190px;
    margin-top: 20px;
  }

  .site-footer,
  .result-footer {
    font-size: 12px;
  }

  .progress-page {
    padding: 18px 14px 26px;
  }

  .progress-header {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .progress-logo {
    width: min(300px, 82vw);
    margin: 0 auto;
  }

  .progress-title h1 {
    font-size: 26px;
  }

  .progress-back {
    justify-self: center;
  }

  .progress-panel {
    padding: 16px;
    border-radius: 12px;
  }

  .progress-item-page h2 {
    font-size: 18px;
  }

  .admin-page {
    width: min(100% - 20px, 1000px);
    padding: 16px 0;
  }

  .admin-header,
  .section-title,
  .province-item-head {
    align-items: stretch;
    flex-direction: column;
  }

  .province-name {
    max-width: none;
  }
}
