.h5-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f0f4f8;
}

.h5-shell[hidden] {
  display: none !important;
}

.h5-shell:not([hidden]).h5-shell--form {
  background: linear-gradient(160deg, #1e3a8a 0%, #1a56db 45%, #f0f4f8 45%);
}

/* 互斥视图：同一时刻只显示一个 */
.h5-view {
  display: none !important;
}

.h5-view.is-active {
  display: block !important;
}

.h5-view-ended.is-active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: #f0f4f8;
}

.h5-view-ended p {
  font-size: 18px;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.h5-header {
  padding: 32px 20px 48px;
  color: #fff;
  text-align: center;
}

.h5-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.h5-header p {
  font-size: 14px;
  opacity: 0.85;
}

.h5-card {
  margin: -28px 16px 24px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.h5-card .form-row-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.h5-card .form-group label {
  display: flex;
  align-items: center;
}

.h5-submit {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  margin-top: 8px;
}

.spectators-section .spectators-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.spectators-section .spectators-head label {
  margin-bottom: 0;
}

.spectator-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.spectator-card:last-child {
  margin-bottom: 0;
}

.spectator-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.spectator-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.btn-remove-spectator {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.spectator-card .form-group {
  margin-bottom: 14px;
}

.spectator-card .form-group:last-child {
  margin-bottom: 0;
}

.spectator-card .form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
