/* 邀请好友 · 20260930 与我的团队/抽奖同系蓝色顶区 */

.ig-page.ig-v2 {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: #eef2f8;
}

.ig-hero-wrap {
  position: relative;
  padding-bottom: 16px;
  color: #fff;
  background: linear-gradient(165deg, #0a4a9e 0%, #1565cc 38%, #1d84ff 72%, #4da3ff 100%);
  overflow: hidden;
}

.ig-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 1px);
  background-size: 28px 28px, 36px 36px;
  pointer-events: none;
}

.ig-hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px;
}

.ig-hero-back {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.ig-hero-nav-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.ig-hero-brand {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.ig-hero-nav-title {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ig-hero-pill {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.ig-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 18px 12px;
}

.ig-hero-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ig-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ig-hero-logo--text {
  font-size: 20px;
  font-weight: 800;
  color: #1d84ff;
}

.ig-hero-copy-text {
  flex: 1;
  min-width: 0;
}

.ig-hero-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
}

.ig-hero-title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.ig-hero-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.ig-hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 14px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.ig-hero-stat {
  text-align: center;
}

.ig-hero-stat .k {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}

.ig-hero-stat .v {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.ig-hero-stat .v.sm {
  font-size: 17px;
}

.ig-hero-stat .v small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}

.ig-main {
  position: relative;
  z-index: 2;
  margin-top: -6px;
  padding: 0 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ig-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(13, 58, 110, 0.08);
}

.ig-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ig-card-hd h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.ig-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #1d84ff, #1565cc);
}

.ig-card-tip {
  margin: 0 0 12px;
  font-size: 12px;
  color: #888;
}

.ig-qr-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ig-qr-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4fc 100%);
  border: 1px dashed rgba(29, 132, 255, 0.35);
}

.ig-qr-inner img,
.ig-qr-inner canvas {
  display: block;
  margin: 0 auto;
}

.ig-code-panel {
  text-align: center;
  padding: 18px 14px 16px;
}

.ig-code-label {
  font-size: 12px;
  color: #888;
}

.ig-code-value {
  display: block;
  margin: 10px 0 14px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #1d84ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ig-code-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ig-btn {
  min-width: 108px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #1d84ff, #1565cc);
  box-shadow: 0 4px 14px rgba(29, 132, 255, 0.35);
}

.ig-btn--ghost {
  color: #1565cc;
  background: #e8f4ff;
  box-shadow: none;
}

.ig-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  margin-top: 4px;
  border-top: 1px solid #eef2f6;
}

.ig-link-main {
  flex: 1;
  min-width: 0;
}

.ig-link-main .lab {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.ig-link-main .url {
  display: block;
  font-size: 12px;
  color: #444;
  line-height: 1.45;
  word-break: break-all;
}

.ig-copy-sm {
  flex-shrink: 0;
  min-width: 56px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #1d84ff, #1565cc);
}

.ig-quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ig-quick-item {
  text-align: left;
  padding: 14px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(13, 58, 110, 0.06);
}

.ig-quick-item .t {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.ig-quick-item .d {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.ig-traits {
  margin: 0;
  padding: 0 4px 8px;
  list-style: none;
  font-size: 11px;
  color: #999;
  line-height: 1.65;
}

.ig-traits li {
  position: relative;
  padding-left: 12px;
}

.ig-traits li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #1d84ff;
}

.ig-hero-sk {
  position: relative;
  z-index: 1;
  padding: 0 16px 8px;
}
