/* ================= H5 报名端 ================= */
body.h5 {
  background: #eef1f6;
  min-height: 100vh;
  min-height: 100dvh;
}

.h5-shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(21, 85, 154, .06);
}

/* ---------- 顶部品牌区 ---------- */
.hero {
  position: relative;
  padding: 30px 22px 46px;
  background: linear-gradient(135deg, #0f4278 0%, #15559a 46%, #2a7dc8 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}
.hero::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hero::after { width: 140px; height: 140px; right: 40px; bottom: -80px; background: rgba(255,255,255,.05); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  font-size: 12px; letter-spacing: .5px; margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: .2px;
  position: relative; z-index: 1;
}
.hero .sub {
  margin-top: 8px; font-size: 13px; line-height: 1.6;
  color: rgba(255, 255, 255, .78); position: relative; z-index: 1;
}
.hero-org {
  margin-top: 18px; display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255, 255, 255, .72); position: relative; z-index: 1;
}

/* ---------- 内容区 ---------- */
.h5-body { flex: 1; padding: 0 14px 24px; margin-top: -28px; position: relative; z-index: 2; }

.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 3px 14px rgba(21, 85, 154, .07);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }
.card-pad { padding: 18px; }

.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 16px;
}
.section-title::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: var(--brand); flex: none;
}
.section-title .hint { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-3); }

/* ---------- 活动列表项 ---------- */
.act-item {
  display: block; background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 4px 18px rgba(15, 66, 120, .1);
  margin-bottom: 12px; transition: transform .16s, box-shadow .16s;
  color: inherit; border: 1px solid rgba(255, 255, 255, .9);
}
.act-item:active { transform: scale(.99); }
.act-cover {
  height: 112px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #e9f3fc, #d5e7f8);
}
.act-cover img { width: 100%; height: 100%; object-fit: cover; }

.act-main { padding: 14px 16px 16px; }
.act-topline { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
/* 顶部行右侧的截止日期：禁止被挤压换行，窄屏时整体换到第二行 */
.act-topline .m {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto; white-space: nowrap; flex: 0 0 auto;
  font-size: 11.5px; color: var(--text-3);
}
.act-title {
  font-size: 16.5px; font-weight: 600; line-height: 1.45;
  color: var(--text); margin-bottom: 7px;
}
.act-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 13px; min-height: 42px;
}
.act-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.act-meta .m {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-3);
}
.act-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line-2);
}
.progress-mini { flex: 1; margin-right: 14px; min-width: 0; }
.progress-mini .bar {
  height: 5px; border-radius: 3px; background: #e6ecf4; overflow: hidden;
}
.progress-mini .bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #2a7dc8, #47a3e8);
  transition: width .4s ease;
}
.progress-mini .txt {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11.5px; color: var(--text-3); margin-top: 6px; white-space: nowrap;
}
.act-go {
  flex: none; height: 34px; padding: 0 15px; border-radius: 17px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px;
}
.act-go.disabled { background: #c3ccd9; }

/* ---------- 报名页头 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: 50px; display: flex; align-items: center; padding: 0 12px;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.navbar .nav-title {
  flex: 1; text-align: center; font-size: 15.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px;
}
.navbar .nav-side { width: 40px; display: flex; }
.navbar .nav-side.right { justify-content: flex-end; }

.page-hero { padding: 22px 20px 52px; }
.page-hero h1 { font-size: 20px; }
.page-hero .row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.quota-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 13px;
  background: rgba(255,255,255,.18); font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.22);
}
.quota-pill.hot { background: rgba(217, 58, 43, .9); border-color: transparent; }

/* ---------- 报名须知 ---------- */
.notice-box {
  font-size: 13.5px; line-height: 1.85; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.notice-fold { position: relative; max-height: 5.6em; overflow: hidden; }
.notice-fold::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5em;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 85%);
}
.notice-more {
  margin-top: 8px; font-size: 13px; color: var(--brand-500);
  display: inline-flex; align-items: center; gap: 3px;
}

/* ---------- 表单 ---------- */
.form-card { padding: 20px 18px 8px; }
.form-card .field:last-child { margin-bottom: 14px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; cursor: pointer; transition: all .15s; background: #fff;
}
.radio-item:active { background: var(--brand-50); }
.radio-item.checked { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); }
.radio-dot {
  width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #c6d0dd;
  flex: none; position: relative; background: #fff; transition: all .15s;
}
.radio-item.checked .radio-dot { border-color: var(--brand); border-width: 5px; }

.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; cursor: pointer; transition: all .15s; background: #fff;
}
.check-item.checked { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); }
.check-box {
  width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #c6d0dd;
  flex: none; display: flex; align-items: center; justify-content: center;
  background: #fff; transition: all .15s;
}
.check-item.checked .check-box { background: var(--brand); border-color: var(--brand); }
.check-item.checked .check-box svg { display: block; }
.check-box svg { display: none; }

