/* ══════════════════════════════════════════════════════════════
   集梦影视 · 邀请中心
   ══════════════════════════════════════════════════════════════ */

.jm-iv-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 16px 60px;
}

/* ══════ Hero ══════ */
.jm-iv-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 18px;
	padding: 36px 28px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(167,139,250,.22) 0%, rgba(63,140,255,.12) 55%, rgba(52,224,255,.08) 100%);
	border: 1px solid rgba(167,139,250,.32);
	box-shadow: 0 12px 40px rgba(167,139,250,.15);
	text-align: center;
}
.jm-iv-hero::before {
	content: '';
	position: absolute;
	top: -60px; right: -60px;
	width: 200px; height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(167,139,250,.3), transparent 70%);
}
.jm-iv-hero-in { position: relative; z-index: 1; }
.jm-iv-hero .ic { font-size: 48px; line-height: 1; display: block; margin-bottom: 14px; }
.jm-iv-hero h1 {
	font-size: 26px; font-weight: 900; color: #edf3ff;
	margin: 0 0 12px; letter-spacing: .5px;
}
.jm-iv-hero p {
	font-size: 13px; color: #b9c4dc; line-height: 1.9; margin: 0;
}
.jm-iv-hero p b { color: #ffc857; font-weight: 900; }
.jm-iv-cta {
	display: inline-block; margin-top: 20px; padding: 13px 40px;
	border-radius: 999px;
	background: linear-gradient(135deg, #a78bfa, #3f8cff);
	color: #fff !important; font-size: 14px; font-weight: 900;
	text-decoration: none;
	box-shadow: 0 8px 28px rgba(167,139,250,.4);
	transition: .2s;
}
.jm-iv-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }
.jm-iv-cta2 { font-size: 12px !important; color: #8fa4c8 !important; margin-top: 14px !important; }
.jm-iv-cta2 a { color: #34e0ff !important; text-decoration: none; }

/* ══════ 卡片 ══════ */
.jm-iv-card {
	margin-bottom: 16px;
	padding: 20px 22px;
	background: #101a31;
	border: 1px solid #24314f;
	border-radius: 16px;
}
.jm-iv-hd {
	display: flex; align-items: center; gap: 9px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(36,49,79,.6);
}
.jm-iv-hd .ic { font-size: 18px; line-height: 1; }
.jm-iv-hd .tx { font-size: 15px; font-weight: 900; color: #edf3ff; }
.jm-iv-hd .tip { margin-left: auto; font-size: 11px; color: #6b7899; font-weight: 700; }

/* ══════ 邀请码 / 链接 ══════ */
.jm-iv-row {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(36,49,79,.5);
}
.jm-iv-row:last-of-type { border-bottom: 0; }
.jm-iv-row .lb {
	flex: 0 0 90px; font-size: 12px; font-weight: 800; color: #8fa4c8;
}
.jm-iv-row .cd {
	flex: 1; font-size: 24px; font-weight: 900; color: #34e0ff;
	font-family: Consolas, Monaco, monospace; letter-spacing: 4px;
	text-shadow: 0 0 20px rgba(52,224,255,.4);
}
.jm-iv-row .lk {
	flex: 1; font-size: 12.5px; color: #b9c4dc;
	font-family: Consolas, Monaco, monospace;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jm-iv-row .cp {
	flex: 0 0 auto;
	padding: 9px 22px; border-radius: 9px;
	background: rgba(52,224,255,.12);
	border: 1px solid rgba(52,224,255,.38);
	color: #34e0ff; font-size: 12px; font-weight: 800;
	cursor: pointer; font-family: inherit;
	transition: .15s;
}
.jm-iv-row .cp:hover { background: rgba(52,224,255,.22); }
.jm-iv-row .cp.ok {
	background: rgba(74,222,128,.15);
	border-color: rgba(74,222,128,.4);
	color: #4ade80;
}
.jm-iv-tip {
	margin-top: 12px; padding: 10px 14px;
	border-radius: 9px;
	background: rgba(255,200,87,.07);
	border: 1px solid rgba(255,200,87,.22);
	font-size: 11.5px; color: #a8925a; line-height: 1.7;
}

/* ══════ 统计 ══════ */
.jm-iv-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
	margin-bottom: 16px;
	background: #24314f; border-radius: 14px; overflow: hidden;
}
.jm-iv-stats .st {
	background: #101a31; padding: 18px 8px; text-align: center;
}
.jm-iv-stats .st b {
	display: block; font-size: 24px; font-weight: 900; color: #34e0ff;
	line-height: 1.2;
}
.jm-iv-stats .st span {
	display: block; font-size: 11px; color: #6b7899; margin-top: 4px; font-weight: 700;
}

/* ══════ 规则 ══════ */
.jm-iv-rules { display: flex; flex-direction: column; gap: 10px; }
.jm-iv-rules .rule {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 13px 15px;
	border-radius: 11px;
	background: rgba(63,140,255,.05);
	border: 1px solid rgba(63,140,255,.16);
}
.jm-iv-rules .rule .n {
	flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
	background: linear-gradient(135deg, #3f8cff, #34e0ff);
	color: #06121f; font-size: 12px; font-weight: 900;
	display: flex; align-items: center; justify-content: center;
	margin-top: 1px;
}
.jm-iv-rules .rule .bd { flex: 1; min-width: 0; }
.jm-iv-rules .rule .bd b {
	display: block; font-size: 13px; font-weight: 800; color: #edf3ff;
	margin-bottom: 4px;
}
.jm-iv-rules .rule .bd i {
	display: block; font-style: normal; font-size: 11.5px; color: #8fa4c8;
	line-height: 1.65;
}
.jm-iv-cap {
	margin-top: 14px; padding: 11px 15px;
	border-radius: 9px;
	background: rgba(255,200,87,.06);
	border: 1px solid rgba(255,200,87,.2);
	font-size: 11.5px; color: #a8925a;
}
.jm-iv-cap b { color: #ffc857; font-weight: 900; }

/* ══════ 里程碑 ══════ */
.jm-iv-ms { display: flex; flex-direction: column; gap: 12px; }
.jm-iv-ms .ms {
	padding: 14px 16px;
	border-radius: 11px;
	background: rgba(143,164,200,.04);
	border: 1px solid #24314f;
}
.jm-iv-ms .ms.done {
	background: rgba(74,222,128,.06);
	border-color: rgba(74,222,128,.28);
}
.jm-iv-ms .ms-hd {
	display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.jm-iv-ms .ms-n {
	flex: 0 0 auto; font-size: 13px; font-weight: 900; color: #34e0ff;
}
.jm-iv-ms .ms.done .ms-n { color: #4ade80; }
.jm-iv-ms .ms-r {
	flex: 1; font-size: 12.5px; font-weight: 800; color: #edf3ff;
}
.jm-iv-ms .ms-s {
	flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #6b7899;
}
.jm-iv-ms .ms.done .ms-s { color: #4ade80; }
.jm-iv-ms .ms-bar {
	height: 6px; border-radius: 999px;
	background: rgba(36,49,79,.8); overflow: hidden;
}
.jm-iv-ms .ms-bar i {
	display: block; height: 100%; border-radius: 999px;
	background: linear-gradient(90deg, #3f8cff, #34e0ff);
	transition: width .4s;
}
.jm-iv-ms .ms.done .ms-bar i {
	background: linear-gradient(90deg, #4ade80, #34e0ff);
}

/* ══════ 邀请记录 ══════ */
.jm-iv-list { display: flex; flex-direction: column; }
.jm-iv-list .it {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(36,49,79,.45);
}
.jm-iv-list .it:last-child { border-bottom: 0; }
.jm-iv-list .av {
	flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
	background: linear-gradient(135deg, #a78bfa, #3f8cff);
	color: #fff; font-size: 15px; font-weight: 900;
	display: flex; align-items: center; justify-content: center;
}
.jm-iv-list .bd { flex: 1; min-width: 0; }
.jm-iv-list .bd b {
	display: block; font-size: 12.5px; font-weight: 800; color: #edf3ff;
	margin-bottom: 3px;
}
.jm-iv-list .bd i {
	display: block; font-style: normal; font-size: 10.5px; color: #6b7899;
}
.jm-iv-list .st { flex: 0 0 auto; }
.jm-iv-list .tag {
	display: inline-block; padding: 3px 10px; border-radius: 6px;
	font-size: 10px; font-weight: 800;
	background: rgba(143,164,200,.12); color: #8fa4c8;
	border: 1px solid rgba(143,164,200,.22);
}
.jm-iv-list .tag.green {
	background: rgba(74,222,128,.12); color: #4ade80;
	border-color: rgba(74,222,128,.28);
}

/* ══════ 空态 ══════ */
.jm-iv-empty { padding: 36px 20px; text-align: center; }
.jm-iv-empty .ic { font-size: 40px; opacity: .3; margin-bottom: 12px; line-height: 1; }
.jm-iv-empty .tx { font-size: 13.5px; font-weight: 900; color: #b9c4dc; margin-bottom: 6px; }
.jm-iv-empty .sub { font-size: 11.5px; color: #6b7899; }

/* ══════ FAQ ══════ */
.jm-iv-faq { display: flex; flex-direction: column; gap: 12px; }
.jm-iv-faq .faq { padding: 13px 15px; border-radius: 10px; background: rgba(143,164,200,.03); border: 1px solid rgba(36,49,79,.7); }
.jm-iv-faq .faq b { display: block; font-size: 12.5px; font-weight: 800; color: #b9c4dc; margin-bottom: 5px; }
.jm-iv-faq .faq i { display: block; font-style: normal; font-size: 11.5px; color: #6b7899; line-height: 1.7; }

/* ══════ 为什么值得邀请 ══════ */
.jm-iv-why { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jm-iv-why .w {
	padding: 14px 16px; border-radius: 11px;
	background: rgba(167,139,250,.05);
	border: 1px solid rgba(167,139,250,.18);
}
.jm-iv-why .w b { display: block; font-size: 12.5px; font-weight: 900; color: #edf3ff; margin-bottom: 6px; }
.jm-iv-why .w i { display: block; font-style: normal; font-size: 11.5px; color: #8fa4c8; line-height: 1.65; }

/* ══════ 响应式 ══════ */
@media (max-width: 768px) {
	.jm-iv-page { padding: 14px 12px 40px; }
	.jm-iv-hero { padding: 26px 18px; }
	.jm-iv-hero h1 { font-size: 20px; }
	.jm-iv-hero .ic { font-size: 38px; }
	.jm-iv-card { padding: 16px 16px; }
	.jm-iv-row { flex-wrap: wrap; gap: 8px; }
	.jm-iv-row .lb { flex: 0 0 100%; }
	.jm-iv-row .cd { font-size: 20px; letter-spacing: 3px; }
	.jm-iv-stats { grid-template-columns: repeat(2, 1fr); }
	.jm-iv-why { grid-template-columns: 1fr; }
	.jm-iv-ms .ms-hd { flex-wrap: wrap; gap: 6px; }
	.jm-iv-ms .ms-s { margin-left: auto; }
}
