/* 邀请海报共享组件样式（H5 合伙共创「邀请物料」Tab 与 /invite 落地页共用）。
 * 命名前缀 ip- 避免与 main.css / plan_card.css 冲突。
 */
.ip-card { position: relative; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); margin-bottom: 12px; }
.ip-head { position: relative; padding: 24px 20px 20px; text-align: center; color: #fff; }
.ip-preview-close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(0,0,0,.2); color: #fff; font-size: 18px; line-height: 22px; }
.ip-preview-expand { display: block; width: 100%; border: 1px dashed #c41e1e; border-radius: 12px; background: #fff; color: #c41e1e; padding: 11px 0; font-size: 13px; font-weight: 600; }
.ip-card.ip-card-light .ip-head { color: #1f2430; }
.ip-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.18);
  border-radius: 999px; padding: 3px 10px; font-size: 10px; margin-bottom: 10px; }
.ip-badge-tight { letter-spacing: .5px; }
.ip-head-ico { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 16px;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ip-head-ico-round { border-radius: 50%; }
.ip-head-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 0; }
.ip-head-title-dark { color: #1f2430; letter-spacing: 1px; }
.ip-head-sub { font-size: 12px; opacity: .85; margin: 8px 0 0; }
.ip-head-sub-dark { color: #6b7280; opacity: 1; }
.ip-c-from { font-size: 13px; font-weight: 600; }
.ip-e-brand { font-size: 10px; letter-spacing: 4px; color: #9ca3af; margin-bottom: 10px; }
.ip-e-divider { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #fbbf24; }
.ip-e-divider::before, .ip-e-divider::after { content: ""; width: 28px; height: 1px; background: #fbbf24; }

.ip-body-pad { padding: 12px 16px 0; }
.ip-cta-wrap { padding: 14px 16px 16px; }

.ip-welfare-row { display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg,#fffbeb,#fff7ed);
  border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; }
.ip-welfare-ico { width: 36px; height: 36px; border-radius: 10px; background: #92400e; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ip-welfare-title { font-size: 12px; font-weight: 700; color: #92400e; }
.ip-welfare-sub { font-size: 10px; color: #6b7280; margin-top: 2px; }
.ip-welfare-tag { font-size: 10px; background: #e62e2e; color: #fff; border-radius: 999px; padding: 2px 8px; flex-shrink: 0; }

.ip-feature3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; text-align: center; }
.ip-feature3 .ip-f3-item { background: #edf2fc; border-radius: 12px; padding: 10px 4px; font-size: 11px; color: #1f2430; }
.ip-feature3 .ip-f3-item small { display: block; color: #9ca3af; font-size: 9px; margin-top: 2px; }
.ip-feature3-b .ip-f3-item { background: #fff7ed; color: #ea580c; }
.ip-feature3-c .ip-f3-item.t-amber { background: #fffbeb; color: #92400e; }
.ip-feature3-c .ip-f3-item.t-green { background: #ecfdf5; color: #16a34a; }
.ip-feature3-c .ip-f3-item.t-purple { background: #f5f3ff; color: #7c3aed; }

.ip-stats4 { display: flex; align-items: center; justify-content: space-around;
  background: linear-gradient(90deg,#fef2f2,#fffbeb); border-radius: 12px; padding: 10px 4px; text-align: center; }
.ip-stats4 b { display: block; font-size: 13px; color: #92400e; }
.ip-stats4 small { display: block; font-size: 9px; color: #9ca3af; margin-top: 2px; }
.ip-stats4-sep { width: 1px; height: 22px; background: #e5e7eb; }

.ip-list4 .ip-l4-item { display: flex; align-items: center; gap: 6px; background: #fff;
  border: 1px solid #fed7aa; border-radius: 10px; padding: 8px 10px; font-size: 12px; color: #1f2430; margin-bottom: 6px; }
.ip-list4 .ip-l4-item small { margin-left: auto; color: #ea580c; font-size: 10px; flex-shrink: 0; }

.ip-c-gifts { }
.ip-c-title { text-align: center; font-size: 12px; font-weight: 700; color: #1f2430; margin-bottom: 8px; }
.ip-c-item { display: flex; align-items: center; gap: 8px; background: #edf2fc; border-radius: 10px;
  padding: 8px 10px; font-size: 12px; color: #1f2430; margin-bottom: 6px; }
.ip-c-num { width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ip-c-num.n1 { background: #e62e2e; } .ip-c-num.n2 { background: #92400e; } .ip-c-num.n3 { background: #0ea5e9; }

.ip-d-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ip-d-cell { display: flex; align-items: center; gap: 8px; background: #f4f8ff; border-radius: 12px; padding: 10px; }
.ip-d-cell b { display: block; font-size: 13px; color: #123061; }
.ip-d-cell small { display: block; font-size: 9px; color: #6b7280; margin-top: 2px; }
.ip-d-list { display: flex; flex-direction: column; gap: 6px; }
.ip-d-row { display: flex; align-items: center; gap: 6px; background: #edf2fc; border-radius: 10px;
  padding: 8px 10px; font-size: 11px; color: #1f2430; }
.ip-d-cta-tip { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 12px;
  background: linear-gradient(135deg,#123061,#1657b8); }
.ip-d-cta-tag { margin-left: auto; font-size: 10px; background: #fbbf24; color: #123061; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; flex-shrink: 0; }

.ip-e-quote { border-left: 2px solid #e62e2e; padding-left: 10px; margin-bottom: 8px; }
.ip-e-title { font-size: 12px; font-weight: 700; color: #1f2430; }
.ip-e-quote small { display: block; color: #9ca3af; font-size: 10px; margin-top: 2px; }
.ip-e-nums { display: flex; flex-direction: column; gap: 4px; }
.ip-e-nums div { font-size: 12px; color: #374151; }
.ip-e-nums .n { display: inline-block; width: 52px; font-size: 10px; font-weight: 700; color: #e62e2e; }
.ip-e-stats { display: flex; justify-content: space-around; border-top: 1px solid #f3f4f6; padding-top: 10px; text-align: center; }
.ip-e-stats b { display: block; font-size: 13px; color: #1f2430; }
.ip-e-stats small { display: block; font-size: 9px; color: #9ca3af; margin-top: 2px; }

.ip-cta-btn { display: block; width: 100%; border: none; color: #fff; font-size: 14px; font-weight: 700;
  padding: 12px 0; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ip-cta-btn:active { transform: scale(.98); }
.ip-cta-note { text-align: center; font-size: 10px; color: #9ca3af; margin-top: 8px; }
.ip-register-form { display: flex; flex-direction: column; gap: 8px; }
.ip-register-row { display: flex; align-items: center; gap: 6px; }
.ip-country-code { flex: 0 0 auto; background: #f3f4f6; color: #6b7280; border-radius: 8px; padding: 10px 8px; font-size: 12px; }
.ip-register-input { width: 100%; min-width: 0; flex: 1; border: 1px solid #d1d5db; border-radius: 8px; background: #f8fafc; padding: 10px; font-size: 13px; color: #1f2430; }
.ip-register-code-btn { flex: 0 0 auto; border: none; border-radius: 8px; padding: 10px 9px; background: #92400e; color: #fff; font-size: 11px; white-space: nowrap; }
.ip-register-code-btn:disabled { background: #d1d5db; }
.ip-register-agree { display: flex; align-items: flex-start; gap: 5px; color: #6b7280; font-size: 10px; line-height: 1.4; }
.ip-register-agree a { color: #c41e1e; text-decoration: underline; }
.ip-register-msg { min-height: 16px; color: #dc2626; font-size: 11px; }
.ip-register-msg.is-ok { color: #16a34a; }
.ip-register-submit { box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.ip-register-submit:disabled { background: #d1d5db !important; }
.ip-register-note { color: #9ca3af; font-size: 10px; text-align: center; }
.ip-register-modal-mask, .ip-policy-mask { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.62); }
.ip-register-modal, .ip-policy-dialog { position: fixed; inset: 0; z-index: 101; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ip-register-modal-box, .ip-policy-dialog { position: relative; width: min(380px, 100%); border-radius: 14px; background: #fff; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.ip-register-modal-box h3, .ip-policy-dialog h3 { color: #1f2430; font-size: 15px; margin: 0 0 12px; }
.ip-register-modal-close, .ip-policy-close { position: absolute; right: 12px; top: 9px; border: none; background: none; color: #9ca3af; font-size: 20px; }
.ip-policy-dialog p { color: #6b7280; font-size: 13px; margin: 0; }

/* 主题切换胶囊（邀请物料 Tab / invite.html 共用） */
.ip-theme-tabs { display: flex; background: #edf2fc; border-radius: 10px; padding: 4px; gap: 2px; margin-bottom: 12px; }
.ip-theme-tab { flex: 1; border: none; background: none; padding: 6px 2px; border-radius: 8px;
  font-size: 10px; color: #6b7280; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ip-theme-tab.is-active { background: #fff; color: #92400e; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ip-theme-tab .ip-theme-tab-ic { font-size: 14px; }
