/* ============================================================
   兴义智拓 · 报名系统样式
   沿用官网的 CSS 变量（--brand / --line / --muted 等），只补充报名相关组件
   ============================================================ */

.signup-body { background: var(--bg-soft); }
.signup-main { padding: 120px 0 72px; min-height: 60vh; }

/* ---------- 通用容器 ---------- */
.su-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.su-wrap--wide { max-width: 1080px; }
.su-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.su-card + .su-card { margin-top: 22px; }
.su-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.su-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.su-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.su-back:hover { color: var(--brand); }

/* ---------- 提示条 ---------- */
.notice { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; margin-bottom: 20px; border: 1px solid var(--line); background: #fff; }
.notice--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.notice--ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* ---------- 活动列表 ---------- */
.act-list { display: grid; gap: 18px; }
.act-item { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .2s ease, transform .2s ease; }
.act-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.act-item__cover { width: 132px; height: 88px; flex: none; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, var(--brand), #7c3aed); }
.act-item__body { flex: 1; min-width: 0; }
.act-item__body h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.act-item__body p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.act-item__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12.5px; }
.chip--open { background: #ecfdf5; border-color: #a7f3d0; color: #047857; font-weight: 600; }
.chip--closed { background: #f1f5f9; color: #64748b; }
.chip--full { background: #fef2f2; border-color: #fecaca; color: #b91c1c; font-weight: 600; }

/* ---------- 价格档位 ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 22px; }
.tier { position: relative; display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 16px; cursor: pointer; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tier:hover { border-color: var(--brand-100); }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier__badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 2px 9px; border-radius: 999px; margin-bottom: 10px; }
.tier__name { display: block; font-size: 16px; font-weight: 700; }
.tier__price { display: block; font-size: 22px; font-weight: 800; color: var(--brand); margin: 6px 0 4px; }
.tier__desc { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tier.is-checked { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.tier.is-off { opacity: .45; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.su-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.su-field { margin-bottom: 16px; }
.su-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.su-field .req { color: #ef4444; margin-left: 2px; }
.su-field input, .su-field select, .su-field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.su-field input:focus, .su-field select:focus, .su-field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.su-field textarea { min-height: 92px; resize: vertical; }
.su-field__err { display: none; margin-top: 6px; font-size: 13px; color: #ef4444; }
.su-field.has-error input, .su-field.has-error select, .su-field.has-error textarea { border-color: #ef4444; background: #fef2f2; }
.su-field.has-error .su-field__err { display: block; }
.su-actions { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.su-note { color: var(--muted); font-size: 13px; }

/* ---------- 成功页 / 拼团进度 ---------- */
.su-ok-icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #ecfdf5; color: #059669; margin-bottom: 18px; }
.su-ok-icon svg { width: 32px; height: 32px; }
.su-kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; font-size: 15px; margin: 18px 0 4px; }
.su-kv dt { color: var(--muted); }
.su-kv dd { margin: 0; font-weight: 600; }
.progress { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.progress__bar { flex: 1; height: 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7c3aed); }
.progress__txt { font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.invite { display: flex; gap: 10px; margin-top: 8px; }
.invite input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-size: 14px; font-family: ui-monospace, monospace; }
.members { margin-top: 14px; display: grid; gap: 10px; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.member__avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, var(--brand), #7c3aed); }
.member__info { flex: 1; min-width: 0; font-size: 14px; }
.member__info b { font-weight: 700; }
.member__info span { color: var(--muted); font-size: 13px; }

/* ---------- 首页页脚 ---------- */
.signup-footer { background: #0f172a; color: #94a3b8; padding: 26px 0; font-size: 13.5px; }
.signup-footer__row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.signup-footer a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .signup-main { padding: 96px 0 48px; }
  .su-card { padding: 22px 18px; }
  .tiers { grid-template-columns: 1fr; }
  .tier { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
  .tier__badge { margin: 0; }
  .tier__price { margin: 0; font-size: 19px; text-align: right; }
  .tier__desc { grid-column: 2 / 4; }
  .su-form .row { grid-template-columns: 1fr; }
  .act-item { flex-direction: column; align-items: flex-start; }
  .act-item__cover { width: 100%; height: 140px; }
  .su-kv { grid-template-columns: 84px 1fr; }
}

/* ---------- 课程详情：图文 / 视频内容块（前台）---------- */
.su-content { margin-top: 18px; }
.su-content__text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; margin: 0 0 14px; }
.su-content__figure { margin: 0 0 20px; }
.su-content__figure img,
.su-content__figure video {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line); background: #0f172a;
}
.su-content__figure video { max-height: 70vh; }
.su-content__figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
.su-video-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px;
  border-radius: 12px; background: var(--brand-50); color: var(--brand);
  font-weight: 600; border: 1px solid var(--brand-100);
}
.su-video-link:hover { background: #fff; }

/* ---------- 报名成功页：分享给朋友（手机端为主）---------- */
.su-share {
  margin: 6px 0 22px; padding: 20px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-50), #ffffff 70%);
  border: 1px solid var(--brand-100); text-align: center;
}
.su-share__icon {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--brand);
  border: 1px solid var(--brand-100); box-shadow: var(--shadow-sm);
}
.su-share__icon svg { width: 22px; height: 22px; }
.su-share__body b { display: block; font-size: 17px; margin-bottom: 5px; }
.su-share__body span { color: var(--muted); font-size: 13.5px; line-height: 1.65; display: block; }
.su-share__btn { margin-top: 16px; width: 100%; }
.su-share__wx { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 桌面端：按钮不用拉满，微信提示隐藏（用户主要在手机上分享）*/
@media (min-width: 769px) {
  .su-share__btn { width: auto; min-width: 240px; }
  .su-share__wx { display: none; }
}

/* ---------- 轻提示 ---------- */
.su-toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(12px);
  background: rgba(15, 23, 42, .93); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; line-height: 1.5; max-width: 82vw; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 999;
}
.su-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.su-content__h {
  font-size: 19px; font-weight: 700; color: var(--ink);
  margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand);
  line-height: 1.5;
}

/* ---------- 网页版：支付提示 ---------- */
.su-pay-notice {
  margin: 6px 0 20px; padding: 20px; border-radius: var(--radius);
  background: #fffbeb; border: 1px solid #fde68a; text-align: center;
}
.su-pay-notice__t { font-size: 17px; font-weight: 800; color: #b45309; }
.su-pay-notice p { color: #92400e; font-size: 13.5px; line-height: 1.75; margin: 10px 0 16px; text-align: left; }
.su-paid-notice {
  margin: 6px 0 20px; padding: 16px 20px; border-radius: var(--radius);
  background: #f0fdf4; border: 1px solid #bbf7d0; text-align: center;
  color: #15803d; font-weight: 700; font-size: 16px;
}