/* 图片上传 */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.up-slot {
  width: 92px; height: 92px; border-radius: 10px; position: relative;
  border: 1px dashed #c8d3e2; background: #fafbfd;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; color: var(--text-3); font-size: 11.5px; cursor: pointer;
  transition: all .15s;
}
.up-slot:hover { border-color: var(--brand-400); color: var(--brand-500); background: var(--brand-50); }
.up-slot.busy { pointer-events: none; }
.up-thumb {
  width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  position: relative; background: #eef1f6;
}
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb .del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(23,33,47,.78); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.up-thumb .mask {
  position: absolute; inset: 0; background: rgba(15,66,120,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(21,85,154,.2); border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 底部提交栏 */
.submit-bar {
  position: sticky; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -2px 14px rgba(23,33,47,.05);
}
.submit-bar .btn { height: 46px; font-size: 16px; border-radius: 10px; }
.submit-note { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }

/* ---------- 成功页 ---------- */
.result-wrap {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto;
  background: linear-gradient(170deg, #0f4278 0%, #15559a 40%, #2a7dc8 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 44px 20px calc(30px + env(safe-area-inset-bottom));
}
.result-card {
  width: 100%; max-width: 460px; background: #fff; border-radius: 18px;
  padding: 30px 24px 26px; text-align: center; margin-top: 10px;
  box-shadow: 0 20px 50px rgba(6, 30, 56, .3);
  animation: popIn .38s cubic-bezier(.2,.9,.3,1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
.result-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--success-50); display: flex; align-items: center; justify-content: center;
}
.result-icon.warn { background: var(--warn-50); }
.result-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.result-card .tip { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.code-box {
  margin: 22px 0; padding: 18px; border-radius: 12px;
  background: linear-gradient(135deg, #f2f7fd, #e8f2fd);
  border: 1px dashed #b5cfe9;
}
.code-box .lb { font-size: 12px; color: var(--text-3); letter-spacing: 1px; }
.code-box .val {
  font-family: var(--font-num); font-size: 27px; font-weight: 700;
  color: var(--brand-700); letter-spacing: 1.5px; margin-top: 6px;
}
.result-facts {
  display: flex; justify-content: space-around; padding: 14px 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  margin-bottom: 20px;
}
.result-facts .f { text-align: center; }
.result-facts .k { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.result-facts .v { font-size: 15px; font-weight: 600; color: var(--text); }

.result-actions { display: flex; flex-direction: column; gap: 10px; }
.result-actions .btn { height: 44px; }
.save-hint {
  margin-top: 20px; font-size: 12px; color: rgba(255,255,255,.7);
  text-align: center; line-height: 1.7; max-width: 380px;
}

/* 底部品牌 */
.h5-foot {
  padding: 22px 20px 30px; text-align: center;
  font-size: 11.5px; color: #9aa7b8; line-height: 1.8;
}

/* 查询页 */
.query-form { display: flex; gap: 8px; }
.query-form .input { flex: 1; }
.query-result { margin-top: 4px; }
.kv-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--text-3); flex: none; }
.kv-row .v { color: var(--text); font-weight: 500; text-align: right; word-break: break-all; }

/* 小屏微调 */
@media (max-width: 360px) {
  .hero h1 { font-size: 19px; }
  .up-slot, .up-thumb { width: 82px; height: 82px; }
}

/* ---------- 人员组（随行人员） ---------- */
.group-list { display: flex; flex-direction: column; gap: 10px; }
.group-card {
  border: 1px solid #dde5f0; border-radius: 10px; overflow: hidden;
  background: #fbfcfe;
}
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #eff5fc; font-size: 12.5px;
  font-weight: 600; color: var(--brand-700);
}
.group-del {
  font-size: 12px; color: var(--accent); padding: 2px 6px;
  border-radius: 4px; background: rgba(217,58,43,.07);
}
.group-body {
  padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.group-body .gf { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.group-body .gf.full { grid-column: 1 / -1; }
.group-body label { font-size: 12px; color: var(--text-2); }
.group-body label .req { color: var(--accent); }
.group-body input, .group-body select {
  height: 38px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 14px; background: #fff; outline: none;
  width: 100%; box-sizing: border-box;
}
.group-body input:focus, .group-body select:focus {
  border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(29,111,191,.1);
}
.btn-add-group {
  margin-top: 10px; height: 40px; width: 100%;
  border: 1px dashed #c0d2e8; border-radius: 9px;
  color: var(--brand); font-size: 13.5px; background: #f9fcff;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-add-group:active { background: var(--brand-50); }
.group-count-hint { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* ---------- 报名倒计时 ---------- */
.countdown {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius-lg); padding: 14px 16px;
  box-shadow: 0 3px 14px rgba(21, 85, 154, .07); margin-bottom: 12px;
}
.countdown .cd-label {
  font-size: 13px; color: var(--text-2); font-weight: 500; flex: none;
}
.countdown .cd-units { display: flex; align-items: baseline; gap: 4px; margin-left: auto; }
.countdown .cd-num {
  font-family: var(--font-num); font-size: 19px; font-weight: 700;
  color: var(--accent); min-width: 26px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-unit { font-size: 11.5px; color: var(--text-3); margin-right: 4px; }
.countdown.urgent { background: linear-gradient(135deg, #fff6f4, #fdecea); }
.countdown.urgent .cd-num { color: #c0281a; }
