/* 邀请送保障金活动页 */
.page-housing-invite {
  --hi-blue: #1a5c8a;
  --hi-gold: #c9a227;
  background: #f3f6fb;
}

.subpage-topbar--housing {
  background: linear-gradient(165deg, #0a3d6b 0%, #1a5c8a 55%, #0c4db8 100%);
  color: #fff;
}

.subpage-topbar--housing .back-button {
  color: #fff;
}

.hi-main {
  padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px));
}

.hi-skeleton {
  padding: 40px 16px;
  text-align: center;
  color: #8c94a3;
  font-size: 14px;
}

.hi-hero {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 92, 138, 0.12);
  margin-bottom: 14px;
}

.hi-hero__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hi-hero__body {
  padding: 16px;
}

.hi-hero__body h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1a5c8a;
}

.hi-hero__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5a6f94;
}

.hi-progress {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(165deg, #0a3d6b 0%, #1a5c8a 100%);
  color: #fff;
  margin-bottom: 14px;
}

.hi-progress__label {
  margin: 0 0 10px;
  font-size: 13px;
  opacity: 0.9;
}

.hi-progress__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.hi-progress__stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.hi-progress__stat span {
  font-size: 12px;
  opacity: 0.85;
}

.hi-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: 8px;
}

.hi-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe566, #fff);
}

.hi-progress__hint {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.hi-wallet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.hi-wallet__item {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8ecf2;
}

.hi-wallet__item span {
  display: block;
  font-size: 11px;
  color: #8c94a3;
  margin-bottom: 4px;
}

.hi-wallet__item strong {
  font-size: 18px;
  color: var(--gov-red, #c41e22);
}

.hi-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.hi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.hi-btn--gold {
  background: linear-gradient(135deg, #e8c547, #c9a227);
  color: #4a3800;
}

.hi-btn--ghost {
  background: #fff;
  color: #1a5c8a;
  border: 1px solid rgba(26, 92, 138, 0.25);
}

.hi-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(26, 92, 138, 0.35);
  margin-bottom: 14px;
}

.hi-code em {
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: #1a5c8a;
}

.hi-code button {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #e8f2fa;
  color: #1a5c8a;
  font-size: 12px;
}

.hi-grants {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(26, 92, 138, 0.08);
}

.hi-grants__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.hi-grants__head h3 {
  margin: 0;
  font-size: 15px;
  color: #1a5c8a;
}

.hi-grants__head a {
  font-size: 12px;
  color: #5a6f94;
  text-decoration: none;
}

.hi-grants__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hi-grants__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eef2f8;
}

.hi-grants__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.hi-grants__badge {
  flex-shrink: 0;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #d4a017, #c9a227);
}

.hi-grants__meta {
  min-width: 0;
}

.hi-grants__meta strong {
  display: block;
  font-size: 13px;
  color: #1a2f4d;
}

.hi-grants__meta span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8c94a3;
}

.hi-rules {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
}

.hi-rules h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.hi-rules ol {
  margin: 0;
  padding-left: 18px;
  color: #5a6f94;
  font-size: 13px;
  line-height: 1.65;
}

.hi-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hi-links a {
  font-size: 12px;
  color: #1a5c8a;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f2fa;
}
