:root {
  --brand: #FF8C00;
  --brand-dark: #E67600;
  --bg: #FFF7EC;
  --card: #FFFFFF;
  --text: #333;
  --muted: #999;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.hidden { display: none !important; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
.plaza-title { font-size: 24px; margin: 8px 0 2px; }
.plaza-sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters .chip {
  border: 1px solid #ffd9a8; background: #fff; color: var(--brand-dark);
  padding: 6px 14px; border-radius: 16px; font-size: 13px; cursor: pointer;
}
.filters .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.act-list { display: grid; gap: 14px; }
.act-card {
  background: var(--card); border-radius: 14px; padding: 18px;
  box-shadow: 0 2px 10px rgba(255,140,0,.12); cursor: pointer;
  transition: transform .12s;
}
.act-card:active { transform: scale(.98); }
.act-card { position: relative; }
.act-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--brand-dark); padding-right: 56px; }
.act-card p { margin: 0; color: #666; font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-card .badge { position: absolute; top: 18px; right: 18px; font-size: 12px; color: #fff;
  padding: 2px 10px; border-radius: 10px; }
.badge-open { background: #2e7d32; }
.badge-full { background: var(--brand); }
.badge-ended { background: #999; }
.act-stat { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--brand-dark); }
.loading { text-align: center; color: var(--muted); padding: 40px; }
.act-title { font-size: 22px; color: var(--brand-dark); }
.act-intro { color: #666; line-height: 1.6; white-space: pre-wrap; }
.act-stat.form { display: flex; align-items: stretch; justify-content: center; background: #fff7ec; border-radius: 14px; padding: 16px 12px; margin-bottom: 14px; }
.act-stat .stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.act-stat .stat-num { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--brand-dark); }
.act-stat .stat-label { font-size: 13px; color: #b06a00; }
.act-stat .stat-sep { width: 1px; background: #ffd9a8; margin: 4px 0; }
.signup-form .field { margin-bottom: 16px; }
.signup-form label.q { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.signup-form label.q .req { color: #e53935; margin-left: 4px; }
.signup-form input[type=text], .signup-form input[type=tel], .signup-form input[type=number],
.signup-form input[type=date], .signup-form textarea, .signup-form select {
  width: 100%; padding: 12px; border: 1px solid #eee; border-radius: 10px;
  font-size: 15px; background: #fff;
}
.signup-form textarea { min-height: 80px; resize: vertical; }
.signup-form .opts label { display: block; padding: 8px 0; font-weight: 400; }
.signup-form .opts input { margin-right: 8px; }
.back { display: inline-flex; align-items: center; background: #fff7ec; border: 1px solid #ffd9a8; color: var(--brand-dark); font-size: 16px; font-weight: 600; padding: 8px 14px; border-radius: 20px; margin-bottom: 8px; cursor: pointer; }
.agree { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; margin: 8px 0 16px; }
.agree a { color: var(--brand); }
.submit-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: var(--brand); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
}
.submit-btn:active { background: var(--brand-dark); }
.share-btn {
  width: 100%; padding: 13px; margin-top: 10px; border: 1px solid var(--brand);
  border-radius: 12px; background: #fff; color: var(--brand-dark);
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.share-btn:active { background: #fff7ec; }
.form-msg { text-align: center; margin-top: 14px; font-size: 14px; }
.form-msg.err { color: #e53935; }
.form-msg.ok { color: #2e7d32; }
.success-view { text-align: center; padding: 60px 20px; }
.ok-icon { width: 64px; height: 64px; border-radius: 50%; background: #2e7d32; color: #fff;
  font-size: 36px; line-height: 64px; margin: 0 auto 16px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-box { background: #fff; border-radius: 14px; padding: 20px; max-width: 520px; width: 100%; max-height: 80vh; overflow: auto; }
.modal-box h3 { margin: 0 0 12px; color: var(--brand-dark); }
.modal-body p { font-size: 14px; line-height: 1.7; color: #555; }
.modal-actions { display: flex; gap: 12px; margin-top: 18px; }
.modal-actions .submit-btn { flex: 1; margin: 0; }
.ghost-btn { flex: 1; border: 1px solid #ffd9a8; background: #fff; color: var(--brand-dark); padding: 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }

/* WeChat share guide overlay */
.share-guide {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.78);
  display: flex; flex-direction: column; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.share-guide .sg-inner { width: 100%; max-width: 640px; padding-top: 10px; }
.sg-svg { display: block; margin: 0 auto; }
.sg-tip { color: #fff; text-align: center; margin-top: 6px; }
.sg-tip .sg-line1 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.sg-tip .sg-line1 b { color: #FF8C00; font-size: 26px; vertical-align: -2px; }
.sg-tip .sg-line2 { font-size: 16px; margin: 0; opacity: .95; }
.sg-close { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; color: #fff; opacity: .6; font-size: 13px; }
