:root {
  --zzu-red: #8c0001;
  --zzu-red-dark: #6d0001;
  --zzu-gold: #c9a227;
  --text: #222;
  --muted: #666;
  --bg: #f5f5f5;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: #f5f5f5;
  overscroll-behavior: none;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: #f5f5f5;
  line-height: 1.6;
  overscroll-behavior: none;
}

img {
  max-width: 100%;
  display: block;
  background: #f5f5f5;
}

main {
  background: #f5f5f5;
  overflow-x: hidden;
}

/* 右下角悬浮报名按钮 */
.btn-register-float {
  position: fixed;
  right: 24px;
  bottom: 28%;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 14px 12px;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  background: var(--zzu-red);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  box-shadow: 0 6px 18px rgba(140, 0, 1, .35);
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn-register-float:hover {
  background: var(--zzu-red-dark);
  transform: translateY(-2px);
}

.hero,
.promo {
  background: #f5f5f5;
  line-height: 0;
}
.hero img,
.promo img,
.campus-strip img,
.img-wrap img {
  width: 100%;
  background: #f5f5f5;
}

.block {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 28px 0 16px;
  background: #fff;
}
.block .block-body,
.block .block-title {
  width: 80%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.block.alt {
  background: #fff;
}

/* 相邻白底区块避免上下 padding 叠加成过大空白 */
.block + .block {
  padding-top: 12px;
}

#fields {
  padding-bottom: 28px;
}
#consult {
  padding-bottom: 28px;
}

.block-title {
  text-align: left;
  font-size: 26px;
  color: var(--zzu-red);
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.block-title::after {
  content: "";
  display: block;
  width: 75%;
  height: 1px;
  background: #ddd;
  margin: 0;
  position: absolute;
  left: 0;
  bottom: 0;
}
.block-title small {
  display: inline;
  margin-top: 0;
  font-size: 12px;
  letter-spacing: 2px;
  color: #999;
  font-weight: 500;
}

.prose {
  width: 100%;
  max-width: none;
}
.prose p {
  font-size: 15px;
  color: #333;
  text-indent: 2em;
  text-align: left;
  line-height: 1.9;
}
.prose strong { color: var(--zzu-red); }

.goal-list {
  width: 100%;
  max-width: none;
}
.goal-item {
  margin-bottom: 22px;
}
.goal-item:last-child {
  margin-bottom: 0;
}
.goal-item h3 {
  color: #222;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}
.goal-item p {
  font-size: 15px;
  color: #333;
  line-height: 1.85;
}

.fields-all {
  margin-bottom: 20px;
}
.fields-all img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.campus-strip {
  width: 80%;
  margin: 8px auto 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.two-col h3 { color: var(--zzu-red); margin-bottom: 12px; font-size: 17px; }
.two-col p { font-size: 14px; margin-bottom: 10px; color: #444; }

.sub-heading {
  color: #222;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  width: 100%;
  max-width: none;
}
.curriculum-group + .curriculum-group {
  margin-top: 28px;
}

.num-list {
  list-style: none;
  padding-left: 0;
  counter-reset: notice;
  width: 100%;
  max-width: none;
  margin: 0;
}
.num-list li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 40px;
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  counter-increment: notice;
}
.num-list li strong {
  color: #222;
  font-weight: 700;
}
.num-list li::before {
  content: counter(notice);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--zzu-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
.num-list a {
  color: var(--zzu-red);
  text-decoration: none;
}
.num-list a:hover { text-decoration: underline; }

.info-panel {
  padding: 0;
}

.certs { margin-top: 24px; }

/* ========== 报名区 ========== */
.register-section {
  background: #e9e9e9;
  padding: 40px 16px 56px;
  margin: 0;
}

.register-card {
  width: 80%;
  max-width: none;
  margin: 0 auto;
  background: #fff;
  padding: 36px 4% 44px;
  box-shadow: none;
  border: none;
}

.register-card h2 {
  text-align: center;
  color: var(--zzu-red);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.register-line {
  height: 2px;
  background: var(--zzu-red);
  margin: 16px auto 32px;
  width: 100%;
}

.form-item { margin-bottom: 24px; }
.form-item label {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  color: #333;
}
.form-item label i { color: var(--zzu-red); font-style: normal; margin-left: 2px; }

.form-item input[type="text"],
.form-item input[type="tel"] {
  width: 100%;
  height: 44px;
  border: 1px solid #cfcfcf;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  background: #fff;
  border-radius: 0;
}
.form-item input:focus { border-color: var(--zzu-red); }

.hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--zzu-red);
}

.major-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-top: 2px;
}

.major-opt {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0 !important;
  font-size: 15px;
  user-select: none;
  color: #333;
}
.major-opt input {
  width: 16px;
  height: 16px;
  accent-color: var(--zzu-red);
  margin: 0;
}

.btn-submit {
  display: block;
  width: 240px;
  margin: 32px auto 0;
  height: 48px;
  border: none;
  background: var(--zzu-red);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  border-radius: 0;
}
.btn-submit:hover { background: var(--zzu-red-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ========== 报名缴费二维码 ========== */
.pay-block {
  margin-top: 40px;
  text-align: center;
}
.pay-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 0 auto 28px;
}
.pay-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--zzu-red);
  letter-spacing: 1px;
}
.pay-desc {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}
.pay-qr {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border: 1px solid #eee;
}
.pay-qr img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
}
.pay-tip {
  margin-top: 12px;
  font-size: 13px;
  color: #888;
}

.footer {
  background: #1a0a0a;
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
}
.footer p + p { margin-top: 6px; }

/* modal */
.modal-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-mask[hidden] { display: none !important; }
.modal {
  background: #fff;
  width: min(420px, 100%);
  padding: 28px 24px 20px;
  border-radius: 6px;
}
.modal h3 { color: var(--zzu-red); margin-bottom: 12px; font-size: 18px; }
.modal p { font-size: 14px; color: #333; line-height: 1.7; white-space: normal; }
.modal p strong { color: var(--zzu-red); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-actions button {
  min-width: 88px; height: 36px; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.btn-cancel { border: 1px solid #ccc; background: #fff; color: #333; }
.btn-ok { border: none; background: var(--zzu-red); color: #fff; }

.toast {
  position: fixed;
  left: 50%; top: 80px;
  transform: translateX(-50%);
  z-index: 3000;
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  max-width: 90%;
}
.toast[hidden] { display: none !important; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .register-card { padding: 28px 4% 36px; }
  .btn-register-float {
    right: 12px;
    bottom: 22%;
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .two-col { grid-template-columns: 1fr; }
  .major-options { flex-direction: column; gap: 10px; }
  .block .block-body,
  .block .block-title,
  .register-card {
    width: 90%;
  }
  .block { padding: 24px 0 12px; }
  .block + .block { padding-top: 8px; }
  .block-title { font-size: 22px; gap: 6px 10px; }
  .block-title small { font-size: 11px; letter-spacing: 1px; }
  .pay-qr img { width: 180px; height: 180px; }
  .pay-desc { font-size: 13px; }
  .btn-register-float {
    right: 10px;
    bottom: 18%;
    letter-spacing: 3px;
  }
}
