* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eaf1fa;
  color: #1f2c3a;
}
.h5-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
}
.hero {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  margin-bottom: 12px;
}
.hero-img {
  height: 180px;
  background: linear-gradient(135deg, #d8e4f6, #a8c4ef);
}
.hero h1 {
  margin: 14px 10px 6px;
  font-size: 1.5rem;
}
.hero p {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.form-card {
  background: #dfe8f5;
  border-radius: 10px;
  padding: 14px;
}
label, legend {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 14px;
  min-height: 42px;
  border: 1px solid #d7dce8;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  font-size: 1rem;
}
input[type="date"] {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field {
  padding: 0;
}
input[type="date"]::-webkit-datetime-edit-text {
  padding: 0 2px;
}
fieldset {
  border: 0;
  margin: 0 0 10px;
  padding: 0;
}
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.radio-grid label {
  margin: 0;
  background: #f4f7fb;
  border: 1px solid #d6deea;
  border-radius: 6px;
  padding: 8px;
}
.radio-grid input,
fieldset label input {
  width: auto;
  min-height: auto;
  margin: 0 6px 0 0;
}
.inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.captcha-line {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.captcha-title {
  margin-bottom: 6px;
}
.captcha-input {
  flex: 1;
  margin-bottom: 0;
}
.captcha-line .captcha-input input {
  margin-bottom: 0;
  margin-top: 0;
}
.captcha-line img {
  width: 110px;
  height: 42px;
  flex: 0 0 110px;
  display: block;
  border: 1px solid #c9d5e8;
  border-radius: 6px;
}
.btn-submit {
  display: inline-block;
  width: 100%;
  border: 0;
  background: #3db3e6;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
}
.alert {
  margin-bottom: 12px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 6px;
  padding: 8px 10px;
}
.ok {
  margin-bottom: 12px;
  background: #dcfce7;
  color: #166534;
  border-radius: 6px;
  padding: 8px 10px;
}
.success-box {
  margin-top: 20vh;
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.portal-grid {
  display: grid;
  gap: 12px;
}
.portal-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: #1f2c3a;
}
.portal-card h3 { margin: 0 0 6px; }
.portal-card p { margin: 0; color: #4b5563; }
.event-list {
  display: grid;
  gap: 12px;
}
.event-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 50, 80, 0.08);
}
.event-cover-link {
  display: block;
}
.event-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.event-card-body {
  padding: 12px;
}
.event-card-body h3 {
  margin: 0 0 8px;
}
.event-card-body h3 a {
  color: #1f2c3a;
  text-decoration: none;
}
.event-card-body p {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #4b5563;
}
.event-entry-btn {
  margin-top: 8px;
  line-height: 38px;
}
.h5-wrap-detail {
  padding-bottom: 84px;
}
.event-detail-top {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}
.event-detail-top p {
  margin: 0 0 8px;
}
.event-detail-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.event-detail-panel {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.event-detail-panel h1 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}
.event-detail-panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.event-detail-panel p {
  margin: 0 0 8px;
  color: #374151;
}
.event-content {
  line-height: 1.7;
  color: #1f2937;
  white-space: normal;
}
.event-signup-form {
  background: #f3f7fe;
}
.event-fixed-action {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 24px));
  text-align: center;
  background: #d71c24;
  color: #fff;
  text-decoration: none;
  line-height: 48px;
  border-radius: 24px;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(215, 28, 36, 0.26);
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.2rem; }
  .inline-2 { grid-template-columns: 1fr; }
  .captcha-line { align-items: flex-end; }
  .event-cover { height: 140px; }
  .event-detail-cover { height: 160px; }
  .event-detail-panel h1 { font-size: 1.25rem; }
  .event-fixed-action {
    line-height: 44px;
    border-radius: 22px;
  }
}
