/* 帧趣直播 · 潮玩渐变主题
   入口：themes/default/portal/** 全部前台模板 */

:root {
	--brand-1: #7a3bff;
	--brand-2: #ff2e88;
	--brand-3: #ff8a2b;
	--brand-4: #00d5ff;
	--brand-5: #b6ff3d;

	--grad-brand: linear-gradient(118deg, #7a3bff, #ff2e88 52%, #ff8a2b);
	--grad-candy: linear-gradient(118deg, #00d5ff, #7a3bff 58%, #ff2e88);
	--grad-sun: linear-gradient(118deg, #ffb020, #ff2e88);
	--grad-mint: linear-gradient(118deg, #00e5c0, #00a8ff);

	/* 旧模板内联属性仍在引用这几个名字，保留别名 */
	--red: #ff2e88;
	--red-soft: rgba(255, 46, 136, .12);
	--ink: #1b1030;
	--ink2: #4e4170;
	--mute: #8b80ad;
	--mid: #a99ec9;
	--faint: #e9e3f7;
	--line: rgba(27, 16, 48, .08);
	--paper: #ffffff;
	--bg: #f7f4ff;

	--surface: rgba(255, 255, 255, .72);
	--surface-2: rgba(255, 255, 255, .58);
	--glass: saturate(160%) blur(18px);

	--r-xs: 10px;
	--r-sm: 14px;
	--r-md: 20px;
	--r-lg: 28px;
	--r-xl: 36px;
	--pill: 999px;

	--sh-1: 0 2px 10px rgba(27, 16, 48, .06);
	--sh-2: 0 10px 30px rgba(27, 16, 48, .10);
	--sh-3: 0 22px 60px rgba(122, 59, 255, .18);
	--sh-pink: 0 14px 34px rgba(255, 46, 136, .28);

	--font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
	--font-body: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Segoe UI", Roboto, sans-serif;
	--font-display: "MiSans", "PingFang SC", "HarmonyOS Sans SC", "Trebuchet MS", sans-serif;

	--ease-pop: cubic-bezier(.34, 1.56, .64, 1);
	--ease-soft: cubic-bezier(.16, 1, .3, 1);
	--maxw: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before,
body::after {
	content: '';
	position: fixed;
	z-index: -1;
	pointer-events: none;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .26;
	animation: blobFloat 22s ease-in-out infinite;
}

body::before {
	top: -12vh;
	left: -8vw;
	width: 40vw;
	height: 40vw;
	background: radial-gradient(circle at 30% 30%, rgba(122, 59, 255, .55), rgba(0, 213, 255, .18) 60%, transparent 72%);
}

body::after {
	right: -12vw;
	bottom: -16vh;
	width: 34vw;
	height: 34vw;
	background: radial-gradient(circle at 65% 40%, rgba(255, 46, 136, .5), rgba(255, 138, 43, .2) 62%, transparent 74%);
	animation-delay: -11s;
}

@keyframes blobFloat {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(2.5vw, -3vh, 0) scale(1.08); }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--brand-2); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand-1), var(--brand-2)); border-radius: var(--pill); border: 3px solid var(--bg); }

.wrap,
.topbar-center,
.spread,
.hero-content,
.hero,
.more-section,
.dl-section,
.site-footer,
.page-container { position: relative; z-index: 1; }

/* ===== TOP BAR ===== */
.topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 120;
	height: 76px;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 clamp(16px, 3vw, 40px);
	background: var(--surface);
	backdrop-filter: var(--glass);
	-webkit-backdrop-filter: var(--glass);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 6px 26px rgba(27, 16, 48, .05);
}

.topbar-center {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	max-width: none;
}

.topbar-brand { display: flex; align-items: center; gap: 12px; }

.topbar-brand img {
	height: 40px;
	width: auto;
	border-radius: 12px;
	object-fit: contain;
	mix-blend-mode: normal;
}

.topbar-brand span {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: .5px;
	background: var(--grad-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	white-space: nowrap;
}

.topbar-nav { display: flex; align-items: center; gap: 6px; }

.topbar-nav a {
	position: relative;
	padding: 8px 14px;
	border-radius: var(--pill);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink2);
	transition: color .25s, background .25s;
}

.topbar-nav a:hover { color: var(--brand-1); background: rgba(122, 59, 255, .08); }

.topbar-nav a.active {
	color: #fff;
	background: var(--grad-brand);
	box-shadow: var(--sh-pink);
}

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--pill);
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink2);
	cursor: pointer;
	transition: color .25s, background .25s;
}

.nav-dropdown-toggle:hover { color: var(--brand-1); background: rgba(122, 59, 255, .08); }
.nav-dropdown-toggle svg { transition: transform .25s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 186px;
	padding: 10px;
	display: grid;
	gap: 2px;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: var(--glass);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--sh-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(.98);
	transition: opacity .22s, transform .22s var(--ease-pop), visibility .22s;
}

.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.nav-dropdown-menu a {
	padding: 9px 12px;
	border-radius: var(--r-xs);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink2);
	transition: all .2s;
}

.nav-dropdown-menu a:hover {
	background: linear-gradient(90deg, rgba(122, 59, 255, .12), rgba(255, 46, 136, .12));
	color: var(--brand-1);
	transform: translateX(3px);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }
#navLoggedIn,
#navLoggedOut { display: flex; align-items: center; gap: 10px; }

.tb-btn {
	padding: 9px 20px;
	border: 0;
	border-radius: var(--pill);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .25s var(--ease-pop), box-shadow .25s, color .25s, background .25s;
}

.tb-btn.ghost {
	background: #fff;
	color: var(--ink2);
	border: 1px solid var(--faint);
}

.tb-btn.ghost:hover { color: var(--brand-1); border-color: rgba(122, 59, 255, .4); transform: translateY(-2px); }

.tb-btn.fill {
	background: var(--grad-brand);
	color: #fff;
	box-shadow: var(--sh-pink);
}

.tb-btn.fill:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 34px rgba(255, 46, 136, .36); }
.tb-btn:active { transform: translateY(0) scale(.97); }

.tb-user {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 5px 14px 5px 5px;
	border-radius: var(--pill);
	background: #fff;
	border: 1px solid var(--faint);
	cursor: pointer;
	transition: all .25s;
}

.tb-user:hover { border-color: rgba(255, 46, 136, .45); box-shadow: var(--sh-1); }

.tb-user .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--grad-candy);
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tb-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-user .uname { font-size: 12px; font-weight: 700; color: var(--ink); }

/* ===== HERO ===== */
.hero {
	position: relative;
	padding: 132px clamp(16px, 4vw, 48px) 72px;
}

.hero-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	width: 100%;
}

.hero-online {
	position: absolute;
	top: 108px;
	right: clamp(16px, 4vw, 48px);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: var(--pill);
	background: var(--surface);
	backdrop-filter: var(--glass);
	border: 1px solid var(--line);
	font-size: 12px;
	font-weight: 600;
	color: var(--ink2);
	box-shadow: var(--sh-1);
}

.hero-online .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--brand-5);
	box-shadow: 0 0 0 0 rgba(182, 255, 61, .7);
	animation: dotPulse 1.8s ease-out infinite;
}

@keyframes dotPulse {
	0% { box-shadow: 0 0 0 0 rgba(182, 255, 61, .7); }
	70% { box-shadow: 0 0 0 10px rgba(182, 255, 61, 0); }
	100% { box-shadow: 0 0 0 0 rgba(182, 255, 61, 0); }
}

.hero-issue {
	display: inline-flex;
	align-items: center;
	margin: 0 0 20px;
	padding: 6px 16px;
	border-radius: var(--pill);
	background: rgba(122, 59, 255, .1);
	border: 1px solid rgba(122, 59, 255, .18);
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--brand-1);
}

.hero-content {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
}

.hero-left { min-width: 0; }
.hero-right { min-width: 0; }

.hero-mega {
	margin: 0;
	font-family: var(--font-cn);
	font-weight: 900;
	font-size: clamp(46px, 6.6vw, 96px);
	line-height: 1.04;
	letter-spacing: -1px;
	color: var(--ink);
	position: relative;
}

.hero-mega .serif {
	position: relative;
	display: inline-block;
	font-family: var(--font-cn);
	font-style: normal;
	font-weight: 900;
	background: var(--grad-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-mega .outline {
	color: var(--brand-2);
	-webkit-text-stroke: 0;
}

.hero-bottom { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.hero-bottom-left { flex: 0 0 auto; }

.hero-desc {
	max-width: 460px;
	margin: 22px 0 0;
	font-size: 15px;
	line-height: 1.85;
	color: var(--ink2);
}

.hero-btns { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn-ink,
.btn-line,
.button.primary,
.button.secondary {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	border-radius: var(--pill);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	overflow: hidden;
	border: 0;
	transition: transform .3s var(--ease-pop), box-shadow .3s, color .3s, background .3s;
}

.btn-ink {
	background: var(--grad-brand);
	color: #fff;
	box-shadow: var(--sh-pink);
}

.btn-ink:hover,
.button.primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px rgba(255, 46, 136, .38); }

.btn-ink::after,
.button.primary::after {
	content: '';
	position: absolute;
	top: 0;
	left: -140%;
	width: 60%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-18deg);
	transition: left .7s var(--ease-soft);
}

.btn-ink:hover::after,
.button.primary:hover::after { left: 150%; }

.btn-line {
	background: #fff;
	color: var(--ink);
	border: 2px solid var(--faint);
}

.btn-line:hover {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
	transform: translateY(-3px);
}

.btn-line:active,
.btn-ink:active { transform: translateY(0) scale(.97); }

/* HERO 预览卡 */
.hero-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	max-width: 480px;
}

.hero-cards::-webkit-scrollbar { display: none; }

.hero-card:first-child { grid-column: 1 / -1; }
.hero-card:first-child .hero-card-thumb { aspect-ratio: 16 / 9; }

.hero-card {
	position: relative;
	flex: none;
	border-radius: var(--r-md);
	overflow: hidden;
	cursor: pointer;
	background: var(--paper);
	box-shadow: var(--sh-1);
	transition: transform .4s var(--ease-pop), box-shadow .4s;
}

.hero-card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 26px 54px rgba(122, 59, 255, .3);
	z-index: 2;
}

.hero-card-thumb { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; }

.hero-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27, 16, 48, 0) 38%, rgba(27, 16, 48, .82) 100%);
}

.hero-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.hc-live {
	padding: 4px 10px;
	border-radius: var(--pill);
	background: var(--red);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .6px;
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 46, 136, .4);
}

.hc-live::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 5px;
	border-radius: 50%;
	background: #fff;
	animation: dotPulse 1.6s ease-out infinite;
}

.hc-viewers {
	padding: 4px 10px;
	border-radius: var(--pill);
	background: rgba(27, 16, 48, .45);
	backdrop-filter: blur(6px);
	font-size: 10px;
	font-weight: 700;
	color: #fff;
}

.hero-card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; }

.hero-card-title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
	margin-bottom: 9px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-card-meta { display: flex; align-items: center; gap: 7px; }

.hero-card-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
	border: 1px solid rgba(255, 255, 255, .35);
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-name { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); }

.hero-card-placeholder {
	flex: none;
	min-height: 168px;
	border-radius: var(--r-md);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	font-family: var(--font-cn);
	font-size: 15px;
	font-weight: 800;
	color: var(--mute);
	background: repeating-linear-gradient(135deg, #fff, #fff 12px, rgba(122, 59, 255, .05) 12px, rgba(122, 59, 255, .05) 24px);
	border: 2px dashed var(--faint);
}

.hero-card-placeholder span { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--mid); }

/* ===== 通用区块标题 ===== */
.spread { padding: 26px clamp(16px, 4vw, 48px) 66px; max-width: var(--maxw); margin: 0 auto; }
.spread-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.more-header { align-items: flex-end; }

.spread-label {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 12px;
	border-radius: var(--pill);
	background: rgba(122, 59, 255, .1);
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--brand-1);
}

.spread-title {
	margin: 0;
	font-family: var(--font-cn);
	font-size: clamp(26px, 3.4vw, 44px);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -.5px;
	color: var(--ink);
}

.red-line {
	height: 2px;
	max-width: var(--maxw);
	margin: 0 auto;
	border-radius: var(--pill);
	background: var(--grad-brand);
	opacity: .28;
}

.red-divider {
	height: 3px;
	margin: 34px 0;
	border-radius: var(--pill);
	background: linear-gradient(90deg, var(--brand-1), var(--brand-2), transparent);
}

/* ===== 热门直播 bento ===== */
.mag-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 196px;
	gap: 16px;
}

.mag-card {
	position: relative;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--paper);
	cursor: pointer;
	box-shadow: var(--sh-1);
	transition: transform .38s var(--ease-pop), box-shadow .38s;
}

.mag-card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(27, 16, 48, .16); }

.mag-card .thumb-wrap { position: relative; width: 100%; height: 100%; min-height: 220px; overflow: hidden; }

.mag-card .thumb-img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .6s var(--ease-soft), filter .4s;
}

.mag-card .thumb-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(140deg, rgba(255, 255, 255, .3), transparent 42%);
	pointer-events: none;
}

.mag-card:hover .thumb-img { transform: scale(1.05); filter: saturate(1.15); }

.mag-card .thumb-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27, 16, 48, 0) 34%, rgba(27, 16, 48, .78) 100%);
}

.mag-card .badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; z-index: 2; }

.badge-live,
.badge-viewers {
	padding: 5px 12px;
	border-radius: var(--pill);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .5px;
	color: #fff;
	backdrop-filter: blur(6px);
}

.badge-live {
	background: var(--red);
	box-shadow: 0 4px 12px rgba(255, 46, 136, .28);
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.badge-live::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #fff;
	animation: dotPulse 1.6s ease-out infinite;
}

.badge-viewers { background: rgba(27, 16, 48, .45); }

.mag-card .card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }

.mag-card .card-title {
	margin-bottom: 9px;
	font-family: var(--font-cn);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.32;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mag-card .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mag-card .card-streamer { display: flex; align-items: center; gap: 8px; min-width: 0; }

.mag-card .card-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	border: 1px solid rgba(255, 255, 255, .3);
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 auto;
}

.mag-card .card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mag-card .card-name { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .78); }

.mag-card .card-tag {
	padding: 4px 12px;
	border-radius: var(--pill);
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(6px);
	white-space: nowrap;
}

.mag-card.featured { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.mag-card.featured .card-title { font-size: 26px; }
.mag-card.featured .thumb-wrap { min-height: 100%; }

.featured {
	grid-column: 1 / span 2;
	grid-row: 1 / span 2;
	border-radius: var(--r-md);
	background: var(--paper);
	overflow: hidden;
	position: relative;
	cursor: pointer;
	box-shadow: var(--sh-1);
	transition: transform .38s var(--ease-pop), box-shadow .38s;
}

/* 广告位 */
.mag-card.ad-card {
	grid-column: 3 / span 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--grad-brand);
	border: 0;
	overflow: hidden;
	box-shadow: var(--sh-1);
}

.mag-card.ad-card:hover { transform: translateY(-4px); box-shadow: var(--sh-pink); }

.mag-card.ad-card { padding: 0; }
.ad-card-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ad-card-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 26px;
	text-align: center;
	color: #fff;
}

.ad-card-inner .title { font-family: var(--font-cn); font-size: 22px; font-weight: 900; line-height: 1.3; }
.ad-card-inner .sub { font-size: 13px; opacity: .85; }
.ad-card-inner .go { margin-top: 6px; padding: 10px 22px; border-radius: var(--pill); background: #fff; color: var(--brand-1); font-weight: 800; font-size: 13px; box-shadow: var(--sh-1); }

/* 空占位 */
.placeholder-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	min-height: 180px;
	padding: 26px;
	text-align: center;
	color: var(--mute);
}

.p-line1 { font-family: var(--font-cn); font-size: 16px; font-weight: 800; color: var(--ink2); }
.p-line2 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); }

.p-dots { display: flex; gap: 6px; margin-top: 4px; }

.p-dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--brand-1);
	opacity: .3;
	animation: dotBounce 1.2s ease-in-out infinite;
}

.p-dots span:nth-child(2) { animation-delay: .16s; }
.p-dots span:nth-child(3) { animation-delay: .32s; }

@keyframes dotBounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .3; }
	30% { transform: translateY(-7px); opacity: 1; }
}

.mag-grid > .mag-card:not(.featured):not(.ad-card) { grid-column: span 1; }

/* ===== ISSUE STRIP ===== */
.issue-strip {
	position: relative;
	z-index: 1;
	max-width: var(--maxw);
	margin: 8px auto 26px;
	padding: 16px clamp(16px, 4vw, 32px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	border-radius: var(--r-md);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	color: var(--ink);
	overflow: hidden;
}

@keyframes spinSlow {
	to { transform: rotate(360deg); }
}

.issue-strip .left,
.issue-strip .right,
.issue-strip .val { position: relative; z-index: 1; }
.issue-strip .left { font-family: var(--font-cn); font-size: 15px; font-weight: 800; letter-spacing: .3px; color: var(--ink2); }
.issue-strip .right { display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.issue-strip .val { font-weight: 900; color: var(--brand-2); }

/* ===== 全部直播 ===== */
.more-section { padding: 56px clamp(16px, 4vw, 48px) 76px; max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--line); }
.more-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }

.more-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: 18px;
}

.sm-card {
	position: relative;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--paper);
	cursor: pointer;
	box-shadow: var(--sh-1);
	transition: transform .34s var(--ease-pop), box-shadow .34s;
}

.sm-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(27, 16, 48, .14); }

.sm-card .sm-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.sm-card .sm-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-soft); }
.sm-card:hover .sm-thumb-img { transform: scale(1.06); }
.sm-card .sm-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 16, 48, 0) 45%, rgba(27, 16, 48, .62) 100%); }
.sm-card .sm-badges { position: absolute; top: 11px; left: 11px; display: flex; gap: 6px; z-index: 2; }
.sm-card .sm-info { padding: 14px 16px 16px; }

.sm-card .sm-title {
	font-family: var(--font-cn);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--ink);
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sm-card .sm-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sm-card .sm-streamer { display: flex; align-items: center; gap: 8px; min-width: 0; }

.sm-card .sm-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--grad-brand);
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 auto;
}

.sm-card .sm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sm-card .sm-name { font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-card .sm-tag { padding: 4px 11px; border-radius: var(--pill); background: rgba(122, 59, 255, .1); font-size: 10px; font-weight: 800; color: var(--brand-1); white-space: nowrap; }

/* ===== 下载区 ===== */
.dl-list,
.dl-item { list-style: none; }
.dl-section {
	max-width: var(--maxw);
	margin: 0 auto 72px;
	padding: clamp(28px, 4vw, 52px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
	flex-wrap: wrap;
	border-radius: var(--r-xl);
	background: linear-gradient(135deg, #fff 0%, #f3edff 60%, #ffe9f3 100%);
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	position: relative;
	overflow: hidden;
}

.dl-section::before {
	content: '';
	position: absolute;
	width: 340px;
	height: 340px;
	right: -90px;
	top: -120px;
	border-radius: 50%;
	background: var(--grad-candy);
	filter: blur(80px);
	opacity: .2;
}

.dl-text { position: relative; z-index: 1; flex: 1 1 340px; }

.dl-title {
	margin: 0 0 14px;
	font-family: var(--font-cn);
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 900;
	line-height: 1.18;
	color: var(--ink);
}

.dl-title .serif {
	font-family: var(--font-cn);
	font-style: normal;
	font-weight: 900;
	background: var(--grad-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dl-desc { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.85; color: var(--ink2); }

.dl-qr-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.dl-qr {
	width: 148px;
	height: 148px;
	padding: 10px;
	border-radius: var(--r-md);
	background: #fff;
	border: 1px solid var(--faint);
	box-shadow: var(--sh-2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .4s var(--ease-pop);
}

.dl-qr:hover { transform: translateY(-6px) rotate(-2deg); }
.dl-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-xs); }
.dl-qr-hint { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--mute); }

/* ===== FOOTER ===== */
.site-footer {
	position: relative;
	z-index: 1;
	margin: 0 clamp(12px, 3vw, 40px) clamp(12px, 3vw, 40px);
	padding: 46px clamp(20px, 4vw, 48px) 26px;
	border-radius: var(--r-xl) var(--r-xl) 0 0;
	background: var(--ink);
	color: rgba(255, 255, 255, .72);
	overflow: hidden;
}

.site-footer::before {
	content: '';
	position: absolute;
	top: -140px;
	left: 50%;
	width: 720px;
	height: 300px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(255, 46, 136, .22), transparent 70%);
	filter: blur(40px);
	pointer-events: none;
}

.footer-top {
	position: relative;
	display: grid;
	grid-template-columns: 1.6fr .8fr .9fr 1.2fr;
	gap: 30px 26px;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 900;
	background: var(--grad-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 12px;
}

.footer-desc { margin: 0; max-width: 620px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .6); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #fff; margin-bottom: 4px; }

.footer-col a {
	font-size: 13px;
	color: rgba(255, 255, 255, .66);
	transition: color .22s, transform .22s;
}

.footer-col a:hover { color: var(--brand-5); transform: translateX(3px); }

.footer-bottom {
	position: relative;
	padding-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 12px;
	color: rgba(255, 255, 255, .5);
}

.footer-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom a { color: rgba(255, 255, 255, .62); transition: color .22s; }
.footer-bottom a:hover { color: var(--brand-4); }

/* ===== TOAST ===== */
.toast {
	position: fixed;
	top: 96px;
	left: 50%;
	z-index: 400;
	padding: 16px 26px;
	border-radius: var(--r-md);
	background: rgba(27, 16, 48, .94);
	backdrop-filter: var(--glass);
	color: #fff;
	box-shadow: var(--sh-2);
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -18px) scale(.96);
	transition: opacity .28s, transform .32s var(--ease-pop), visibility .28s;
}

.toast.show,
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.toast-title { font-family: var(--font-cn); font-size: 15px; font-weight: 800; }
.toast-desc { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .68); }
.toast-msg { font-size: 14px; font-weight: 700; }

/* ===== 推荐弹窗 ===== */
.recommend-overlay {
	position: fixed;
	inset: 0;
	z-index: 380;
	display: none;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 28px;
	background: rgba(27, 16, 48, .28);
	backdrop-filter: blur(3px);
}

.recommend-overlay.show { display: flex; }

.recommend-popup {
	position: relative;
	width: 268px;
	padding: 20px;
	border-radius: var(--r-lg);
	background: rgba(255, 255, 255, .95);
	backdrop-filter: var(--glass);
	border: 1px solid #fff;
	box-shadow: 0 28px 64px rgba(27, 16, 48, .28);
	cursor: pointer;
	animation: popIn .5s var(--ease-pop);
	transition: transform .3s var(--ease-pop);
}

.recommend-popup:hover { transform: translateY(-6px) scale(1.02); }

@keyframes popIn {
	from { opacity: 0; transform: translateY(24px) scale(.9); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.recommend-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: var(--faint);
	color: var(--ink2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .22s;
}

.recommend-close:hover { background: var(--brand-2); color: #fff; transform: rotate(90deg); }

.recommend-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px;
	border-radius: var(--pill);
	background: var(--red-soft);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .5px;
	color: var(--red);
}

.recommend-avatar {
	width: 62px;
	height: 62px;
	margin: 14px 0 10px;
	border-radius: 50%;
	background: var(--grad-brand);
	box-shadow: 0 10px 24px rgba(122, 59, 255, .3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	overflow: hidden;
}

.recommend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.recommend-name { font-size: 14px; font-weight: 800; color: var(--ink); }

.recommend-title-text {
	margin-top: 5px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.recommend-btn {
	margin-top: 16px;
	padding: 12px;
	border-radius: var(--pill);
	background: var(--grad-brand);
	box-shadow: var(--sh-pink);
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: transform .28s var(--ease-pop);
}

.recommend-popup:hover .recommend-btn { transform: scale(1.04); }
.recommend-hint { margin-top: 9px; text-align: center; font-size: 11px; color: var(--mid); }

/* ===== 登录 / 注册弹层 ===== */
.auth-overlay,
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(27, 16, 48, .52);
	backdrop-filter: blur(8px);
}

.auth-overlay.show,
.auth-overlay.active,
.modal-overlay.show,
.modal-overlay.active { display: flex; animation: fadeIn .26s ease-out; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
	position: relative;
	width: min(430px, 100%);
	max-height: 92vh;
	overflow-y: auto;
	padding: 30px 28px 26px;
	border-radius: var(--r-xl);
	background: #fff;
	box-shadow: 0 34px 80px rgba(27, 16, 48, .34);
	animation: riseIn .42s var(--ease-pop);
}

@keyframes riseIn {
	from { opacity: 0; transform: translateY(34px) scale(.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: var(--bg);
	color: var(--ink2);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all .22s;
}

.auth-close:hover { background: var(--brand-2); color: #fff; transform: rotate(90deg); }

.auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin-bottom: 22px;
	border-radius: var(--pill);
	background: var(--bg);
}

.auth-tab {
	padding: 11px;
	border: 0;
	border-radius: var(--pill);
	background: none;
	font-family: var(--font-cn);
	font-size: 14px;
	font-weight: 800;
	color: var(--mute);
	cursor: pointer;
	transition: all .26s;
}

.auth-tab.active {
	background: var(--grad-brand);
	color: #fff;
	box-shadow: var(--sh-pink);
}

.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.active { display: flex; animation: fadeIn .28s ease-out; }

.auth-input-group { display: flex; flex-direction: column; gap: 7px; }
.auth-input-group label { font-size: 12px; font-weight: 700; color: var(--ink2); letter-spacing: .5px; }

.auth-input {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid var(--faint);
	border-radius: var(--r-sm);
	background: var(--bg);
	font-family: inherit;
	font-size: 14px;
	color: var(--ink);
	transition: border-color .22s, box-shadow .22s, background .22s;
}

.auth-input::placeholder { color: var(--mid); }
.auth-input:focus { outline: 0; background: #fff; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(122, 59, 255, .12); }

.auth-code-btn {
	flex: 0 0 auto;
	padding: 0 18px;
	height: 46px;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--grad-mint);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .24s var(--ease-pop), opacity .24s;
}

.auth-code-btn:hover:not(:disabled) { transform: translateY(-2px); }
.auth-code-btn:disabled { background: var(--faint); color: var(--mid); cursor: not-allowed; }

.auth-footer { display: flex; gap: 10px; align-items: center; }
.auth-footer .auth-code-btn { flex: 1; }

.auth-submit,
.submit-btn {
	margin-top: 6px;
	padding: 15px;
	border: 0;
	border-radius: var(--pill);
	background: var(--grad-brand);
	box-shadow: var(--sh-pink);
	font-family: var(--font-cn);
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 1px;
	color: #fff;
	cursor: pointer;
	transition: transform .28s var(--ease-pop), box-shadow .28s, opacity .2s;
}

.auth-submit:hover,
.submit-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255, 46, 136, .38); }

.auth-submit:disabled,
.submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-error {
	display: none;
	padding: 10px 14px;
	border-radius: var(--r-sm);
	background: var(--red-soft);
	font-size: 13px;
	font-weight: 600;
	color: var(--red);
}

.auth-error.show, .auth-error:not(:empty) { display: block; animation: shakeIn .4s ease-out; }

@keyframes shakeIn {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

/* ===== 滚动进场 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.reveal.visible,
.reveal.show { opacity: 1; transform: none; }

/* ===== 子页顶栏（返回式） ===== */
.nav,
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-inner,
.topbar { display: flex; align-items: center; }

.nav,
.page-wrapper .nav,
.topbar-back { position: relative; }

.nav {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 18px clamp(16px, 4vw, 40px);
	flex-wrap: wrap;
}

.nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; gap: 16px; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nav-brand-text { font-family: var(--font-cn); font-size: 18px; font-weight: 900; color: var(--ink); }
.nav-title { font-family: var(--font-cn); font-size: 17px; font-weight: 900; letter-spacing: .5px; color: var(--ink); }
.topbar-title { font-family: var(--font-cn); font-size: 16px; font-weight: 900; color: var(--ink); }

.nav-back,
.topbar-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border-radius: var(--pill);
	background: #fff;
	border: 1px solid var(--faint);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink2);
	cursor: pointer;
	transition: all .25s var(--ease-pop);
}

.nav-back:hover,
.topbar-back:hover { color: var(--brand-1); border-color: rgba(122, 59, 255, .45); transform: translateX(-3px); box-shadow: var(--sh-1); }

.nav-tabs,
.nav-tab { }

.nav-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.nav-tab {
	padding: 8px 16px;
	border-radius: var(--pill);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink2);
	background: rgba(255, 255, 255, .7);
	border: 1px solid var(--faint);
	transition: all .24s;
}

.nav-tab:hover { color: var(--brand-1); border-color: rgba(122, 59, 255, .4); }
.nav-tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-pink); }

.nav-user { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: var(--pill); background: #fff; border: 1px solid var(--faint); box-shadow: var(--sh-1); }
.nav-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-info { display: flex; flex-direction: column; line-height: 1.25; }
.nav-user-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.nav-user-coin { font-size: 11px; font-weight: 700; color: var(--brand-2); }

.section-title {
	margin: 0 0 16px;
	font-family: var(--font-cn);
	font-size: 18px;
	font-weight: 900;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-title::before {
	content: '';
	width: 5px;
	height: 18px;
	border-radius: var(--pill);
	background: var(--grad-brand);
}

/* ===== 政策文档页 ===== */
.page-wrapper { min-height: 100vh; }
.page-content { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.page-container {
	max-width: 940px;
	margin: 0 auto;
	padding: 34px clamp(16px, 4vw, 40px) 60px;
}

.page-header {
	padding: 30px clamp(20px, 3vw, 34px);
	border-radius: var(--r-xl);
	background: linear-gradient(140deg, #fff, #f4efff 55%, #ffeef6);
	border: 1px solid var(--line);
	box-shadow: var(--sh-2);
	position: relative;
	overflow: hidden;
	margin-bottom: 26px;
}

.page-header::before {
	content: '';
	position: absolute;
	right: -70px;
	top: -80px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--grad-candy);
	filter: blur(60px);
	opacity: .34;
}

.page-label,
.doc-label {
	position: relative;
	display: inline-block;
	padding: 4px 13px;
	border-radius: var(--pill);
	background: rgba(122, 59, 255, .12);
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--brand-1);
	margin-bottom: 12px;
}

.page-title {
	position: relative;
	margin: 0 0 16px;
	font-family: var(--font-cn);
	font-size: clamp(26px, 3.6vw, 42px);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -.5px;
	color: var(--ink);
}

.page-meta { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.page-meta-item,
.doc-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 15px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, .8);
	border: 1px solid var(--line);
	font-size: 12px;
	font-weight: 700;
	color: var(--ink2);
	box-shadow: var(--sh-1);
}

.page-meta-item svg,
.doc-meta-item svg { color: var(--brand-2); flex: 0 0 auto; }

.page-body {
	padding: clamp(22px, 3vw, 36px);
	border-radius: var(--r-lg);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	font-size: 15px;
	line-height: 1.95;
	color: var(--ink2);
}

.page-body > *:first-child { margin-top: 0; }
.page-body h2 { font-family: var(--font-cn); font-size: 22px; font-weight: 900; color: var(--ink); margin: 0 0 18px; }
.page-body h3 { font-family: var(--font-cn); font-size: 17px; font-weight: 800; color: var(--brand-1); margin: 26px 0 12px; }
.page-body p { margin: 0 0 14px; }
.page-body ul,
.page-body ol { padding-left: 22px; margin: 0 0 16px; }
.page-body li { margin-bottom: 8px; }
.page-body strong { color: var(--ink); font-weight: 800; }
.page-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.page-body th,
.page-body td { padding: 11px 14px; border: 1px solid var(--faint); text-align: left; }
.page-body th { background: linear-gradient(90deg, rgba(122, 59, 255, .1), rgba(255, 46, 136, .1)); font-weight: 800; color: var(--ink); }
.page-body a { color: var(--brand-1); font-weight: 700; border-bottom: 1px dashed rgba(122, 59, 255, .5); }
.page-body img { max-width: 100%; width: auto !important; height: auto !important; display: block; margin: 8px auto; border-radius: var(--r-md); }

.list-marker { position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }

.contact-card {
	margin: 22px 0 6px;
	padding: 20px 22px;
	border-radius: var(--r-md);
	background: linear-gradient(135deg, rgba(122, 59, 255, .08), rgba(255, 46, 136, .08));
	border: 1px solid rgba(122, 59, 255, .18);
}

.contact-card p { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-card p:last-child { margin-bottom: 0; }

.page-footer { margin-top: 34px; }
.page-footer-label,
.doc-footer-link-label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--mute);
	margin-bottom: 14px;
}

.page-footer-links,
.doc-footer { display: flex; gap: 10px; flex-wrap: wrap; }

.page-footer-link {
	padding: 9px 18px;
	border-radius: var(--pill);
	background: #fff;
	border: 1px solid var(--faint);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink2);
	transition: all .25s var(--ease-pop);
}

.page-footer-link:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); box-shadow: var(--sh-pink); }
.page-footer-link.active { color: #fff; background: var(--grad-brand); border-color: transparent; }

/* ===== 法务文档页（暗色霓虹变体） ===== */
.doc-container {
	--doc-void: #0e0a1c;
	--doc-text: rgba(255, 255, 255, .82);
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
	padding: 40px clamp(16px, 4vw, 40px) 70px;
	color: var(--doc-text);
}

.doc-container body,
body.doc-page { background: radial-gradient(120% 90% at 50% -10%, #241546 0%, #0e0a1c 55%, #070512 100%) !important; }

.doc-header {
	padding: 32px clamp(20px, 3vw, 34px);
	border-radius: var(--r-xl);
	background: rgba(255, 255, 255, .06);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
	margin-bottom: 26px;
}

.doc-header .doc-label { background: rgba(255, 255, 255, .12); color: #fff; }
.doc-title { margin: 0 0 16px; font-family: var(--font-cn); font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; color: #fff; }
.doc-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.doc-container .doc-meta-item { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }
.doc-container .doc-meta-item svg { color: var(--brand-4); }
.doc-container .section-title { color: #fff; }

.doc-body {
	padding: clamp(22px, 3vw, 34px);
	border-radius: var(--r-lg);
	background: rgba(255, 255, 255, .05);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .1);
	font-size: 15px;
	line-height: 1.95;
	color: rgba(255, 255, 255, .78);
}

.doc-body h2 { color: #fff; font-family: var(--font-cn); font-weight: 900; margin: 0 0 18px; }
.doc-body h3 { color: var(--brand-4); margin: 24px 0 12px; }
.doc-body strong { color: #fff; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body table { width: 100%; border-collapse: collapse; }
.doc-body th, .doc-body td { padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .14); }
.doc-body th { background: rgba(255, 255, 255, .08); color: #fff; }

.doc-footer { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

.doc-footer-link {
	padding: 9px 18px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, .78);
	transition: all .25s var(--ease-pop);
}

.doc-footer-link:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); box-shadow: var(--sh-pink); }
.doc-footer-link.active { color: #fff; background: var(--grad-brand); border-color: transparent; }

.agreement-images { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.agreement-images img { width: 100%; border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }

.img-card {
	width: 100%;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .12);
	transition: border-color .3s, transform .3s var(--ease-pop);
}

.img-card:hover { border-color: rgba(255, 46, 136, .4); transform: translateY(-4px); }
.img-card img { width: 100%; height: auto; display: block; }

/* 分类导航（模板保留节点） */
.cat-section { max-width: var(--maxw); margin: 0 auto; padding: 26px clamp(16px, 4vw, 40px); }
.cat-row { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
a.cat-link { flex: 0 0 auto; text-decoration: none; color: var(--ink2); padding: 8px 18px; border-radius: var(--pill); background: #fff; border: 1px solid var(--faint); font-size: 13px; font-weight: 700; transition: all .25s var(--ease-pop); }
a.cat-link:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); box-shadow: var(--sh-pink); }

/* ===== 充值页 ===== */
.recharge-layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 22px;
	align-items: start;
	max-width: 1120px;
	margin: 0 auto;
	padding: 10px clamp(16px, 4vw, 40px) 70px;
}

.recharge-left,
.recharge-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.user-card {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px 26px;
	border-radius: var(--r-xl);
	background: var(--grad-brand);
	color: #fff;
	box-shadow: var(--sh-3);
}

.user-card::before {
	content: '';
	position: absolute;
	right: -60px;
	top: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	filter: blur(6px);
}

.user-card::after {
	content: '';
	position: absolute;
	inset: auto -30% -60% auto;
	width: 260px;
	height: 200px;
	border-radius: 50%;
	background: rgba(0, 213, 255, .28);
	filter: blur(28px);
}

.user-card-avatar {
	position: relative;
	z-index: 1;
	width: 58px;
	height: 58px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	border: 2px solid rgba(255, 255, 255, .5);
	font-size: 20px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.user-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-info { position: relative; z-index: 1; flex: 1; min-width: 0; }
.user-card-name { font-family: var(--font-cn); font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.user-card-balance { display: flex; align-items: baseline; gap: 8px; }
.coin-label { font-size: 12px; opacity: .85; font-weight: 600; }
.coin-value { font-family: var(--font-display); font-size: 28px; font-weight: 900; letter-spacing: .5px; }

.charge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

.charge-card {
	position: relative;
	padding: 20px 14px;
	border-radius: var(--r-md);
	background: #fff;
	border: 2px solid var(--faint);
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	transition: transform .3s var(--ease-pop), border-color .25s, box-shadow .3s;
}

.charge-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--grad-brand);
	opacity: 0;
	transition: opacity .3s;
}

.charge-card:hover { transform: translateY(-5px); border-color: rgba(255, 46, 136, .45); box-shadow: var(--sh-2); }
.charge-card.selected { border-color: transparent; box-shadow: var(--sh-pink); transform: translateY(-4px); }
.charge-card.selected::before { opacity: 1; }
.charge-card.selected .charge-coin,
.charge-card.selected .charge-price,
.charge-card.selected .charge-bonus,
.charge-card.selected .charge-coin-label { color: #fff; position: relative; z-index: 1; }

.charge-coin { position: relative; z-index: 1; font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--ink); transition: color .3s; }
.charge-coin-label { position: relative; z-index: 1; font-size: 11px; letter-spacing: 1px; color: var(--mute); margin-top: 2px; transition: color .3s; }
.charge-price { position: relative; z-index: 1; margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--brand-2); transition: color .3s; }
.charge-bonus { position: relative; z-index: 1; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--brand-1); transition: color .3s; }
.charge-card.selected .charge-bonus { color: #fff; opacity: .9; }

.pay-panel {
	padding: 22px 22px 24px;
	border-radius: var(--r-xl);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	position: sticky;
	top: 96px;
}

.pay-section { margin-bottom: 18px; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; }

.pay-method {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 15px 16px;
	border-radius: var(--r-md);
	background: var(--bg);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .26s var(--ease-pop);
}

.pay-method:hover { transform: translateX(3px); border-color: rgba(122, 59, 255, .3); }
.pay-method.selected { background: #fff; border-color: var(--brand-2); box-shadow: var(--sh-pink); }

.pay-icon {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 12px;
	background: linear-gradient(135deg, #1677ff, #00c2ff);
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px rgba(22, 119, 255, .3);
}

.pay-ali .pay-icon { background: linear-gradient(135deg, #1677ff, #4aa3ff); }
.pay-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.pay-desc { font-size: 12px; color: var(--mute); margin-top: 1px; }
.pay-radio { margin-left: auto; flex: 0 0 auto; color: var(--mid); transition: all .26s; }
.pay-method.selected .pay-radio { color: var(--brand-2); transform: scale(1.15); }

.submit-area { margin-top: 6px; }
.submit-btn { width: 100%; }

/* 支付二维码弹窗 */
.modal-box {
	position: relative;
	width: min(360px, 100%);
	padding: 26px 24px 24px;
	border-radius: var(--r-xl);
	background: #fff;
	box-shadow: 0 34px 80px rgba(27, 16, 48, .36);
	animation: riseIn .42s var(--ease-pop);
	text-align: center;
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: var(--bg);
	color: var(--ink2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .24s;
}

.modal-close:hover { background: var(--brand-2); color: #fff; transform: rotate(90deg); }
.modal-subtitle { margin-top: 6px; font-size: 13px; color: var(--mute); }

.pay-card { display: flex; flex-direction: column; gap: 14px; }

.pay-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--r-sm);
	background: linear-gradient(90deg, rgba(122, 59, 255, .1), rgba(255, 46, 136, .1));
}

.pay-card-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--mute); }
.pay-card-company { font-family: var(--font-cn); font-size: 14px; font-weight: 900; color: var(--ink); }
.pay-card-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 13px; color: var(--mute); }
.pay-card-money { font-family: var(--font-display); font-size: 30px; font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-card-coin { font-size: 12px; font-weight: 700; color: var(--brand-1); }

.pay-card-qr {
	padding: 14px;
	border-radius: var(--r-md);
	background: #fff;
	border: 1px solid var(--faint);
	box-shadow: var(--sh-1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pay-card-qr img { width: 190px; height: 190px; object-fit: contain; }
.pay-card-tip { font-size: 12px; color: var(--mute); }

.modal-countdown {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px;
	border-radius: var(--r-sm);
	background: var(--bg);
	font-size: 12px;
	color: var(--ink2);
}

.modal-countdown .time { font-family: var(--font-display); font-size: 15px; font-weight: 900; color: var(--brand-2); }
.modal-countdown svg { color: var(--brand-1); }

.modal-status {
	padding: 11px;
	border-radius: var(--r-sm);
	font-size: 13px;
	font-weight: 800;
	transition: all .3s;
}

.modal-status.waiting { background: rgba(122, 59, 255, .1); color: var(--brand-1); }
.modal-status.success { background: linear-gradient(90deg, rgba(0, 229, 192, .16), rgba(182, 255, 61, .16)); color: #00a878; }

.success-check {
	width: 62px;
	height: 62px;
	margin: 6px auto 4px;
	border-radius: 50%;
	background: var(--grad-mint);
	color: #fff;
	font-size: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 16px 34px rgba(0, 229, 192, .35);
	animation: popIn .5s var(--ease-pop);
}

/* ===== 用户中心 ===== */
.profile-card {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(24px, 3vw, 34px);
	border-radius: var(--r-xl);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-2);
	position: relative;
	overflow: hidden;
}

.profile-card::before {
	content: '';
	position: absolute;
	left: -60px;
	top: -90px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: var(--grad-candy);
	filter: blur(70px);
	opacity: .26;
}

.profile-header { position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; width: 86px; height: 86px; flex: 0 0 auto; }

.profile-avatar {
	width: 86px;
	height: 86px;
	border-radius: 50%;
	background: var(--grad-brand);
	box-shadow: 0 14px 32px rgba(122, 59, 255, .3);
	color: #fff;
	font-family: var(--font-cn);
	font-size: 30px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-overlay {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(27, 16, 48, .55);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	cursor: pointer;
	transition: opacity .26s;
}

.profile-avatar-wrap:hover .avatar-overlay { opacity: 1; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-family: var(--font-cn); font-size: 24px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-id { margin-top: 4px; font-size: 12px; color: var(--mute); letter-spacing: .5px; }

.nickname-edit { display: inline-flex; align-items: center; gap: 8px; }
.nickname-display { font-family: var(--font-cn); font-size: 24px; font-weight: 900; color: var(--ink); }

.nickname-edit-btn {
	padding: 5px 14px;
	border: 0;
	border-radius: var(--pill);
	background: rgba(122, 59, 255, .1);
	font-size: 12px;
	font-weight: 800;
	color: var(--brand-1);
	cursor: pointer;
	transition: all .24s;
}

.nickname-edit-btn:hover { background: var(--grad-brand); color: #fff; }

.nickname-input-wrap { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.nickname-input-wrap.show { display: flex; }
.nickname-input { flex: 1 1 180px; padding: 11px 14px; border: 1.5px solid var(--faint); border-radius: var(--r-sm); background: var(--bg); font-size: 14px; font-family: inherit; color: var(--ink); }
.nickname-input:focus { outline: 0; background: #fff; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(122, 59, 255, .12); }
.nickname-save-btn,
.nickname-cancel-btn { padding: 10px 18px; border: 0; border-radius: var(--pill); font-size: 13px; font-weight: 800; cursor: pointer; transition: all .24s var(--ease-pop); }
.nickname-save-btn { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-pink); }
.nickname-cancel-btn { background: var(--bg); color: var(--ink2); }
.nickname-save-btn:hover { transform: translateY(-2px); }
.nickname-cancel-btn:hover { background: var(--faint); }

.profile-stats {
	position: relative;
	margin-top: 26px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
}

.stat-item {
	padding: 18px 14px;
	border-radius: var(--r-md);
	background: linear-gradient(150deg, var(--bg), #fff);
	border: 1px solid var(--line);
	text-align: center;
	transition: transform .3s var(--ease-pop), box-shadow .3s;
}

.stat-item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--mute); }

.action-bar { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.action-btn {
	flex: 1 1 160px;
	padding: 15px 22px;
	border: 0;
	border-radius: var(--pill);
	font-family: var(--font-cn);
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	transition: transform .3s var(--ease-pop), box-shadow .3s, background .3s;
}

.action-btn.primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-pink); }
.action-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255, 46, 136, .38); }
.action-btn.secondary { background: #fff; color: var(--ink2); border: 2px solid var(--faint); }
.action-btn.secondary:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }

.button.primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-pink); }
.button.secondary { background: #fff; color: var(--ink2); border: 2px solid var(--faint); }
.button.secondary:hover { border-color: var(--ink); color: var(--ink); }

/* ===== 通用按钮（暗色页） ===== */
@keyframes flyEl {
	0%, 100% { transform: translateY(0) rotate(-4deg); }
	50% { transform: translateY(-16px) rotate(4deg); }
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 150px;
	height: 46px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--pill);
	font-family: var(--font-cn);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	color: #fff;
	background: var(--grad-brand);
	box-shadow: var(--sh-pink);
	transition: transform .3s var(--ease-pop), box-shadow .3s, background .3s;
}

.button:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255, 46, 136, .4); }
.button + .button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); box-shadow: none; color: rgba(255, 255, 255, .85); }
.button + .button:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ===== 404 ===== */
body.page-404 {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(120% 100% at 50% 0%, #2a1750 0%, #140c28 55%, #0a0716 100%);
	color: #fff;
	padding: 30px 20px;
}

body.page-404 .content,
body.page-404 .content.max-wide { max-width: 560px; margin: 0 auto; width: 100%; }
body.page-404 .feiji { text-align: center; animation: flyEl 3.6s ease-in-out infinite; }
body.page-404 .feiji img { width: min(210px, 46vw); height: auto; filter: drop-shadow(0 18px 34px rgba(255, 46, 136, .35)); }
body.page-404 .info { margin-top: 26px; text-align: center; }
body.page-404 .error { font-family: var(--font-cn); font-size: clamp(34px, 7vw, 54px); font-weight: 900; letter-spacing: 1px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.page-404 .sorry { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .68); }
body.page-404 .countdown { margin: 18px 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
body.page-404 .countdown .time,
body.page-404 #timer { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--brand-4); }
body.page-404 .return { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
body.page-404 .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; height: 46px; padding: 0 26px; border-radius: var(--pill); font-size: 15px; font-weight: 800; text-decoration: none; color: #fff; background: var(--grad-brand); box-shadow: var(--sh-pink); transition: transform .3s var(--ease-pop), box-shadow .3s; }
body.page-404 .button:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255, 46, 136, .4); }
body.page-404 .button + .button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); box-shadow: none; color: rgba(255, 255, 255, .85); }
body.page-404 .cuo { position: absolute; top: -24px; right: 0; width: 30%; }

/* ===== 扫码页 ===== */
.max-wide img { margin: 0 auto; border-radius: var(--r-md); box-shadow: var(--sh-2); }

/* ===== 首页新结构 ===== */
.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.hero-stats .stat-item {
	min-width: 118px;
	padding: 14px 18px;
	border-radius: var(--r-sm);
	text-align: left;
	background: #fff;
	box-shadow: var(--sh-1);
}

.hero-stats .stat-value { font-size: 24px; }
.hero-stats .stat-label { margin-top: 1px; font-size: 11px; letter-spacing: .5px; }

.hero-live-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-family: var(--font-cn);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: var(--mute);
	text-transform: uppercase;
}

.hero-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 0 rgba(255, 46, 136, .55);
	animation: dotPulse 1.8s ease-out infinite;
}

.spread-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mute);
	white-space: nowrap;
	transition: color .25s, gap .25s var(--ease-pop);
}

.spread-more:hover { color: var(--brand-2); gap: 10px; }

.dl-list {
	display: grid;
	gap: 11px;
	margin: 22px 0 4px;
	padding: 0;
}

.dl-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink2);
}

.dl-item svg { flex: 0 0 auto; color: var(--brand-1); }
.dl-text .spread-label { margin-bottom: 14px; }
.footer-brand-col { min-width: 0; }
.footer-col a { display: block; margin-bottom: 9px; }


/* ===== 响应式 ===== */
@media (max-width: 1080px) {
	.topbar-center { gap: 14px; min-width: 0; }
	.topbar-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
	.topbar-nav::-webkit-scrollbar { display: none; }
	.topbar-nav > a { flex: 0 0 auto; white-space: nowrap; padding: 7px 14px; border-radius: var(--pill); }
	.hero-content { grid-template-columns: 1fr; gap: 44px; }
	.hero-cards { max-width: 520px; }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
	.mag-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.mag-card.featured,
	.mag-card.ad-card { grid-column: auto; grid-row: auto; }
	.mag-card.featured { min-height: 300px; }
	.recharge-layout { grid-template-columns: 1fr; }
	.pay-panel { position: static; }
	.footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
	.topbar-nav,
	.nav-dropdown { display: none; }
	.hero { padding-top: 118px; text-align: center; }
	.hero-issue { margin-inline: auto; }
	.hero-desc { margin-inline: auto; }
	.hero-btns,
	.hero-stats { justify-content: center; }
	.hero-cards { max-width: none; }
	.issue-strip { flex-direction: column; align-items: flex-start; }
	.dl-section { flex-direction: column; align-items: flex-start; text-align: left; }
	.dl-qr-wrap { align-self: center; }
	.more-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
	.sm-card .sm-name,
	.sm-card .sm-meta { display: none; }
	.sm-card .sm-title { -webkit-line-clamp: 2; font-size: 13px; }
	.sm-card .sm-info { padding: 11px 12px 13px; }
	.charge-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
	.recommend-overlay { align-items: flex-end; justify-content: center; padding: 16px; }
}

@media (max-width: 560px) {
	.topbar { height: 64px; gap: 10px; }
	.topbar-brand img { height: 32px; }
	.topbar-brand span { font-size: 16px; }
	.tb-btn { padding: 8px 14px; font-size: 12px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.footer-top { grid-template-columns: 1fr; gap: 22px; }
	.page-body { padding: 20px 16px; border-radius: var(--r-md); }
}

@media (prefers-reduced-motion: reduce) {
	body::before,
	body::after,
	.issue-strip::before,
	.hero-online .dot,
	.feiji,
	.p-dots span { animation: none; }

	* { transition-duration: .01ms !important; scroll-behavior: auto; }
}

/* ===== 扫码下载页 ===== */
.scan-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 18px;
	background: radial-gradient(110% 90% at 20% 0%, #31165f 0%, #150c2b 55%, #0b0718 100%);
	color: #fff;
}

.scan-card {
	width: min(430px, 100%);
	padding: 34px 28px 30px;
	border-radius: var(--r-xl);
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
	text-align: center;
	animation: riseIn .5s var(--ease-pop);
}

.scan-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.scan-brand img { height: 34px; width: auto; border-radius: 9px; }
.scan-brand span { font-family: var(--font-cn); font-size: 19px; font-weight: 900; letter-spacing: .5px; }
.scan-title { font-family: var(--font-cn); font-size: 24px; font-weight: 900; line-height: 1.3; margin-bottom: 8px; }
.scan-title em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scan-desc { font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.8; margin-bottom: 20px; }
.scan-qr { display: inline-block; padding: 14px; border-radius: var(--r-md); background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.scan-qr img { width: 190px; height: 190px; display: block; object-fit: contain; }
.scan-hint { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.scan-status { margin: 18px auto 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; }
.scan-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-5); animation: dotPulse 1.6s ease-out infinite; }
.scan-btns { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.scan-btns .button { flex: 1 1 150px; }
@media (max-width: 420px) { .scan-qr img { width: 160px; height: 160px; } }

/* ===== 未开播 / 错误页 ===== */
body.offline-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 18px;
	background: radial-gradient(120% 100% at 50% 0%, #2a1750 0%, #140c28 55%, #0a0716 100%);
	color: #fff;
}

.offline-box {
	width: min(430px, 100%);
	padding: 38px 26px 32px;
	border-radius: var(--r-xl);
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, .13);
	box-shadow: 0 34px 80px rgba(0, 0, 0, .45);
	text-align: center;
	animation: riseIn .48s var(--ease-pop);
}

.offline-icon {
	width: 84px;
	height: 84px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--grad-brand);
	box-shadow: var(--sh-pink);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: flyEl 3.4s ease-in-out infinite;
}

.offline-icon svg { width: 38px; height: 38px; }
.offline-title { font-family: var(--font-cn); font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.offline-desc { font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .62); }
.offline-box .button { margin-top: 22px; }

/* 轻提示（用户中心 JS 动态挂载） */
.toast-msg {
	position: fixed;
	left: 50%;
	bottom: 34px;
	z-index: 10001;
	max-width: 86vw;
	padding: 12px 22px;
	border-radius: var(--pill);
	background: rgba(27, 16, 48, .92);
	backdrop-filter: blur(10px);
	color: #fff;
	font-family: var(--font-cn);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	box-shadow: 0 18px 44px rgba(27, 16, 48, .35);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 14px);
	transition: opacity .3s, transform .34s var(--ease-pop), visibility .3s;
}

.toast-msg.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-msg.success { background: linear-gradient(118deg, #00c48f, #00d5ff); }
.toast-msg.error { background: var(--grad-sun); }

/* ===== 子页外壳 ===== */
.topbar.sub {
	position: sticky;
	top: 0;
	z-index: 900;
	height: auto;
	min-height: 70px;
	flex-wrap: wrap;
	gap: 14px;
	padding: 12px clamp(16px, 4vw, 40px);
	background: rgba(255, 255, 255, .82);
	border-bottom: 1px solid var(--line);
}

.topbar.sub .topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar.sub .topbar-brand img { height: 34px; width: auto; border-radius: 8px; }
.topbar.sub .topbar-nav { overflow-x: auto; scrollbar-width: none; }
.topbar.sub .topbar-nav::-webkit-scrollbar { display: none; }
.topbar.sub .topbar-nav a { flex: 0 0 auto; white-space: nowrap; padding: 7px 15px; border-radius: var(--pill); font-size: 13px; }
.topbar.sub .topbar-title { position: static; transform: none; }

.policy-page .page-container,
.user-page .page-container { padding-top: 34px; }

body.doc-page,
body.offline-page,
body.page-404 { color-scheme: dark; }

body.doc-page::before,
body.doc-page::after,
body.offline-page::before,
body.offline-page::after,
body.page-404::before,
body.page-404::after { opacity: .3; }

body.doc-page .nav { position: sticky; top: 0; z-index: 900; background: rgba(14, 10, 28, .72); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
body.doc-page .nav-title { color: #fff; }
body.doc-page .nav-back { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
body.doc-page .nav-back:hover { background: var(--grad-brand); border-color: transparent; color: #fff; }
body.doc-page .nav-tab { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .72); }
body.doc-page .nav-tab:hover { color: #fff; border-color: rgba(255, 46, 136, .5); }
body.doc-page .nav-brand-text { color: #fff; }

/* ===== 兼容层：模板内联动画 / 既有节点 ===== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
#navLoggedIn,
#navLoggedOut { display: flex; align-items: center; gap: 8px; }
.spread#hot { padding-top: 26px; }
@media (max-width: 820px) {
	.spread#hot { padding-top: 20px; }
	.mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 158px; }
	.mag-card.featured { grid-column: 1 / span 2; grid-row: span 2; }
	.mag-card.ad-card { grid-column: 1 / span 2; grid-row: auto; }
}

/* 充值页顶栏吸附 */
body.recharge-page .nav {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, .84);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--line);
}
/* ============================================================
   首页 · 帧趣现场（点歌台 / 节目单 / 唱片墙）
   ============================================================ */
body.home-page,
body.stage-sub,
body.live-room {
	--stage-0: #0b0814;
	--stage-1: #15102a;
	--stage-2: #1e1638;
	--cream: #f6f1e7;
	--fog: rgba(246, 241, 231, .62);
	--hot: #ff4d3d;
	--acid: #c9ff3d;
	--amber: #ffb43d;
	--hair: rgba(246, 241, 231, .1);

	/* 旧变量名换装，基础规则自动跟随 */
	--bg: #0b0814;
	--paper: #15102a;
	--surface: rgba(11, 8, 20, .76);
	--ink: #f6f1e7;
	--ink2: rgba(246, 241, 231, .84);
	--mute: rgba(246, 241, 231, .5);
	--mid: rgba(246, 241, 231, .34);
	--faint: rgba(246, 241, 231, .16);
	--line: rgba(246, 241, 231, .1);
	--red: #ff4d3d;
	--red-soft: rgba(255, 77, 61, .16);
	--brand-2: #ff4d3d;
	--brand-3: #ff8a2b;
	--brand-5: #c9ff3d;
	--grad-brand: linear-gradient(112deg, #ff4d3d, #ff8a2b 52%, #ffd23d);
	--grad-candy: linear-gradient(112deg, #7a3bff, #ff4d3d 78%);
	--grad-sun: linear-gradient(112deg, #ff8a2b, #ff4d3d);
	--sh-1: 0 2px 14px rgba(0, 0, 0, .34);
	--sh-2: 0 16px 44px rgba(0, 0, 0, .46);
	--sh-pink: 0 14px 36px rgba(255, 77, 61, .26);
	--font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

	color: var(--cream);
	background:
		radial-gradient(72% 46% at 50% -8%, rgba(122, 59, 255, .3), transparent 64%),
		radial-gradient(46% 38% at 4% 10%, rgba(255, 77, 61, .13), transparent 72%),
		radial-gradient(40% 34% at 96% 26%, rgba(201, 255, 61, .07), transparent 74%),
		linear-gradient(180deg, #0f0a1d 0%, #0b0814 52%, #08060f 100%);
	background-attachment: fixed;
}

/* 舞台射灯 */
body.home-page::before,
body.home-page::after,
body.stage-sub::before,
body.stage-sub::after,
body.live-room::before,
body.live-room::after { opacity: .18; filter: blur(120px); }
body.home-page::before,
body.home-page::before,
body.stage-sub::before { background: radial-gradient(circle at 50% 50%, rgba(122, 59, 255, .7), rgba(255, 77, 61, .18) 58%, transparent 76%); }
body.home-page::after,
body.home-page::after,
body.stage-sub::after { background: radial-gradient(circle at 50% 50%, rgba(201, 255, 61, .24), rgba(255, 138, 43, .16) 55%, transparent 74%); }

/* 频谱元素（全站识别符号） */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eqBar 1.05s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.9s; }
.eq i:nth-child(2) { animation-delay: -.55s; }
.eq i:nth-child(3) { animation-delay: -.2s; }
.eq i:nth-child(4) { animation-delay: -.72s; }
.eq i:nth-child(5) { animation-delay: -.38s; }

@keyframes eqBar {
	0%, 100% { transform: scaleY(.26); }
	50% { transform: scaleY(1); }
}

/* ---------- 顶栏 ---------- */
body.home-page .topbar,
body.stage-sub .topbar { box-shadow: 0 10px 40px rgba(0, 0, 0, .42); border-bottom-color: var(--hair); }
body.home-page .topbar-brand span,
body.stage-sub .topbar-brand span { color: var(--cream); background: none; -webkit-text-fill-color: initial; }
body.home-page .topbar-nav a,
body.stage-sub .topbar-nav a { color: var(--fog); }
body.home-page .topbar-nav a:hover,
body.stage-sub .topbar-nav a:hover { color: var(--cream); background: rgba(246, 241, 231, .07); }
body.home-page .topbar-nav a.active,
body.stage-sub .topbar-nav a.active { background: var(--acid); color: #0b0814; box-shadow: 0 8px 22px rgba(201, 255, 61, .2); }
body.home-page .nav-dropdown-toggle,
body.stage-sub .nav-dropdown-toggle { color: var(--fog); }
body.home-page .nav-dropdown-toggle:hover,
body.stage-sub .nav-dropdown-toggle:hover { color: var(--cream); background: rgba(246, 241, 231, .07); }
body.home-page .nav-dropdown-menu,
body.stage-sub .nav-dropdown-menu { background: rgba(21, 16, 42, .97); border-color: var(--hair); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
body.home-page .nav-dropdown-menu a,
body.stage-sub .nav-dropdown-menu a { color: var(--fog); }
body.home-page .nav-dropdown-menu a:hover,
body.stage-sub .nav-dropdown-menu a:hover { background: rgba(255, 77, 61, .14); color: var(--cream); }
body.home-page .tb-btn.ghost,
body.stage-sub .tb-btn.ghost { background: rgba(246, 241, 231, .06); color: var(--cream); border-color: var(--hair); }
body.home-page .tb-btn.ghost:hover,
body.stage-sub .tb-btn.ghost:hover { background: rgba(246, 241, 231, .12); border-color: rgba(246, 241, 231, .3); color: var(--cream); }
body.home-page .tb-btn.fill,
body.stage-sub .tb-btn.fill { background: var(--hot); box-shadow: 0 10px 26px rgba(255, 77, 61, .34); }
body.home-page .tb-user,
body.stage-sub .tb-user { background: rgba(246, 241, 231, .06); border-color: var(--hair); }
body.home-page .tb-user .uname,
body.stage-sub .tb-user .uname { color: var(--cream); }
body.home-page .btn-line,
body.stage-sub .btn-line { background: transparent; color: var(--cream); border: 1px solid rgba(246, 241, 231, .28); }
body.home-page .btn-line:hover,
body.stage-sub .btn-line:hover { background: var(--cream); color: #0b0814; border-color: var(--cream); }

/* ---------- ① 现场 · 点歌台 ---------- */
.stage {
	position: relative;
	padding: 126px clamp(16px, 4vw, 54px) 46px;
	max-width: var(--maxw);
	margin: 0 auto;
}

.stage-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.42fr) minmax(0, .58fr);
	gap: clamp(26px, 3.4vw, 46px);
	align-items: start;
}

.stage-rail {
	position: absolute;
	left: 14px;
	top: 190px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	writing-mode: vertical-rl;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .52em;
	text-transform: uppercase;
	color: rgba(246, 241, 231, .26);
	pointer-events: none;
}

.stage-rail b { color: var(--hot); font-weight: 400; }

.stage-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--acid);
}

.stage-head .head-txt { color: var(--fog); letter-spacing: 1px; font-family: var(--font-cn); font-weight: 700; }

.tc {
	margin-left: auto;
	padding: 3px 9px;
	border: 1px solid var(--hair);
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1.4px;
	color: var(--mid);
	font-variant-numeric: tabular-nums;
}

/* 大屏 */
.screen {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	min-height: 300px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--hair);
	background-color: #191233;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	color: var(--cream);
	box-shadow: 0 34px 80px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(246, 241, 231, .05);
	transition: transform .5s var(--ease-soft), box-shadow .5s;
}

.screen:hover { transform: translateY(-4px); box-shadow: 0 44px 100px rgba(0, 0, 0, .64), 0 0 0 1px rgba(201, 255, 61, .28); }

/* 无信号时的条纹底 */
.screen:not(.has-live) {
	background-image:
		repeating-linear-gradient(135deg, rgba(246, 241, 231, .05) 0 14px, transparent 14px 28px),
		radial-gradient(80% 70% at 26% 16%, rgba(122, 59, 255, .5), transparent 62%),
		linear-gradient(160deg, #221743, #0d0a1a);
}

/* 扫描线 */
.screen::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 4px);
	opacity: .5;
	mix-blend-mode: multiply;
	pointer-events: none;
}

.screen::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(0deg, rgba(8, 6, 15, .94) 4%, rgba(8, 6, 15, .5) 34%, rgba(8, 6, 15, .06) 62%);
	pointer-events: none;
}

.screen-scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 34%;
	z-index: 3;
	background: linear-gradient(180deg, transparent, rgba(201, 255, 61, .07) 60%, transparent);
	animation: scanMove 6.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes scanMove {
	0% { transform: translateY(-40%); opacity: 0; }
	22% { opacity: 1; }
	78% { opacity: 1; }
	100% { transform: translateY(300%); opacity: 0; }
}

.screen-corner,
.screen-live {
	position: absolute;
	top: 14px;
	z-index: 4;
	padding: 5px 11px;
	border-radius: 5px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1.6px;
	backdrop-filter: blur(8px);
}

.screen-corner {
	left: 14px;
	background: rgba(8, 6, 15, .58);
	border: 1px solid var(--hair);
	color: var(--fog);
}

.screen-live {
	right: 14px;
	background: rgba(8, 6, 15, .58);
	border: 1px solid rgba(255, 77, 61, .5);
	color: var(--hot);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.screen.has-live .screen-live::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hot);
	animation: dotPulse 1.6s ease-out infinite;
}

/* 屏内字卡 */
.screen-plate {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: block;
	padding: clamp(16px, 2.4vw, 28px) clamp(16px, 2.6vw, 32px);
}

.scr-title {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(26px, 3.9vw, 54px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -.5px;
	color: var(--cream);
	text-shadow: 0 6px 26px rgba(0, 0, 0, .6);
}

.scr-lyric {
	position: relative;
	display: block;
	margin-top: 10px;
	font-size: clamp(12px, 1.35vw, 16px);
	font-weight: 600;
	letter-spacing: .5px;
	white-space: nowrap;
	overflow: hidden;
}

.ly-base { color: rgba(246, 241, 231, .4); }

.ly-sing {
	position: absolute;
	left: 0;
	top: 0;
	color: var(--acid);
	text-shadow: 0 0 18px rgba(201, 255, 61, .45);
	clip-path: inset(0 100% 0 0);
	animation: sing 7.5s cubic-bezier(.5, .05, .45, 1) infinite;
}

@keyframes sing {
	0% { clip-path: inset(0 100% 0 0); }
	54% { clip-path: inset(0 0 0 0); }
	76% { clip-path: inset(0 0 0 0); opacity: 1; }
	92%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

/* 波形 */
.scr-wave,
.bill-wave { display: flex; align-items: flex-end; gap: 2px; }

.scr-wave { height: 42px; margin-top: 14px; }
.scr-wave i,
.bill-wave i {
	flex: 0 0 3px;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--acid), rgba(201, 255, 61, .3));
	transform-origin: bottom;
	animation-name: scrBar;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-direction: alternate;
}

@keyframes scrBar {
	from { transform: scaleY(.22); opacity: .55; }
	to { transform: scaleY(1); opacity: 1; }
}

.screen:hover .scr-wave i { animation-duration: .28s !important; }

.stage-now { min-width: 0; }

/* 屏下信息 */
.stage-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.stage-who { display: flex; align-items: center; gap: 12px; min-width: 0; }

.who-av {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(246, 241, 231, .1);
	border: 1px solid rgba(201, 255, 61, .4);
	color: var(--acid);
	font-weight: 800;
}

.who-av img { width: 100%; height: 100%; object-fit: cover; }
.who-txt { display: flex; flex-direction: column; min-width: 0; }
.who-txt b { font-size: 15px; font-weight: 800; color: var(--cream); }
.who-txt em { font-style: normal; font-size: 12px; color: var(--mid); margin-top: 2px; }

/* 数据条 */
body.home-page .hero-stats { margin-top: 22px; gap: 12px; }

body.home-page .hero-stats .stat-item {
	position: relative;
	overflow: hidden;
	background: rgba(246, 241, 231, .04);
	border: 1px solid var(--hair);
	backdrop-filter: var(--glass);
	padding-bottom: 26px;
}

body.home-page .hero-stats .stat-value {
	background: none;
	-webkit-background-clip: initial;
	background-clip: initial;
	-webkit-text-fill-color: var(--cream);
	color: var(--cream);
	font-family: var(--font-mono);
	letter-spacing: -1px;
}

.stat-meter { position: absolute; left: 14px; right: 14px; bottom: 11px; height: 3px; border-radius: 3px; background: rgba(246, 241, 231, .1); overflow: hidden; }
.stat-meter i { display: block; height: 100%; width: 12%; border-radius: 3px; background: linear-gradient(90deg, var(--hot), var(--amber) 60%, var(--acid)); transition: width 1.2s var(--ease-soft); }

/* ---------- ② 接下来 · 排队 ---------- */
.stage-next {
	position: relative;
	border-radius: 14px;
	border: 1px solid var(--hair);
	background: linear-gradient(180deg, rgba(246, 241, 231, .05), rgba(246, 241, 231, .015));
	backdrop-filter: var(--glass);
	padding: 20px 18px 18px;
	overflow: hidden;
}

.stage-next::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--hot), var(--amber) 46%, var(--acid));
	opacity: .85;
}

.next-head {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: var(--cream);
	margin-bottom: 6px;
}

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

.q-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 13px 8px;
	border-bottom: 1px dashed rgba(246, 241, 231, .1);
	cursor: pointer;
	transition: background .3s, transform .3s var(--ease-soft);
}

.q-item:last-child { border-bottom: 0; }
.q-item:hover { background: rgba(246, 241, 231, .05); transform: translateX(4px); }
.q-no { font-family: var(--font-mono); font-size: 12px; color: var(--mid); letter-spacing: 1px; }
.q-body { display: flex; flex-direction: column; min-width: 0; }
.q-body b { font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-body em { font-style: normal; font-size: 11px; color: var(--mid); margin-top: 3px; }

.q-state {
	padding: 3px 8px;
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1.2px;
	border: 1px solid var(--hair);
	color: var(--mid);
}

.q-item.soon .q-state { color: var(--amber); border-color: rgba(255, 180, 61, .35); }
.q-item.open .q-state { color: var(--acid); border-color: rgba(201, 255, 61, .35); border-style: dashed; }
.q-item.open .q-body b { color: var(--fog); }
.q-item:not(.soon):not(.open) .q-state { color: #0b0814; background: var(--hot); border-color: transparent; font-weight: 700; }
.next-note { margin-top: 14px; font-size: 12px; color: var(--mid); }
.next-note a { color: var(--acid); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(201, 255, 61, .4); }
.next-note a:hover { color: var(--cream); border-color: var(--cream); }

/* ---------- 跑马灯 ---------- */
.ticker {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-top: 1px solid var(--hair);
	border-bottom: 1px solid var(--hair);
	background: rgba(246, 241, 231, .03);
	padding: 13px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.ticker-track {
	display: flex;
	align-items: center;
	gap: 26px;
	width: max-content;
	animation: marquee 34s linear infinite;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 3.5px;
	text-transform: uppercase;
	color: var(--fog);
	white-space: nowrap;
}

.ticker-track span { display: inline-flex; align-items: center; gap: 26px; }
.ticker-track em { color: var(--hot); font-style: normal; }
.ticker-track span:first-child { color: var(--acid); }
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ---------- 区块标题 ---------- */
body.home-page .spread-label,
body.stage-sub .spread-label { background: rgba(246, 241, 231, .07); border: 1px solid var(--hair); color: var(--fog); text-transform: none; letter-spacing: 1.5px; }
body.home-page .spread-title,
body.stage-sub .spread-title { color: var(--cream); }
body.home-page .spread-more,
body.stage-sub .spread-more { color: var(--fog); }
body.home-page .spread-more:hover,
body.stage-sub .spread-more:hover { color: var(--acid); }
body.home-page .more-section,
body.stage-sub .more-section { border-top-color: var(--hair); }

.sec-no {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1px;
	color: #0b0814;
	background: var(--acid);
	padding: 2px 7px;
	border-radius: 4px;
	margin-right: 8px;
}

/* ---------- ③ 今晚阵容 · 节目单 ---------- */
.bill { padding: 34px clamp(16px, 4vw, 54px) 62px; max-width: var(--maxw); margin: 0 auto; }
.bill-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.bill-legend { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--mid); }
.bill-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot-live,
.dot-soon { width: 7px; height: 7px; border-radius: 50%; }
.dot-live { background: var(--hot); box-shadow: 0 0 0 3px rgba(255, 77, 61, .18); }
.dot-soon { background: transparent; border: 1px dashed rgba(201, 255, 61, .6); }

.bill-list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }

.bill-row {
	position: relative;
	display: grid;
	grid-template-columns: 42px 78px minmax(0, 1fr) auto auto 26px;
	align-items: center;
	gap: clamp(12px, 2vw, 22px);
	padding: 15px 14px;
	border-bottom: 1px solid var(--hair);
	cursor: pointer;
	transition: background .35s, transform .35s var(--ease-soft);
}

.bill-row::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--acid);
	transform: scaleY(0);
	transform-origin: center;
	transition: transform .35s var(--ease-pop);
}

.bill-row:hover { background: rgba(246, 241, 231, .045); transform: translateX(6px); }
.bill-row:hover::after { transform: scaleY(1); }
.bill-row.on:hover::after { background: var(--hot); }

.bill-no { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: rgba(246, 241, 231, .22); letter-spacing: -1px; }
.bill-row.on .bill-no { color: var(--acid); }
.bill-row.empty .bill-no { color: rgba(246, 241, 231, .14); }

/* 封套 + 滑出的唱片 */
.bill-pic {
	position: relative;
	display: block;
	width: 78px;
	height: 78px;
	border-radius: 6px;
	overflow: visible;
	background-size: cover;
	background-position: center;
	background-color: #1a1332;
	border: 1px solid var(--hair);
	isolation: isolate;
}

.bill-row.empty .bill-pic {
	background-image: repeating-linear-gradient(135deg, rgba(246, 241, 231, .07) 0 8px, transparent 8px 16px);
	background-color: transparent;
	border-style: dashed;
	border-color: rgba(246, 241, 231, .18);
}

.bill-disc {
	position: absolute;
	top: 50%;
	right: 4px;
	width: 66px;
	height: 66px;
	margin-top: -33px;
	border-radius: 50%;
	z-index: -1;
	background:
		radial-gradient(circle at 50% 50%, var(--lab, #ff4d3d) 0 14%, rgba(0, 0, 0, .55) 14.4% 16%, transparent 16.4%),
		repeating-radial-gradient(circle at 50% 50%, #231b3d 0 2px, #100c1e 2px 4px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
	transition: transform .5s var(--ease-soft);
}

.bill-row:hover .bill-disc { transform: translateX(34px) rotate(140deg); }

.bill-main { display: flex; flex-direction: column; min-width: 0; }
.bill-name { font-size: clamp(15px, 1.5vw, 19px); font-weight: 800; color: var(--cream); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-row.empty .bill-name { color: var(--fog); font-weight: 700; }
.bill-sub { display: flex; align-items: center; gap: 8px; font-style: normal; font-size: 12px; color: var(--mid); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-sep { color: rgba(246, 241, 231, .18); }

.bill-wave { height: 22px; width: 118px; opacity: .85; }
.bill-wave i { flex: 0 0 3px; background: linear-gradient(180deg, var(--hot), rgba(255, 77, 61, .35)); }
.bill-row.on .bill-wave i { background: linear-gradient(180deg, var(--acid), rgba(201, 255, 61, .28)); }
.bill-row.empty .bill-wave,
.bill-wave.idle { opacity: .3; }
.bill-row.empty .bill-wave i { animation: none !important; background: rgba(246, 241, 231, .35); }
.bill-row:hover .bill-wave i { animation-duration: .26s !important; }

.bill-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 5px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 1px;
	white-space: nowrap;
	border: 1px solid var(--hair);
	color: var(--mid);
}

.bill-row.on .bill-status { background: var(--hot); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(255, 77, 61, .3); }
.bill-row.empty .bill-status { border-style: dashed; border-color: rgba(201, 255, 61, .4); color: var(--acid); }
.bill-go { font-family: var(--font-mono); font-size: 17px; color: var(--mid); transition: transform .35s var(--ease-soft), color .35s; }
.bill-row:hover .bill-go { transform: translateX(6px); color: var(--acid); }

/* ---------- ④ 唱片墙 ---------- */
body.home-page .more-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
	gap: clamp(30px, 4vw, 52px) clamp(20px, 3vw, 34px);
	padding-top: 10px;
}

.vinyl {
	position: relative;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	isolation: isolate;
}

.vinyl-disc {
	position: absolute;
	top: 50%;
	left: 14%;
	width: 84%;
	height: 84%;
	margin-top: -42%;
	border-radius: 50%;
	z-index: 0;
	background:
		radial-gradient(circle at 50% 50%, var(--lab, #ff4d3d) 0 16%, rgba(0, 0, 0, .6) 16.4% 18%, transparent 18.4%),
		repeating-radial-gradient(circle at 50% 50%, #261d42 0 2px, #0f0b1c 2px 4px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
	transition: transform .6s var(--ease-soft);
}

.vinyl:hover .vinyl-disc { transform: translateX(30%) rotate(200deg); }

.vinyl-sleeve {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	border-radius: 4px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #1a1332;
	border: 1px solid var(--hair);
	box-shadow: var(--sh-2);
	transition: transform .5s var(--ease-soft), box-shadow .5s;
}

.vinyl:hover .vinyl-sleeve { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.vinyl.off .vinyl-sleeve { background-image: repeating-linear-gradient(135deg, rgba(246, 241, 231, .06) 0 10px, transparent 10px 20px); }
.sleeve-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 6, 15, .92) 6%, rgba(8, 6, 15, .3) 44%, transparent 72%); }

.sleeve-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 4px 9px;
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1.4px;
	background: rgba(8, 6, 15, .6);
	border: 1px solid var(--hair);
	color: var(--fog);
}

.vinyl.on .sleeve-tag { color: var(--acid); border-color: rgba(201, 255, 61, .35); }

.sleeve-foot { position: relative; z-index: 1; padding: 14px; display: flex; flex-direction: column; }
.sleeve-foot b { font-size: 14px; font-weight: 800; color: var(--cream); line-height: 1.3; }
.sleeve-foot em { font-style: normal; font-size: 11px; color: var(--mid); margin-top: 4px; }

/* ---------- 门票 ---------- */
body.home-page .dl-section { background: linear-gradient(160deg, #191233, #0d0a1c 72%); border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
body.home-page .dl-section::before { opacity: .14; }
body.home-page .dl-title { color: var(--cream); }
body.home-page .dl-title .serif { color: var(--hot); -webkit-text-fill-color: var(--hot); }
body.home-page .dl-desc { color: var(--fog); }
body.home-page .dl-item { color: var(--ink2); }
body.home-page .dl-item svg { color: var(--acid); }

.dl-ticket {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 24px;
	border-radius: var(--r-md);
	background: rgba(246, 241, 231, .05);
	border: 1px dashed rgba(246, 241, 231, .28);
}

.dl-ticket::before,
.dl-ticket::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background: #0d0a1c;
	border: 1px dashed rgba(246, 241, 231, .28);
}

.dl-ticket::before { left: -14px; }
.dl-ticket::after { right: -14px; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px; color: var(--acid); }
.ticket-tag { font-size: 11px; color: var(--mid); letter-spacing: 1px; }
.ticket-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 12px; border-top: 1px dashed rgba(246, 241, 231, .18); font-size: 11px; color: var(--mid); }
body.home-page .dl-qr-hint { color: var(--fog); }

/* ---------- 页脚 ---------- */
body.home-page .site-footer,
body.stage-sub .site-footer { background: #07050e; border-top: 1px solid var(--hair); margin: 0; border-radius: 0; }
body.home-page .site-footer::before { background: radial-gradient(ellipse at center, rgba(255, 77, 61, .14), transparent 70%); }
body.home-page .footer-brand,
body.stage-sub .footer-brand { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: var(--cream); color: var(--cream); }
body.home-page .footer-col-title,
body.stage-sub .footer-col-title { color: var(--acid); font-family: var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; font-size: 11px; }
body.home-page .footer-col a,
body.stage-sub .footer-col a { color: var(--fog); }
body.home-page .footer-col a:hover,
body.stage-sub .footer-col a:hover { color: var(--cream); }
body.home-page .footer-desc,
body.stage-sub .footer-desc { color: var(--mid); }
body.home-page .footer-bottom,
body.stage-sub .footer-bottom { border-top-color: var(--hair); color: var(--mid); font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; }
body.home-page .footer-bottom a,
body.stage-sub .footer-bottom a { color: var(--mid); }
body.home-page .toast { background: rgba(246, 241, 231, .96); color: #0b0814; }
body.home-page .toast-desc { color: rgba(11, 8, 20, .6); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
	.stage-rail { display: none; }
	.bill-wave { width: 86px; }
}

@media (max-width: 980px) {
	.stage-inner { grid-template-columns: minmax(0, 1fr); }
	.stage { padding-top: 112px; }
	.screen { min-height: 260px; }
	.bill-row { grid-template-columns: 34px 66px minmax(0, 1fr) auto; }
	.bill-wave { display: none; }
	.bill-pic { width: 66px; height: 66px; }
	.bill-disc { width: 56px; height: 56px; margin-top: -28px; right: 3px; }
	.bill-row:hover .bill-disc { transform: translateX(26px) rotate(120deg); }
	.bill-status { font-size: 10px; padding: 4px 8px; }
	.ticker-track { font-size: 11px; letter-spacing: 2.5px; gap: 18px; }
	.ticker-track span { gap: 18px; }
	.dl-ticket { width: 100%; }
}

@media (max-width: 640px) {
	.stage { padding: 98px 16px 34px; }
	.screen { aspect-ratio: 4 / 3; min-height: 0; border-radius: 10px; }
	.scr-wave { height: 30px; }
	.ly-sing,
	.ly-base { font-size: 12px; }
	.stage-foot { gap: 12px; }
	.stage-foot .btn-ink { width: 100%; justify-content: center; }
	.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero-stats .stat-value { font-size: 19px; }
	.bill { padding: 26px 16px 50px; }
	.bill-head { align-items: flex-start; flex-direction: column; gap: 12px; }
	.bill-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 13px 4px; }
	.bill-pic,
	.bill-go { display: none; }
	.bill-name { font-size: 15px; }
	.bill-sub { font-size: 11px; }
	body.home-page .more-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	body.home-page .eq i,
	.ticker-track,
	.ly-sing,
	.scr-wave i,
	.bill-wave i,
	.screen-scan,
	.screen.has-live .screen-live::before,
	.stat-meter i { animation: none; }
	.bill-disc,
	.vinyl-disc { transition: none; }
	.ly-sing { clip-path: inset(0 0 0 0); opacity: .9; }
	.screen-scan { display: none; }
	.scr-wave i,
	.bill-wave i { transform: scaleY(.7); }
}

/* ============================================================
   子页 · 现场风格（政策 / 充值 / 用户中心 / 法务）
   ============================================================ */
body.stage-sub {
	--brand-1: #c9a6ff;
	--brand-4: #6ce3ff;
	--grad-mint: linear-gradient(120deg, #c9ff3d, #6ce3ff);
	--pass: linear-gradient(150deg, #221743, #100c20 72%);
}

/* 顶部：返回式子页栏 */
body.stage-sub .topbar.sub { background: rgba(11, 8, 20, .8); box-shadow: 0 10px 34px rgba(0, 0, 0, .4); }
body.stage-sub .topbar.sub .topbar-title,
body.stage-sub .nav-title,
body.stage-sub .nav-brand-text,
body.stage-sub .topbar-title { color: var(--cream); }
body.stage-sub .topbar.sub .topbar-nav a { color: var(--fog); }
body.stage-sub .topbar.sub .topbar-nav a.active { background: var(--acid); color: #0b0814; }

body.stage-sub .nav,
body.stage-sub .page-wrapper .nav { background: rgba(11, 8, 20, .8); backdrop-filter: var(--glass); border-bottom: 1px solid var(--hair); }

body.stage-sub .nav-back,
body.stage-sub .topbar-back {
	background: rgba(246, 241, 231, .06);
	border: 1px solid var(--hair);
	color: var(--cream);
}

body.stage-sub .nav-back:hover,
body.stage-sub .topbar-back:hover { background: var(--acid); border-color: transparent; color: #0b0814; box-shadow: 0 8px 22px rgba(201, 255, 61, .2); }

body.stage-sub .nav-tab { background: rgba(246, 241, 231, .05); border: 1px solid var(--hair); color: var(--fog); }
body.stage-sub .nav-tab:hover { color: var(--cream); border-color: rgba(246, 241, 231, .26); background: rgba(246, 241, 231, .1); }
body.stage-sub .nav-tab.active { background: var(--acid); color: #0b0814; box-shadow: 0 8px 22px rgba(201, 255, 61, .2); }
body.stage-sub .nav-user { background: rgba(246, 241, 231, .06); border-color: var(--hair); box-shadow: none; }
body.stage-sub .nav-user-name { color: var(--cream); }
body.stage-sub .nav-user-coin { color: var(--acid); }
body.stage-sub .nav-user-avatar { background: var(--grad-sun); }

/* 小标题：频谱方块 */
body.stage-sub .section-title { color: var(--cream); }
body.stage-sub .section-title::before { background: var(--acid); border-radius: 3px; }

/* 通用芯片 / 按钮 */
body.stage-sub a.cat-link,
body.stage-sub .page-footer-link,
body.stage-sub .doc-footer-link { background: rgba(246, 241, 231, .05); border: 1px solid var(--hair); color: var(--fog); }
body.stage-sub a.cat-link:hover,
body.stage-sub .page-footer-link:hover,
body.stage-sub .doc-footer-link:hover { background: var(--acid); border-color: transparent; color: #0b0814; box-shadow: 0 10px 24px rgba(201, 255, 61, .2); }
body.stage-sub .page-footer-link.active,
body.stage-sub .doc-footer-link.active { background: var(--hot); border-color: transparent; color: #fff; }

body.stage-sub .action-btn.secondary,
body.stage-sub .button.secondary { background: rgba(246, 241, 231, .06); border-color: var(--hair); color: var(--cream); }
body.stage-sub .action-btn.secondary:hover,
body.stage-sub .button.secondary:hover { background: var(--cream); border-color: transparent; color: #0b0814; }
body.stage-sub .action-btn.primary,
body.stage-sub .button.primary { background: var(--grad-brand); color: #fff; }

/* ---------- 政策页 ---------- */
body.stage-sub.policy-page .page-container,
body.stage-sub.user-page .page-container { padding-top: 26px; }

.page-header {
	position: relative;
	background: var(--pass);
	border: 1px dashed rgba(246, 241, 231, .26);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	overflow: hidden;
}

.page-header::before { background: radial-gradient(circle at 50% 50%, rgba(255, 77, 61, .3), transparent 70%); opacity: .5; }

.page-label,
.doc-label { background: rgba(201, 255, 61, .1); border: 1px solid rgba(201, 255, 61, .3); color: var(--acid); font-family: var(--font-mono); letter-spacing: 1.6px; text-transform: uppercase; }
.page-title { color: var(--cream); }
.page-meta-item,
.doc-meta-item { background: rgba(246, 241, 231, .05); border-color: var(--hair); color: var(--fog); box-shadow: none; font-family: var(--font-mono); letter-spacing: .5px; }
.page-meta-item svg,
.doc-meta-item svg { color: var(--acid); }

.page-body {
	background: rgba(21, 16, 42, .72);
	border: 1px solid var(--hair);
	box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
	backdrop-filter: var(--glass);
	color: var(--ink2);
	counter-reset: sec;
}

.page-body h2 { counter-increment: sec; color: var(--cream); display: flex; align-items: baseline; gap: 12px; }
.page-body h2::before {
	content: counter(sec, decimal-leading-zero);
	flex: 0 0 auto;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: -.5px;
	color: #0b0814;
	background: var(--acid);
	padding: 2px 7px;
	border-radius: 4px;
}

.page-body h3 { color: var(--acid); font-family: var(--font-cn); letter-spacing: .5px; }
.page-body strong { color: var(--cream); }
.page-body th { background: rgba(246, 241, 231, .06); color: var(--cream); font-family: var(--font-mono); letter-spacing: .5px; }
.page-body th,
.page-body td { border-color: rgba(246, 241, 231, .12); }
.page-body a { color: var(--acid); border-bottom-color: rgba(201, 255, 61, .4); }
.page-body img { box-shadow: 0 18px 46px rgba(0, 0, 0, .5); }
.list-marker { background: var(--hot); }
.contact-card { background: rgba(255, 77, 61, .08); border-color: rgba(255, 77, 61, .28); }
.contact-card p { color: var(--ink2); }
body.stage-sub .page-footer-label,
body.stage-sub .doc-footer-link-label { color: var(--mid); font-family: var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; font-size: 11px; }

/* ---------- 法务文档页 ---------- */
body.stage-sub.doc-page {
	color-scheme: dark;
	background:
		radial-gradient(70% 44% at 50% -8%, rgba(122, 59, 255, .34), transparent 64%),
		radial-gradient(46% 36% at 6% 18%, rgba(255, 77, 61, .14), transparent 72%),
		linear-gradient(180deg, #0f0a1d 0%, #0b0814 54%, #07050f 100%) !important;
	background-attachment: fixed !important;
}
.doc-header { background: var(--pass); border-color: rgba(246, 241, 231, .16); }
.doc-header .doc-label { background: rgba(201, 255, 61, .12); color: var(--acid); }
.doc-title { color: var(--cream); }
.doc-container .doc-meta-item { background: rgba(246, 241, 231, .05); border-color: var(--hair); color: var(--fog); }
.doc-body { background: rgba(246, 241, 231, .035); border-color: var(--hair); color: rgba(246, 241, 231, .74); }
.doc-body h2 { color: var(--cream); }
.doc-body h3 { color: var(--acid); }
.doc-body strong { color: var(--cream); }
.doc-body th { background: rgba(246, 241, 231, .06); color: var(--cream); }
.doc-body th,
.doc-body td { border-color: rgba(246, 241, 231, .12); }
.img-card { background: rgba(246, 241, 231, .04); border-color: var(--hair); }
.img-card:hover { border-color: rgba(201, 255, 61, .4); }

/* ---------- 充值页 · 点歌券 + 收银台 ---------- */
.user-card {
	background: var(--pass);
	border: 1px solid var(--hair);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .46);
	position: relative;
	overflow: hidden;
}

.user-card::before { background: rgba(201, 255, 61, .1); }
.user-card::after { background: rgba(255, 77, 61, .2); }

.user-card .user-card-avatar { background: rgba(246, 241, 231, .1); border-color: rgba(201, 255, 61, .45); color: var(--acid); }
.user-card-name { color: var(--cream); }
.coin-value { font-family: var(--font-mono); letter-spacing: -1px; color: var(--acid); }
.user-card .coin-label { color: var(--fog); }

.charge-card {
	position: relative;
	background: rgba(246, 241, 231, .04);
	border: 1px dashed rgba(246, 241, 231, .24);
	box-shadow: none;
}

.charge-card::before { background: var(--acid); }
.charge-card:hover { border-color: rgba(201, 255, 61, .5); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); }
.charge-coin { color: var(--cream); font-family: var(--font-mono); letter-spacing: -1px; }
.charge-coin-label { color: var(--mid); }
.charge-price { color: var(--acid); font-family: var(--font-mono); }
.charge-bonus { color: var(--hot); }
.charge-card.selected { background: var(--acid); border-style: solid; border-color: transparent; box-shadow: 0 16px 40px rgba(201, 255, 61, .24); }
.charge-card.selected .charge-coin,
.charge-card.selected .charge-price,
.charge-card.selected .charge-bonus { color: #0b0814; }
.charge-card.selected .charge-coin-label { color: rgba(11, 8, 20, .62); }

.pay-panel { background: rgba(21, 16, 42, .8); border-color: var(--hair); box-shadow: 0 22px 60px rgba(0, 0, 0, .42); backdrop-filter: var(--glass); }
.pay-name { color: var(--cream); }
.pay-desc { color: var(--mid); }
.pay-method { background: rgba(246, 241, 231, .04); border-color: var(--hair); }
.pay-method:hover { border-color: rgba(201, 255, 61, .4); }
.pay-method.selected { background: rgba(201, 255, 61, .1); border-color: var(--acid); box-shadow: 0 10px 28px rgba(201, 255, 61, .14); }
.pay-method.selected .pay-radio { color: var(--acid); }
.submit-btn { background: var(--grad-brand); color: #fff; }

.modal-box { background: #14102a; border: 1px solid var(--hair); box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
.modal-close { background: rgba(246, 241, 231, .08); color: var(--cream); }
.modal-close:hover { background: var(--hot); color: #fff; }
.modal-subtitle { color: var(--mid); }
.pay-card-header { background: rgba(246, 241, 231, .05); }
.pay-card-label { color: var(--mid); font-family: var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; }
.pay-card-company { color: var(--cream); }
.pay-card-amount { color: var(--fog); }
.pay-card-money { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: var(--acid); color: var(--acid); font-family: var(--font-mono); }
.pay-card-coin { color: var(--hot); }
.pay-card-qr { background: #fff; border-color: rgba(255, 255, 255, .5); }
.pay-card-tip { color: var(--mid); }
.modal-countdown { background: rgba(246, 241, 231, .05); border: 1px solid var(--hair); color: var(--fog); font-family: var(--font-mono); }
.modal-countdown .time { font-family: var(--font-mono); color: var(--acid); }
.modal-countdown svg { color: var(--acid); }
.modal-status.waiting { background: rgba(255, 180, 61, .12); color: var(--amber); }
.modal-status.success { background: rgba(201, 255, 61, .14); color: var(--acid); }
.success-check { box-shadow: 0 16px 34px rgba(201, 255, 61, .28); }
body.stage-sub .rule,
body.stage-sub .countdown,
body.stage-sub .waiting { color: var(--fog); }

/* ---------- 用户中心 · 演出工作证 ---------- */
.profile-card { background: rgba(21, 16, 42, .8); border: 1px solid var(--hair); box-shadow: 0 24px 60px rgba(0, 0, 0, .44); backdrop-filter: var(--glass); }
.profile-card::before { background: var(--acid); }
.profile-name,
.nickname-display { color: var(--cream); }
.profile-id { font-family: var(--font-mono); letter-spacing: 1.2px; color: var(--mid); }
.profile-avatar { background: var(--grad-sun); box-shadow: 0 14px 32px rgba(255, 77, 61, .32); }
.avatar-overlay { background: rgba(11, 8, 20, .68); }
.nickname-edit-btn { background: rgba(201, 255, 61, .12); color: var(--acid); }
.nickname-edit-btn:hover { background: var(--acid); color: #0b0814; }
.nickname-input { background: rgba(246, 241, 231, .05); border-color: var(--hair); color: var(--cream); }
.nickname-input:focus { background: rgba(246, 241, 231, .09); border-color: var(--acid); box-shadow: 0 0 0 4px rgba(201, 255, 61, .12); }
.nickname-cancel-btn { background: rgba(246, 241, 231, .07); color: var(--fog); }
.nickname-cancel-btn:hover { background: rgba(246, 241, 231, .14); color: var(--cream); }
.nickname-save-btn { background: var(--acid); color: #0b0814; box-shadow: 0 12px 28px rgba(201, 255, 61, .22); }

body.stage-sub .profile-stats .stat-item { background: rgba(246, 241, 231, .04); border: 1px solid var(--hair); }
body.stage-sub .profile-stats .stat-value { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: var(--acid); color: var(--acid); font-family: var(--font-mono); letter-spacing: -1px; }
body.stage-sub .profile-stats .stat-label { color: var(--mid); }

/* ---------- 子页响应式 ---------- */
@media (max-width: 860px) {
	.page-header::after { display: none; }
	.charge-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
	.page-body h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	body.stage-sub .topbar-back,
	body.stage-sub .nav-back { transition: none; }
}

/* ============================================================
   直播间（原 themes/default/home/show/index.html 内联样式，已作用域化）
   ============================================================ */
body.live-room *,
body.live-room *::before,
body.live-room *::after{ padding: 0; margin: 0; box-sizing: border-box; }
body.live-room{
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--ink);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	height: 100vh;
}
body.live-room a{ text-decoration: none; color: inherit; }
body.live-room ::selection{ background: var(--red); color: #fff; }
body.live-room ::-webkit-scrollbar{ width: 4px; }
body.live-room ::-webkit-scrollbar-track{ background: var(--bg); }
body.live-room ::-webkit-scrollbar-thumb{ background: var(--faint); border-radius: 2px; }

/* ==================== TOP BAR ==================== */
body.live-room .topbar{
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 56px;
	background: rgba(250,248,244,0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--line);
	z-index: 100;
	display: flex;
	align-items: center;
	padding: 0 24px;
	gap: 16px;
}

body.live-room .topbar-back{
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	border-radius: 100px;
	background: none;
	border: 1px solid var(--faint);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink2);
	cursor: pointer;
	transition: all 0.3s;
	flex-shrink: 0;
	text-decoration: none;
	font-family: var(--font-body);
	letter-spacing: 0.5px;
}

body.live-room .topbar-back:hover{
	color: var(--red);
	border-color: var(--red);
	transform: translateX(-3px);
}

body.live-room .topbar-back svg{ transition: transform 0.3s; }
body.live-room .topbar-back:hover svg{ transform: translateX(-4px); }

body.live-room .topbar-center{
	flex: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

body.live-room .topbar-live-badge{
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 100px;
	background: var(--red);
	font-size: 10px;
	font-weight: 800;
	color: #fff;
	flex-shrink: 0;
	letter-spacing: 1px;
}

body.live-room .live-dot{
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: roomPulse 1.5s ease-in-out infinite;
}

@keyframes roomPulse{
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

body.live-room .topbar-title{
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.live-room .topbar-right{
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

body.live-room .topbar-nav{ display: flex; align-items: center; gap: 20px; margin-left: 16px; }
body.live-room .topbar-nav a{
	font-size: 13px; font-weight: 600; letter-spacing: 1px;
	color: var(--mid); transition: color 0.3s;
}
body.live-room .topbar-nav a:hover{ color: var(--ink); }
body.live-room .topbar-nav a.active{ color: var(--red); }

body.live-room .topbar-actions{ display: flex; align-items: center; gap: 8px; margin-left: 12px; }
body.live-room #navLoggedIn,
body.live-room #navLoggedOut{ display: flex; align-items: center; gap: 6px; }
body.live-room .tb-btn{
	padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 600;
	letter-spacing: 0.5px; border: none; cursor: pointer; transition: all 0.3s;
	font-family: var(--font-cn);
}
body.live-room .tb-btn.ghost{ background: none; color: var(--ink2); border: 1px solid var(--faint); }
body.live-room .tb-btn.ghost:hover{ color: var(--ink); border-color: var(--mid); }
body.live-room .tb-btn.fill{ background: var(--red); color: #fff; }
body.live-room .tb-btn.fill:hover{ opacity: 0.9; }
body.live-room .tb-user{
	display: flex; align-items: center; gap: 6px;
	padding: 3px 10px 3px 3px; border-radius: 100px;
	background: var(--red-soft); cursor: pointer;
}
body.live-room .tb-user .avatar{
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--red); display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 700; color: #fff; overflow: hidden;
}
body.live-room .tb-user .avatar img{ width: 100%; height: 100%; object-fit: cover; }
body.live-room .tb-user .uname{ font-size: 10px; font-weight: 600; color: var(--ink2); }

body.live-room .topbar-viewers{
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--mute);
	font-weight: 500;
	letter-spacing: 0.5px;
}

body.live-room .topbar-viewers .val{
	font-family: var(--font-display);
	font-size: 16px;
	font-style: italic;
	color: var(--ink);
}

/* ==================== ISSUE STRIP (below topbar) ==================== */
body.live-room .room-issue-strip{
	margin-top: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	border-bottom: 1px solid var(--line);
	background: var(--paper);
	flex-shrink: 0;
}

body.live-room .room-issue-strip .left{
	font-family: var(--font-display);
	font-size: 13px;
	font-style: italic;
	color: var(--mute);
}

body.live-room .room-issue-strip .right{
	display: flex;
	gap: 20px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--mute);
}

body.live-room .room-issue-strip .right span{
	display: flex;
	align-items: center;
	gap: 5px;
}

body.live-room .room-issue-strip .right .val{
	font-family: var(--font-display);
	font-size: 15px;
	font-style: italic;
	color: var(--ink);
	letter-spacing: 0;
	text-transform: none;
}

/* ==================== MAIN LAYOUT ==================== */
body.live-room .room-container{
	display: flex;
	flex: 1;
	overflow-y: auto;
}

body.live-room .room-main{
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	position: relative;
}

/* Decorative watermark */
body.live-room .room-main::before{
	content: '直播中';
	position: absolute;
	top: 80px;
	right: -20px;
	font-family: var(--font-display);
	font-size: clamp(100px, 18vw, 220px);
	font-style: italic;
	color: var(--ink);
	opacity: 0.025;
	pointer-events: none;
	line-height: 1;
	z-index: 0;
	letter-spacing: -4px;
}

/* ==================== VIDEO PLAYER ==================== */
body.live-room .player-wrapper{
	position: relative;
	flex-shrink: 0;
}

body.live-room .player-area{
	position: relative;
	width: 100%;
	height: 60vh;
	max-height: 60vh;
	background: #000;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
body.live-room .player-area video{
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* ==================== STREAMER OVERLAY ==================== */
body.live-room .streamer-overlay{
	position: absolute;
	top: 12px; left: 12px; right: 12px;
	display: flex; align-items: center; justify-content: space-between;
	z-index: 10;
	padding: 10px 14px;
	background: rgba(0,0,0,0.55);
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.08);
}
body.live-room .streamer-overlay-left{
	display: flex; align-items: center; gap: 12px; min-width: 0;
}
body.live-room .streamer-overlay-avatar{
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--bg); flex-shrink: 0;
	border: 2px solid rgba(255,255,255,0.3);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px; font-weight: 700; color: #fff;
	font-family: var(--font-cn);
}
body.live-room .streamer-overlay-avatar img{ width: 100%; height: 100%; object-fit: cover; }
body.live-room .streamer-overlay-info{ min-width: 0; }
body.live-room .streamer-overlay-name{
	font-size: 15px; font-weight: 700; color: #fff;
	font-family: var(--font-cn);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.live-room .streamer-overlay-meta{
	display: flex; align-items: center; gap: 6px;
	font-size: 11px; color: rgba(255,255,255,0.7);
	font-family: var(--font-cn); margin-top: 2px;
}
body.live-room .live-dot-sm{
	width: 6px; height: 6px; border-radius: 50%;
	background: #e84230; display: inline-block;
	animation: roomLivePulse 1.5s infinite;
}
body.live-room .overlay-tag{
	background: rgba(255,255,255,0.15); padding: 1px 6px;
	border-radius: 4px; font-size: 10px;
}
body.live-room .overlay-room{ font-size: 10px; }
@keyframes roomLivePulse{
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

body.live-room .player-placeholder{
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}

body.live-room .player-placeholder::before{
	content: '';
	position: absolute;
	width: 400px; height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232,66,48,0.06) 0%, transparent 70%);
	animation: roomPlayerGlow 6s ease-in-out infinite;
}

@keyframes roomPlayerGlow{
	0%, 100% { transform: scale(1); opacity: 0.6; }
	50% { transform: scale(1.15); opacity: 1; }
}

body.live-room .player-icon{
	position: relative;
	width: 80px; height: 80px;
	border-radius: 50%;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

body.live-room .player-icon svg{ opacity: 0.4; }

body.live-room .player-status{
	position: relative;
	font-size: 15px;
	color: rgba(255,255,255,0.5);
	margin-bottom: 6px;
	font-family: var(--font-cn);
	font-weight: 500;
}

body.live-room .player-sub{
	position: relative;
	font-size: 13px;
	color: rgba(255,255,255,0.3);
	font-family: var(--font-display);
	font-style: italic;
	letter-spacing: 1px;
}

/* Red accent line below player */
body.live-room .player-accent-line{
	height: 3px;
	background: var(--red);
	flex-shrink: 0;
}

body.live-room .player-controls{
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 12px 16px;
	background: linear-gradient(transparent, rgba(0,0,0,0.7));
	display: flex;
	align-items: center;
	justify-content: space-between;
}

body.live-room .control-left,
body.live-room .control-right{
	display: flex;
	align-items: center;
	gap: 12px;
}

body.live-room .ctrl-btn{
	width: 32px; height: 32px;
	border-radius: 8px;
	background: rgba(255,255,255,0.1);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s;
	color: rgba(255,255,255,0.7);
}

body.live-room .ctrl-btn:hover{ background: rgba(255,255,255,0.2); }

body.live-room .ctrl-volume{
	display: flex;
	align-items: center;
	gap: 8px;
}

body.live-room .ctrl-volume-bar{
	width: 60px; height: 3px;
	border-radius: 2px;
	background: rgba(255,255,255,0.15);
	position: relative;
}

body.live-room .ctrl-volume-fill{
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 70%;
	border-radius: 2px;
	background: var(--red);
}

body.live-room .ctrl-quality{
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	color: rgba(255,255,255,0.7);
	background: rgba(255,255,255,0.1);
	border: none;
	cursor: pointer;
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* ==================== STREAMER FEATURE SECTION ==================== */
body.live-room .streamer-feature{
	padding: 32px 24px 28px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: relative;
}

body.live-room .spread-header{
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 14px;
}

body.live-room .spread-header-left{
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.live-room .spread-label{
	font-family: var(--font-display);
	font-size: 14px;
	font-style: italic;
	color: var(--mute);
	letter-spacing: 0.5px;
}

body.live-room .spread-title{
	font-family: var(--font-cn);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.5px;
	color: var(--ink);
}

body.live-room .spread-meta-right{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

body.live-room .spread-tag{
	padding: 4px 14px;
	border-radius: 100px;
	background: var(--red-soft);
	color: var(--red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

body.live-room .spread-location{
	font-size: 11px;
	color: var(--mute);
	font-weight: 500;
	letter-spacing: 0.5px;
}

body.live-room .streamer-body{
	display: flex;
	align-items: center;
	gap: 16px;
}

body.live-room .streamer-avatar-wrap{
	position: relative;
	flex-shrink: 0;
}

body.live-room .streamer-avatar{
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--bg);
	border: 2.5px solid var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--red);
	font-weight: 700;
	overflow: hidden;
	font-family: var(--font-cn);
}

body.live-room .streamer-avatar img{
	width: 100%; height: 100%;
	object-fit: cover;
}

body.live-room .streamer-level{
	position: absolute;
	bottom: -4px; right: -4px;
	padding: 2px 8px;
	border-radius: 100px;
	background: var(--red);
	font-size: 10px;
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.5px;
}

body.live-room .streamer-detail{
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body.live-room .streamer-nicename{
	font-family: var(--font-cn);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}

body.live-room .streamer-room-id{
	font-family: var(--font-display);
	font-size: 13px;
	font-style: italic;
	color: var(--mute);
	letter-spacing: 0.5px;
}

body.live-room .streamer-actions{
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

body.live-room .btn-follow{
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 24px;
	border-radius: 100px;
	background: var(--red);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.3s;
	font-family: var(--font-body);
	letter-spacing: 0.5px;
}

body.live-room .btn-follow:hover{
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(232,66,48,0.3);
}

body.live-room .btn-share{
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--mid);
	transition: all 0.3s;
}

body.live-room .btn-share:hover{
	border-color: var(--faint);
	color: var(--ink);
}

/* ==================== GIFT SECTION ==================== */
body.live-room .gift-section{
	padding: 24px 24px 20px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

body.live-room .gift-section-header{
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

body.live-room .gift-section-label{
	font-family: var(--font-display);
	font-size: 14px;
	font-style: italic;
	color: var(--mute);
}

body.live-room .gift-section-title{
	font-family: var(--font-cn);
	font-size: 20px;
	font-weight: 900;
	color: var(--ink);
}

body.live-room .gift-grid{
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 4px;
}

body.live-room .gift-grid::-webkit-scrollbar{ display: none; }

body.live-room .gift-item{
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--bg);
	border: 1.5px solid var(--line);
	cursor: pointer;
	transition: all 0.3s;
	min-width: 80px;
	position: relative;
}

body.live-room .gift-item:hover{
	border-color: var(--faint);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

body.live-room .gift-item.selected{
	background: var(--red-soft);
	border-color: var(--red);
	box-shadow: 0 0 0 2px var(--red-soft);
}

body.live-room .gift-icon{
	width: 44px; height: 44px;
	border-radius: 50%;
	overflow: hidden;
}

body.live-room .gift-icon img{
	width: 100%; height: 100%;
	object-fit: cover;
}

body.live-room .gift-name{
	font-size: 11px;
	color: var(--mid);
	white-space: nowrap;
	font-weight: 500;
}

body.live-room .gift-price{
	font-family: var(--font-display);
	font-size: 12px;
	font-style: italic;
	color: var(--red);
	font-weight: 400;
}

body.live-room .gift-send-btn{
	flex: 0 0 auto;
	padding: 12px 28px;
	border-radius: 100px;
	background: var(--red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	margin-left: auto;
	transition: all 0.3s;
	font-family: var(--font-body);
	letter-spacing: 1px;
}

body.live-room .gift-send-btn:hover{
	box-shadow: 0 6px 20px rgba(232,66,48,0.3);
	transform: translateY(-1px);
}

/* ==================== RED LINE DIVIDER ==================== */
body.live-room .red-line{
	height: 3px;
	background: var(--red);
	flex-shrink: 0;
}

/* ==================== CHAT PANEL (RIGHT SIDEBAR) ==================== */
body.live-room .chat-panel{
	width: 340px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-left: 1px solid var(--line);
}

/* ==================== RANK PANEL ==================== */
body.live-room .rank-panel{
	flex-shrink: 0;
	background: var(--paper);
	min-height: 260px;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	border-bottom: 1px solid var(--line);
}

body.live-room .rank-panel-header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 12px;
}

body.live-room .rank-panel-header .red-line-top{
	height: 2px;
	background: var(--ink);
	margin-bottom: 0;
}

body.live-room .rank-header-left{
	display: flex;
	align-items: baseline;
	gap: 8px;
}

body.live-room .rank-spread-label{
	font-family: var(--font-cn);
	font-size: 11px;
	font-weight: 500;
	color: var(--mute);
	letter-spacing: 1px;
}

body.live-room .rank-spread-title{
	font-family: var(--font-cn);
	font-size: 15px;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: 0;
}

body.live-room .rank-header-right{
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--ink);
	background: var(--bg);
	padding: 3px 8px;
	border-radius: 4px;
}

body.live-room .rank-list{
	padding: 0 16px 12px;
	display: block !important;
	overflow: visible !important;
}

body.live-room .rank-item{
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	transition: all 0.15s;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
}

body.live-room .rank-item:last-child{ border-bottom: none; }

body.live-room .rank-item:hover{
	background: transparent;
}

body.live-room .rank-pos{
	width: 20px; height: 20px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	background: var(--bg);
	color: var(--mute);
	font-family: var(--font-body);
	flex-shrink: 0;
}

body.live-room .rank-pos.top1{ background: var(--red); color: #fff; }
body.live-room .rank-pos.top2{ background: var(--red-soft); color: var(--red); }
body.live-room .rank-pos.top3{ background: var(--bg); color: var(--mid); }

body.live-room .rank-avatar{
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--mid);
	position: relative;
	flex-shrink: 0;
	overflow: visible !important;
	font-family: var(--font-cn);
	border: 1.5px solid var(--line);
}

body.live-room .rank-item:nth-child(1) .rank-avatar{
	background: linear-gradient(135deg, #f5d98a 0%, #d4a853 50%, #c49b38 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(212,168,83,0.3);
}
body.live-room .rank-item:nth-child(1) .rank-avatar::before{
	content: '';
	position: absolute;
	inset: -10px;
	background: url('/static/index/rank/frame_gold.png') center/contain no-repeat;
	z-index: 2;
	pointer-events: none;
}

body.live-room .rank-item:nth-child(2) .rank-avatar{
	background: linear-gradient(135deg, #d0d8e8 0%, #a8b8d0 50%, #8898b8 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(136,152,184,0.3);
}
body.live-room .rank-item:nth-child(2) .rank-avatar::before{
	content: '';
	position: absolute;
	inset: -8px;
	background: url('/static/index/rank/frame_silver.png') center/contain no-repeat;
	z-index: 2;
	pointer-events: none;
}

body.live-room .rank-item:nth-child(3) .rank-avatar{
	background: linear-gradient(135deg, #e8c8a0 0%, #cd9a6c 50%, #b07848 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(176,120,72,0.3);
}
body.live-room .rank-item:nth-child(3) .rank-avatar::before{
	content: '';
	position: absolute;
	inset: -7px;
	background: url('/static/index/rank/frame_bronze.png') center/contain no-repeat;
	z-index: 2;
	pointer-events: none;
}

body.live-room .rank-item:nth-child(n+4) .rank-avatar{
	border: 1.5px solid var(--line);
}

body.live-room .rank-info{ flex: 1; min-width: 0; }
body.live-room .rank-name{
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	font-family: var(--font-cn);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
body.live-room .rank-value{
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	color: var(--mute);
	margin-top: 1px;
}

/* ==================== CHAT SECTION ==================== */
body.live-room .chat-section{
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

body.live-room .chat-section-header{
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

body.live-room .chat-section-label{
	font-family: var(--font-display);
	font-size: 12px;
	font-style: italic;
	color: var(--mute);
}

body.live-room .chat-section-title{
	font-family: var(--font-cn);
	font-size: 14px;
	font-weight: 800;
	color: var(--ink);
}

body.live-room .chat-messages{
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.live-room .chat-msg{
	display: flex;
	gap: 8px;
	animation: roomMsgIn 0.3s ease-out;
}

@keyframes roomMsgIn{
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

body.live-room .chat-msg-avatar{
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--bg);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: var(--mute);
	font-family: var(--font-cn);
}

body.live-room .chat-msg-body{
	flex: 1;
	min-width: 0;
}

body.live-room .chat-msg-name{
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 3px;
	color: var(--mid);
}

body.live-room .chat-msg-name .level-badge{
	display: inline-block;
	padding: 0 5px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	margin-right: 4px;
}

body.live-room .chat-msg-name .level-badge.gold{
	background: rgba(212,168,83,0.12);
	color: #b08930;
}

body.live-room .chat-msg-name .level-badge.purple{
	background: rgba(139,92,246,0.1);
	color: #7c5cbf;
}

body.live-room .chat-msg-text{
	font-size: 13px;
	color: var(--ink2);
	line-height: 1.5;
	word-break: break-all;
}

body.live-room .chat-msg-gift{
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--red-soft);
	border: 1px solid rgba(232,66,48,0.1);
	margin-top: 4px;
}

body.live-room .chat-msg-gift .gift-emoji{ font-size: 18px; }
body.live-room .chat-msg-gift .gift-text{
	font-size: 12px;
	color: var(--red);
	font-weight: 500;
}

body.live-room .chat-system{
	text-align: center;
	font-size: 12px;
	color: var(--mute);
	padding: 8px 12px;
	background: var(--bg);
	border-radius: 100px;
	font-style: italic;
	font-family: var(--font-display);
	letter-spacing: 0.5px;
}

body.live-room .chat-input-area{
	padding: 12px 16px;
	border-top: 1px solid var(--line);
	display: flex;
	gap: 8px;
	background: var(--paper);
}

body.live-room .chat-input{
	flex: 1;
	padding: 10px 16px;
	border-radius: 100px;
	background: var(--bg);
	border: 1px solid var(--line);
	color: var(--ink);
	font-size: 13px;
	outline: none;
	transition: border-color 0.3s;
	font-family: var(--font-body);
}

body.live-room .chat-input::placeholder{ color: var(--mute); }
body.live-room .chat-input:focus{ border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

body.live-room .chat-send-btn{
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--red);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
	flex-shrink: 0;
}

body.live-room .chat-send-btn:hover{
	transform: scale(1.05);
	box-shadow: 0 4px 16px rgba(232,66,48,0.3);
}

/* ==================== EDITORIAL FOOTER NAV ==================== */
body.live-room .editorial-footer{
	padding: 28px 24px 24px;
	background: var(--paper);
	border-top: 1px solid var(--line);
}

body.live-room .footer-top-row{
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

body.live-room .footer-brand{
	font-family: var(--font-cn);
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 6px;
}

body.live-room .footer-desc{
	font-size: 12px;
	line-height: 1.7;
	color: var(--mute);
	max-width: 260px;
}

body.live-room .footer-col{}

body.live-room .footer-col-title{
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--mute);
	margin-bottom: 10px;
}

body.live-room .footer-col a{
	display: block;
	font-size: 12px;
	color: var(--mid);
	padding: 3px 0;
	transition: color 0.2s;
}

body.live-room .footer-col a:hover{ color: var(--red); }

body.live-room .footer-bottom-row{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	flex-wrap: wrap;
	gap: 8px;
}

body.live-room .footer-bottom-row span,
body.live-room .footer-bottom-row a{
	font-size: 11px;
	color: var(--mute);
}

body.live-room .footer-bottom-row a:hover{ color: var(--red); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px){
	body.live-room .chat-panel{ display: none; }
	body.live-room .room-container{ flex-direction: column; }
	body.live-room .room-issue-strip .right{ gap: 12px; }
}

@media (max-width: 600px){
	body.live-room .topbar{ padding: 0 14px; gap: 10px; }
	body.live-room .topbar-back{ padding: 6px 14px; font-size: 12px; }
	body.live-room .room-issue-strip{
		padding: 10px 14px;
		flex-direction: column;
		gap: 6px;
		align-items: flex-start;
	}
	body.live-room .room-issue-strip .right{ font-size: 9px; gap: 10px; }
	body.live-room .streamer-overlay{ top: 8px; left: 8px; right: 8px; padding: 8px 10px; }
	body.live-room .streamer-overlay-avatar{ width: 36px; height: 36px; font-size: 14px; }
	body.live-room .streamer-overlay-name{ font-size: 13px; }
	body.live-room .streamer-overlay-meta{ font-size: 10px; }
	body.live-room .streamer-overlay-eq { display: none; }
	body.live-room .gift-section{ padding: 16px 14px; }
	body.live-room .editorial-footer{ padding: 20px 14px 18px; }
	body.live-room .footer-top-row{ flex-direction: column; gap: 16px; }
	body.live-room .room-main::before{ display: none; }
}

/* ==================== GIFT EFFECT ANIMATION ==================== */
body.live-room .gift-effect-container{
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	pointer-events: none;
	z-index: 20;
	overflow: hidden;
}
body.live-room .gift-effect{
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%) scale(0);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	animation: roomGiftBurst 2.5s ease-out forwards;
	filter: drop-shadow(0 0 30px rgba(232,66,48,0.5));
}
body.live-room .gift-effect-emoji{
	font-size: 100px;
	line-height: 1;
	animation: roomGiftEmojiPop 2.5s ease-out forwards;
}
body.live-room .gift-effect-info{
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(232,66,48,0.3);
	border-radius: 30px;
	padding: 8px 24px;
	white-space: nowrap;
}
body.live-room .gift-effect-name{
	font-family: var(--font-cn);
	font-size: 16px;
	font-weight: 600;
	color: #d4a853;
}
body.live-room .gift-effect-action{
	font-size: 14px;
	color: rgba(255,255,255,0.7);
}
body.live-room .gift-effect-giftname{
	font-family: var(--font-cn);
	font-size: 18px;
	font-weight: 700;
	color: var(--red);
}
body.live-room .gift-effect-particles{
	position: absolute;
	top: 50%; left: 50%;
	width: 0; height: 0;
}
body.live-room .gift-particle{
	position: absolute;
	width: 8px; height: 8px;
	border-radius: 50%;
	animation: roomParticleFly 1.5s ease-out forwards;
}
@keyframes roomGiftBurst{
	0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
	15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
	25% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	75% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}
@keyframes roomGiftEmojiPop{
	0% { transform: scale(0) rotate(-30deg); }
	15% { transform: scale(1.4) rotate(10deg); }
	25% { transform: scale(1) rotate(0deg); }
	35% { transform: scale(1.15) rotate(-5deg); }
	45% { transform: scale(1) rotate(0deg); }
	75% { transform: scale(1) rotate(0deg); opacity: 1; }
	100% { transform: scale(0.5) rotate(10deg); opacity: 0; }
}
@keyframes roomParticleFly{
	0% { transform: translate(0, 0) scale(1); opacity: 1; }
	100% { transform: translate(var(--tx, 100px), var(--ty, -80px)) scale(0); opacity: 0; }
}
body.live-room .gift-combo{
	position: absolute;
	top: 40%; right: 15%;
	font-family: var(--font-cn);
	font-size: 64px;
	font-weight: 900;
	color: #d4a853;
	text-shadow: 0 0 20px rgba(212,168,83,0.6), 0 0 40px rgba(232,66,48,0.4);
	animation: roomComboPop 1s ease-out forwards;
	pointer-events: none;
	z-index: 21;
}
@keyframes roomComboPop{
	0% { transform: scale(0) rotate(-15deg); opacity: 0; }
	30% { transform: scale(1.3) rotate(5deg); opacity: 1; }
	50% { transform: scale(1) rotate(0deg); opacity: 1; }
	80% { transform: scale(1) rotate(0deg); opacity: 1; }
	100% { transform: scale(0.8) translateY(-20px); opacity: 0; }
}

/* ============================================================
   直播间 · 现场风格覆盖
   ============================================================ */
body.live-room {
	color: var(--cream);
	background:
		radial-gradient(64% 40% at 50% -6%, rgba(122, 59, 255, .3), transparent 64%),
		radial-gradient(40% 32% at 4% 12%, rgba(255, 77, 61, .14), transparent 72%),
		linear-gradient(180deg, #0f0a1d 0%, #0b0814 56%, #08060f 100%) !important;
	background-attachment: fixed !important;
}

body.live-room ::-webkit-scrollbar-track { background: transparent; }
body.live-room ::-webkit-scrollbar-thumb { background: rgba(246, 241, 231, .18); }
body.live-room ::selection { background: var(--acid); color: #0b0814; }

/* 顶栏 */
body.live-room .topbar {
	background: rgba(11, 8, 20, .82);
	box-shadow: 0 1px 0 var(--hair), 0 12px 34px rgba(0, 0, 0, .45);
	border-bottom: 1px solid var(--hair);
}

body.live-room .topbar-title { color: var(--cream); }
body.live-room .topbar-back { background: rgba(246, 241, 231, .06); border-color: var(--hair); color: var(--cream); }
body.live-room .topbar-back:hover { background: var(--acid); border-color: transparent; color: #0b0814; }
body.live-room .topbar-nav a { color: var(--fog); }
body.live-room .topbar-nav a:hover { color: var(--cream); background: rgba(246, 241, 231, .07); }
body.live-room .topbar-viewers { background: rgba(246, 241, 231, .06); border: 1px solid var(--hair); color: var(--fog); }
body.live-room .topbar-viewers .val { font-family: var(--font-mono); color: var(--acid); letter-spacing: .5px; }
body.live-room .tb-btn.ghost { background: rgba(246, 241, 231, .06); color: var(--cream); border-color: var(--hair); }
body.live-room .tb-btn.ghost:hover { background: rgba(246, 241, 231, .12); border-color: rgba(246, 241, 231, .28); }
body.live-room .tb-btn.fill { background: var(--hot); box-shadow: 0 10px 26px rgba(255, 77, 61, .34); }
body.live-room .tb-user { background: rgba(246, 241, 231, .06); border-color: var(--hair); }
body.live-room .tb-user .uname { color: var(--cream); }
body.live-room .topbar-live-badge { background: var(--hot); box-shadow: 0 6px 18px rgba(255, 77, 61, .34); font-family: var(--font-mono); }

/* 机位条 */
body.live-room .room-issue-strip {
	background: rgba(246, 241, 231, .04);
	border-bottom: 1px solid var(--hair);
	color: var(--fog);
}

body.live-room .room-issue-strip .left { color: var(--cream); font-family: var(--font-cn); }
body.live-room .room-issue-strip .right { font-family: var(--font-mono); letter-spacing: 1px; color: var(--mid); }
body.live-room .room-issue-strip .right .val { color: var(--acid); }

/* 监视器 */
body.live-room .player-area { border: 1px solid var(--hair); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }

/* 取景框：四角 L 形标记 + 扫描线，与首页大屏同一套语言 */
body.live-room .player-area::after {
	content: '';
	position: absolute;
	inset: 10px;
	z-index: 6;
	pointer-events: none;
	opacity: .55;
	background:
		linear-gradient(var(--acid), var(--acid)) 0 0 / 18px 2px no-repeat,
		linear-gradient(var(--acid), var(--acid)) 0 0 / 2px 18px no-repeat,
		linear-gradient(var(--acid), var(--acid)) 100% 0 / 18px 2px no-repeat,
		linear-gradient(var(--acid), var(--acid)) 100% 0 / 2px 18px no-repeat,
		linear-gradient(var(--acid), var(--acid)) 0 100% / 18px 2px no-repeat,
		linear-gradient(var(--acid), var(--acid)) 0 100% / 2px 18px no-repeat,
		linear-gradient(var(--acid), var(--acid)) 100% 100% / 18px 2px no-repeat,
		linear-gradient(var(--acid), var(--acid)) 100% 100% / 2px 18px no-repeat;
}

body.live-room .player-area::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 4px);
	opacity: .34;
	mix-blend-mode: multiply;
}

body.live-room .player-placeholder { background: radial-gradient(70% 60% at 50% 20%, rgba(122, 59, 255, .28), transparent 66%), #100c20; }
body.live-room .player-status { color: var(--cream); }
body.live-room .player-sub { color: var(--mid); font-family: var(--font-mono); letter-spacing: 1.4px; }
body.live-room .player-accent-line { background: linear-gradient(90deg, var(--hot), var(--amber) 46%, var(--acid)); height: 2px; }
body.live-room .ctrl-btn { background: rgba(246, 241, 231, .07); border: 1px solid var(--hair); color: var(--cream); }
body.live-room .ctrl-btn:hover { background: var(--acid); border-color: transparent; color: #0b0814; }
body.live-room .ctrl-btn svg { fill: currentColor; stroke: none; }
body.live-room .ctrl-volume-bar { background: rgba(246, 241, 231, .14); }
body.live-room .ctrl-volume-fill { background: var(--acid); }
body.live-room .ctrl-quality { background: rgba(246, 241, 231, .07); border: 1px solid var(--hair); color: var(--fog); font-family: var(--font-mono); letter-spacing: 1px; }

body.live-room .streamer-overlay { background: rgba(11, 8, 20, .62); border: 1px solid var(--hair); backdrop-filter: blur(14px); }
body.live-room .streamer-overlay-avatar { border-color: rgba(201, 255, 61, .5); color: var(--acid); }
body.live-room .streamer-overlay-name { color: var(--cream); }
body.live-room .streamer-overlay-meta { color: var(--fog); }
body.live-room .overlay-tag,
body.live-room .overlay-room { font-family: var(--font-mono); letter-spacing: 1px; }
body.live-room .overlay-room { color: var(--acid); }
/* 画面左上的取景字幕条（主播身份已移至左栏工牌） */
body.live-room .streamer-overlay {
	right: auto;
	justify-content: flex-start;
	gap: 14px;
	top: 14px; left: 14px;
	padding: 8px 13px 8px 11px;
	border-radius: 2px;
	border: 1px solid rgba(246, 241, 231, .18);
	border-left: 2px solid var(--acid);
	background: rgba(11, 8, 20, .6);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}
body.live-room .streamer-overlay-avatar { width: 38px; height: 38px; border-width: 1px; border-color: rgba(246, 241, 231, .3); }
body.live-room .streamer-overlay-eq { flex: 0 0 auto; height: 15px; color: var(--acid); }

/* 面板通用 */
body.live-room .gift-section,
body.live-room .rank-panel,
body.live-room .chat-section {
	background: rgba(21, 16, 42, .74);
	border: 1px solid var(--hair);
	box-shadow: 0 22px 56px rgba(0, 0, 0, .4);
	backdrop-filter: var(--glass);
}

body.live-room .gift-section-label,
body.live-room .chat-section-label,
body.live-room .rank-spread-label {
	background: rgba(201, 255, 61, .1);
	border: 1px solid rgba(201, 255, 61, .3);
	color: var(--acid);
	font-family: var(--font-mono);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

body.live-room .gift-section-title,
body.live-room .chat-section-title,
body.live-room .rank-spread-title { color: var(--cream); }

/* 弹幕区标题后的实时频谱 */
body.live-room .chat-section-title { display: inline-flex; align-items: center; gap: 9px; }

body.live-room .chat-section-title::after {
	content: '';
	width: 26px;
	height: 11px;
	background: linear-gradient(to top, var(--acid) 0 100%);
	-webkit-mask-image: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 7px);
	mask-image: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 7px);
	animation: roomEqStrip 1.1s steps(5, end) infinite;
}

@keyframes roomEqStrip {
	0% { height: 4px; }
	25% { height: 11px; }
	50% { height: 6px; }
	75% { height: 11px; }
	100% { height: 5px; }
}

/* 礼物 · 点歌券 */
body.live-room .gift-item { background: rgba(246, 241, 231, .04); border: 1px dashed rgba(246, 241, 231, .22); }
body.live-room .gift-item:hover { border-color: rgba(201, 255, 61, .5); background: rgba(201, 255, 61, .08); }
body.live-room .gift-item.selected { background: var(--acid); border-style: solid; border-color: transparent; box-shadow: 0 14px 32px rgba(201, 255, 61, .22); }
body.live-room .gift-name { color: var(--cream); }
body.live-room .gift-item.selected .gift-name { color: #0b0814; }
body.live-room .gift-price { color: var(--amber); font-family: var(--font-mono); letter-spacing: .5px; }
body.live-room .gift-item.selected .gift-price { color: rgba(11, 8, 20, .66); }
body.live-room .gift-send-btn { background: var(--hot); color: #fff; box-shadow: 0 12px 28px rgba(255, 77, 61, .3); }
body.live-room .gift-send-btn:hover { background: var(--grad-brand); }

/* 贡献榜 */
body.live-room .rank-panel-header { border-bottom-color: var(--hair); }
body.live-room .rank-header-right { color: var(--mid); font-family: var(--font-mono); letter-spacing: 1.4px; }
body.live-room .rank-item { border-bottom-color: var(--hair); }
body.live-room .rank-item:hover { background: rgba(246, 241, 231, .05); }
body.live-room .rank-name { color: var(--ink2); }
body.live-room .rank-value { color: var(--acid); font-family: var(--font-mono); }
body.live-room .rank-pos.top1 { background: var(--amber); color: #171006; }
body.live-room .rank-pos.top2 { background: rgba(246, 241, 231, .78); color: #0b0814; }
body.live-room .rank-pos.top3 { background: rgba(255, 138, 43, .5); color: #171006; }
body.live-room .rank-avatar { background: rgba(246, 241, 231, .08); border-color: var(--hair); color: var(--fog); }

/* 弹幕 */
body.live-room .chat-messages { background: rgba(11, 8, 20, .34); border-color: var(--hair); }
body.live-room .chat-msg-text { color: var(--ink2); }
body.live-room .chat-msg-name { color: var(--cream); }
body.live-room .chat-msg-avatar { background: rgba(246, 241, 231, .08); border: 1px solid var(--hair); color: var(--fog); }
body.live-room .chat-msg-gift { background: rgba(255, 77, 61, .12); border: 1px solid rgba(255, 77, 61, .3); }
body.live-room .chat-msg-gift .gift-text { color: var(--hot); }
body.live-room .chat-system { color: var(--mid); font-family: var(--font-mono); letter-spacing: 1px; }
body.live-room .chat-input { background: rgba(246, 241, 231, .05); border-color: var(--hair); color: var(--cream); }
body.live-room .chat-input::placeholder { color: var(--mid); }
body.live-room .chat-input:focus { border-color: var(--acid); background: rgba(246, 241, 231, .09); box-shadow: 0 0 0 3px rgba(201, 255, 61, .12); }
body.live-room .chat-send-btn { background: var(--hot); box-shadow: 0 10px 24px rgba(255, 77, 61, .3); }
body.live-room .chat-send-btn:hover { background: var(--grad-brand); }
body.live-room .level-badge { font-family: var(--font-mono); }

/* 页脚 / 特效 */
body.live-room .editorial-footer { background: #07050e; border-top: 1px solid var(--hair); }
body.live-room .footer-brand { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: var(--cream); color: var(--cream); }
body.live-room .footer-desc,
body.live-room .footer-bottom-row,
body.live-room .footer-bottom-row a { color: var(--mid); }
body.live-room .footer-col-title { color: var(--acid); font-family: var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; font-size: 11px; }
body.live-room .footer-col a { color: var(--fog); }
body.live-room .footer-col a:hover { color: var(--cream); }
body.live-room .gift-effect-name,
body.live-room .gift-effect-giftname { color: var(--cream); }
body.live-room .gift-combo { color: var(--acid); font-family: var(--font-mono); }

@media (max-width: 900px) {
	body.live-room .topbar-nav { display: none; }
	body.live-room .chat-section-title::after { display: none; }
}

/* ============================================================
   直播间 · 布局 v2 —— 调音台（左证 / 中舞台 / 右弹幕 / 底通道台）
   ============================================================ */

/* 外壳：视口内固定的四段式控制台 */
body.live-room .room-container {
  display: grid;
  grid-template-columns: minmax(0, 272px) minmax(0, 1fr) minmax(0, 336px);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "side stage chat"
    "deck deck  deck";
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ---------- 左：主播证 + 场规 + 贡献榜 ---------- */
body.live-room .room-side {
  grid-area: side;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px 18px 20px;
  border-right: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(246, 241, 231, .04), rgba(246, 241, 231, 0) 46%);
}

body.live-room .side-card {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  padding: 13px 14px 15px;
  border: 1px solid var(--hair);
  border-radius: 3px 3px 3px 16px;
  background: linear-gradient(152deg, #241847 0%, #140f28 68%, #0d0a18 100%);
  box-shadow: var(--sh-1);
}
body.live-room .side-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
}
body.live-room .side-card::after {
  content: 'PASS';
  position: absolute;
  right: -4px; bottom: -16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 54px;
  letter-spacing: 1px;
  color: var(--cream);
  opacity: .07;
  pointer-events: none;
}

body.live-room .side-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(246, 241, 231, .2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
}
body.live-room .side-card-kind { color: var(--acid); }
body.live-room .side-card-no { color: var(--fog); }

body.live-room .side-host {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0 12px;
}
body.live-room .side-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--grad-candy);
  color: #fff;
  font-family: var(--font-cn);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(246, 241, 231, .22), 0 10px 22px rgba(0, 0, 0, .46);
}
body.live-room .side-avatar img { width: 100%; height: 100%; object-fit: cover; }
body.live-room .side-host-info { flex: 1; min-width: 0; }
body.live-room .side-host-name {
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.2;
}
body.live-room .side-host-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--mute);
}
body.live-room .side-tag {
  padding: 2px 7px;
  border: 1px solid rgba(201, 255, 61, .42);
  border-radius: 2px;
  color: var(--acid);
  font-size: 10px;
}

body.live-room .side-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px dashed rgba(246, 241, 231, .2);
}
body.live-room .side-rules li {
  position: relative;
  padding-left: 32px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--fog);
}
body.live-room .rule-no {
  position: absolute;
  left: 0; top: 2px;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(246, 241, 231, .74);
  color: #0b0814;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
}

/* 榜单移入左栏后改为「setlist」样式 */
body.live-room .rank-panel {
  flex-shrink: 0;
  min-height: 0;
  padding: 0 12px 8px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: rgba(11, 8, 20, .4);
}
body.live-room .rank-panel-header { padding: 12px 2px 11px; border-bottom: 1px dashed rgba(246, 241, 231, .16); }
body.live-room .rank-list { padding-bottom: 2px; }
body.live-room .rank-item { gap: 9px; padding: 9px 2px; }

/* ---------- 中：舞台 ---------- */
body.live-room .room-main {
  grid-area: stage;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 18px clamp(14px, 2vw, 28px) 15px;
  overflow: hidden;
}
body.live-room .room-main::before {
  content: 'ON AIR';
  top: auto;
  right: 6px;
  bottom: 46px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: clamp(44px, 7vw, 96px);
  letter-spacing: -.02em;
  opacity: .05;
}
body.live-room .player-wrapper {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.live-room .player-area {
  flex: 1;
  height: auto;
  max-height: none;
  min-height: clamp(200px, 38vh, 560px);
}
body.live-room .player-accent-line { margin-top: 10px; }
body.live-room .ctrl-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(246, 241, 231, .5);
}

/* ---------- 右：弹幕 ---------- */
body.live-room .chat-panel {
  grid-area: chat;
  width: auto;
  min-height: 0;
  min-width: 0;
  border-left: 1px solid var(--hair);
  background: rgba(11, 8, 20, .46);
}

/* ---------- 底：礼物通道台 ---------- */
body.live-room .gift-section {
  grid-area: deck;
  padding: 13px clamp(14px, 2vw, 28px) 16px;
  background: linear-gradient(180deg, rgba(11, 8, 20, .5), rgba(21, 16, 42, .94));
  border-top: 1px solid var(--hair);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .42);
  max-height: 44vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
body.live-room .gift-section-header {
  align-items: center;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(246, 241, 231, .16);
}
body.live-room .gift-rail-act { display: flex; align-items: center; gap: 16px; }
body.live-room .gift-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mid);
}
body.live-room .gift-send-btn {
  flex: 0 0 auto;
  margin-left: 0;
  padding: 9px 26px;
  border-radius: 2px;
  background: var(--hot);
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  box-shadow: 0 10px 26px rgba(255, 77, 61, .28);
}

/* 通道条：自动折行，全部礼物都露出来（窄屏才退回横向滑动） */
body.live-room .gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  grid-auto-rows: min-content;
  align-content: start;
  gap: 9px;
  overflow: visible;
  padding-bottom: 0;
}
body.live-room .gift-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "ic nm"
    "ic pr";
  align-items: center;
  column-gap: 11px;
  row-gap: 1px;
  min-width: 0;
  padding: 9px 12px 9px 26px;
  border-radius: 3px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(246, 241, 231, .055), rgba(246, 241, 231, .015));
  box-shadow: none;
}
body.live-room .gift-icon {
  grid-area: ic;
  width: 40px; height: 40px;
}
body.live-room .gift-name {
  grid-area: nm;
  align-self: end;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-cn);
  color: var(--ink2);
  overflow: hidden;
}
body.live-room .gift-price {
  grid-area: pr;
  align-self: start;
  font-size: 11px;
  font-style: normal;
}
body.live-room .gift-item::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(246, 241, 231, .26), rgba(246, 241, 231, .05));
}
body.live-room .gift-item::after {
  content: '';
  position: absolute;
  left: 4px; bottom: 12px;
  width: 10px; height: 6px;
  border-radius: 1px;
  background: var(--fog);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .55);
  transition: transform .42s var(--ease-soft), background .3s, box-shadow .3s;
}
body.live-room .gift-item:hover { transform: none; border-color: rgba(201, 255, 61, .4); background: rgba(201, 255, 61, .06); }
body.live-room .gift-item:hover::after { transform: translateY(-12px); background: var(--amber); }
body.live-room .gift-item.selected {
  border-color: rgba(201, 255, 61, .55);
  background: linear-gradient(180deg, rgba(201, 255, 61, .18), rgba(201, 255, 61, .04));
  box-shadow: inset 2px 0 0 var(--acid), 0 12px 26px rgba(0, 0, 0, .45);
  transform: none;
}
body.live-room .gift-item.selected::after {
  transform: translateY(-30px);
  background: var(--acid);
  box-shadow: 0 0 14px rgba(201, 255, 61, .6);
}
body.live-room .gift-item.selected .gift-name { color: var(--acid); }
body.live-room .gift-item.selected .gift-price { color: var(--cream); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  body.live-room .room-container {
    grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(150px, 26vh) auto;
    grid-template-areas:
      "side stage"
      "chat chat"
      "deck deck";
  }
  body.live-room .chat-panel {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  body.live-room .room-side { padding: 16px 12px 16px 16px; }
}

@media (max-width: 860px) {
  body.live-room { height: auto; min-height: 100vh; }
  body.live-room .room-container {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  body.live-room .room-main {
    order: 1;
    overflow: visible;
    padding: 14px;
  }
  body.live-room .room-side {
    order: 2;
    overflow: visible;
    border-right: 0;
    border-top: 1px solid var(--hair);
    padding: 16px 14px;
  }
  body.live-room .chat-panel {
    order: 3;
    border-top: 1px solid var(--hair);
  }
  body.live-room .player-area { min-height: 0; height: 58vw; max-height: 420px; }
  body.live-room .room-main::before { display: none; }
  body.live-room .chat-messages { max-height: 46vh; }
  body.live-room .gift-section {
    position: sticky;
    bottom: 0;
    z-index: 20;
    max-height: none;
    overflow: visible;
    padding: 12px 14px 14px;
  }
  /* 手机上退回单通道横向滑动：露出半格 + 细滚动条作为可滑动的提示 */
  body.live-room .gift-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(146px, 172px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
    scrollbar-width: thin;
    mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent);
  }
  body.live-room .gift-item { scroll-snap-align: start; }
  body.live-room .gift-hint { display: none; }
}

body.live-room .gift-section-header .spread-title { font-size: 20px; letter-spacing: 0; }
body.live-room .chat-section-header .chat-section-title { font-size: 15px; }

/* ============================================================
   登录 / 注册弹层 · 现场版（首页 + 直播间）
   直播间有 body.live-room * 的 padding/margin 重置（0,1,1），
   未作用域的 .auth-* 规则（0,1,0）会被压掉，故这里逐元素显式给尺寸。
   ============================================================ */
body.home-page .auth-overlay,
body.live-room .auth-overlay {
  z-index: 900;
  padding: 20px;
  background: rgba(6, 4, 12, .74);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}
body.home-page .auth-modal,
body.live-room .auth-modal {
  position: relative;
  width: min(408px, 100%);
  margin: 0;
  padding: 28px 26px 24px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: radial-gradient(130% 80% at 50% -10%, rgba(122, 59, 255, .3), transparent 62%), #14102a;
  box-shadow: 0 46px 110px rgba(0, 0, 0, .68);
}
body.home-page .auth-modal::before,
body.live-room .auth-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  padding: 0; margin: 0;
  background: var(--grad-brand);
}
body.home-page .auth-modal::after,
body.live-room .auth-modal::after {
  content: 'MEMBERS ONLY';
  position: absolute;
  right: 16px; bottom: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--cream);
  opacity: .16;
  pointer-events: none;
}
body.home-page .auth-close,
body.live-room .auth-close {
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  padding: 0; margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: rgba(246, 241, 231, .05);
  color: var(--fog);
}
body.home-page .auth-close:hover,
body.live-room .auth-close:hover { background: var(--hot); border-color: transparent; color: #fff; transform: none; }

body.home-page .auth-tabs,
body.live-room .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: none;
}
body.home-page .auth-tab,
body.live-room .auth-tab {
  padding: 12px 0;
  margin: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--mute);
}
body.home-page .auth-tab.active,
body.live-room .auth-tab.active {
  background: none;
  border-bottom-color: var(--acid);
  border-radius: 0;
  box-shadow: none;
  color: var(--acid);
}

body.home-page .auth-form,
body.live-room .auth-form { gap: 13px; }
body.home-page .auth-input-group,
body.live-room .auth-input-group {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
}
body.home-page .auth-input-group > .auth-input,
body.live-room .auth-input-group > .auth-input { width: 100%; }
body.home-page .auth-input,
body.live-room .auth-input {
  padding: 12px 14px;
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: rgba(246, 241, 231, .05);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
}
body.home-page .auth-input::placeholder,
body.live-room .auth-input::placeholder { color: var(--mid); }
body.home-page .auth-input:focus,
body.live-room .auth-input:focus {
  outline: 0;
  border-color: var(--acid);
  background: rgba(246, 241, 231, .09);
  box-shadow: 0 0 0 3px rgba(201, 255, 61, .12);
}
/* 验证码按钮与输入框同排（原版是绝对定位，共享层写成了列内兄弟） */
body.home-page .auth-input-group:has(.auth-code-btn),
body.live-room .auth-input-group:has(.auth-code-btn) {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
body.home-page .auth-input-group:has(.auth-code-btn) .auth-input,
body.live-room .auth-input-group:has(.auth-code-btn) .auth-input { flex: 1; min-width: 0; }
body.home-page .auth-code-btn,
body.live-room .auth-code-btn {
  flex: 0 0 auto;
  height: auto;
  padding: 0 14px;
  margin: 0;
  border: 1px solid rgba(255, 180, 61, .45);
  border-radius: 3px;
  background: rgba(255, 180, 61, .13);
  color: var(--amber);
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
body.home-page .auth-code-btn:hover:not(:disabled),
body.live-room .auth-code-btn:hover:not(:disabled) { transform: none; background: rgba(255, 180, 61, .22); }
body.home-page .auth-code-btn:disabled,
body.live-room .auth-code-btn:disabled {
  border-color: var(--hair);
  background: rgba(246, 241, 231, .04);
  color: var(--mid);
  cursor: not-allowed;
}
body.home-page .auth-footer .auth-code-btn,
body.live-room .auth-footer .auth-code-btn { flex: 0 0 auto; }

body.home-page .auth-submit,
body.live-room .auth-submit {
  width: 100%;
  margin: 8px 0 0;
  padding: 14px;
  border: 0;
  border-radius: 2px;
  background: var(--hot);
  box-shadow: 0 14px 34px rgba(255, 77, 61, .28);
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #fff;
}
body.home-page .auth-submit:hover,
body.live-room .auth-submit:hover { transform: none; background: var(--grad-sun); box-shadow: 0 16px 40px rgba(255, 138, 43, .34); }
body.home-page .auth-submit:disabled,
body.live-room .auth-submit:disabled { opacity: .55; box-shadow: none; }

body.home-page .auth-error,
body.live-room .auth-error {
  display: none;
  padding: 9px 11px;
  margin: 0;
  border-left: 2px solid var(--hot);
  border-radius: 0 3px 3px 0;
  background: rgba(255, 77, 61, .13);
  font-size: 12px;
  font-weight: 600;
  color: #ffb0a6;
}
body.home-page .auth-error.show,
body.live-room .auth-error.show,
body.home-page .auth-error:not(:empty),
body.live-room .auth-error:not(:empty) { display: block; }
body.home-page .auth-footer,
body.live-room .auth-footer { gap: 8px; font-size: 12px; color: var(--mute); }
body.home-page .auth-footer label,
body.live-room .auth-footer label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
}
body.home-page .auth-footer input[type="checkbox"],
body.live-room .auth-footer input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--acid); }
body.home-page .auth-footer a,
body.live-room .auth-footer a { color: var(--acid); }
body.home-page .auth-footer a:hover,
body.live-room .auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   霓虹重绘素材适配（/static/gifts/*.png · /static/index/rank/frame_*.png）
   新图自带外发光，圆形裁切和金属底盘都会把它压掉
   ============================================================ */
body.live-room .gift-icon { border-radius: 0; overflow: visible; }
body.live-room .gift-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s var(--ease-soft);
}
body.live-room .gift-item:hover .gift-icon img { transform: scale(1.1); }
body.live-room .gift-item.selected .gift-icon img { transform: scale(1.14) translateY(-1px); }

body.live-room .rank-item:nth-child(1) .rank-avatar,
body.live-room .rank-item:nth-child(2) .rank-avatar,
body.live-room .rank-item:nth-child(3) .rank-avatar {
  background: rgba(11, 8, 20, .8);
  border: 1px solid var(--hair);
  color: var(--cream);
  box-shadow: none;
}

/* ============================================================
   子页布局 v3 · 个人中心（工作证 + 数据区）/ 充值（档位券 + 结算台）
   仅作用域于 body.user-page / body.recharge-page，配色沿用 stage-sub
   ============================================================ */

/* ---------- 个人中心 · 双栏 ---------- */
body.user-page .page-container {
	max-width: 1180px;
	padding-top: 30px;
	padding-bottom: 90px;
}

.profile-grid {
	display: grid;
	grid-template-columns: 352px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

body.user-page .profile-card {
	max-width: none;
	margin: 0;
	padding: 0 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pass-flag {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 -24px 4px;
	padding: 13px 24px;
	background: rgba(246, 241, 231, .05);
	border-bottom: 1px solid var(--hair);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--mid);
}

.pass-flag em { font-style: normal; letter-spacing: 1.4px; color: var(--acid); }

body.user-page .profile-header {
	flex-wrap: nowrap;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

body.user-page .profile-info { flex: none; width: 100%; }
body.user-page .profile-name,
body.user-page .nickname-display { justify-content: center; font-size: 22px; }
body.user-page .profile-id { margin-top: 6px; letter-spacing: .4px; }

.pass-sign {
	padding: 15px 17px;
	border-radius: var(--r-sm);
	background: rgba(11, 8, 20, .34);
	border: 1px solid var(--hair);
}

.pass-label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--mid);
}

.pass-sign-text {
	margin: 0;
	font-family: var(--font-cn);
	font-size: 14px;
	line-height: 1.7;
	color: var(--fog);
	word-break: break-word;
}

/* 票根撕口 */
.pass-perf {
	position: relative;
	height: 1px;
	margin: 0 -24px;
	background: repeating-linear-gradient(90deg, rgba(246, 241, 231, .22) 0 8px, transparent 8px 16px);
}

.pass-perf::before,
.pass-perf::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border-radius: 50%;
	background: #0d0a1a;
}

.pass-perf::before { left: -11px; }
.pass-perf::after { right: -11px; }

.pass-stub { display: grid; gap: 11px; }

.stub-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.stub-row span { flex: 0 0 auto; font-size: 13px; color: var(--mid); }
.stub-row b {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -.2px;
	color: var(--cream);
	text-align: right;
	word-break: break-all;
}

.profile-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.wallet-card {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	flex-wrap: wrap;
	padding: 26px clamp(20px, 3vw, 30px);
	border-radius: var(--r-xl);
	background: var(--grad-brand);
	box-shadow: 0 26px 64px rgba(255, 77, 61, .24);
	color: #fff;
}

.wallet-card::before {
	content: '';
	position: absolute;
	right: -50px;
	top: -80px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	filter: blur(8px);
}

.wallet-card::after {
	content: '';
	position: absolute;
	left: 24%;
	bottom: -90px;
	width: 210px;
	height: 170px;
	border-radius: 50%;
	background: rgba(11, 8, 20, .2);
	filter: blur(26px);
}

.wallet-body { position: relative; z-index: 1; }
.wallet-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; opacity: .84; }

.wallet-num {
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: clamp(36px, 5.2vw, 54px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -2px;
}

.wallet-num i {
	margin-left: 8px;
	font-family: var(--font-cn);
	font-size: 14px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: .5px;
	opacity: .85;
}

.wallet-cta {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--pill);
	background: #0b0814;
	color: var(--acid);
	font-family: var(--font-cn);
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 1px;
	cursor: pointer;
	box-shadow: 0 16px 34px rgba(11, 8, 20, .3);
	transition: transform .3s var(--ease-pop), box-shadow .3s;
}

.wallet-cta:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(11, 8, 20, .42); }

body.user-page .profile-stats { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
body.user-page .profile-stats .stat-item { padding: 20px 14px; }
body.user-page .action-bar { margin-top: 0; }
body.user-page .action-btn { flex: 1 1 100%; }

/* ---------- 充值台 · 档位券 + 结算 ---------- */
body.recharge-page .page-content { padding-top: 30px; }

body.recharge-page .recharge-layout {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 0 90px;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: 24px;
}

.panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
}

.panel-head .section-title { margin-bottom: 0; }
.panel-hint { font-size: 12px; color: var(--mid); }
body.recharge-page .recharge-left > .panel-head { margin-bottom: 2px; }
body.recharge-page .section-title { margin-bottom: 12px; }

body.recharge-page .charge-grid { display: flex; flex-direction: column; gap: 12px; }

body.recharge-page .charge-card {
	display: grid;
	grid-template-columns: minmax(118px, auto) minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	padding: 18px 22px;
	text-align: left;
	transition: transform .28s var(--ease-pop), border-color .26s, background .26s, box-shadow .3s;
}

body.recharge-page .charge-card:hover { transform: translateX(5px); }
body.recharge-page .charge-coin { font-size: clamp(26px, 3vw, 32px); }
body.recharge-page .charge-bonus { margin-top: 4px; font-size: 12px; font-weight: 600; }
body.recharge-page .charge-price { margin-top: 0; font-size: 19px; }
body.recharge-page .charge-name { font-size: 14px; letter-spacing: .2px; }

.charge-rate {
	position: relative;
	z-index: 1;
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--mid);
}

.charge-amount { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 6px; }
.charge-mid { position: relative; z-index: 1; min-width: 0; }
.charge-name { position: relative; z-index: 1; font-family: var(--font-cn); font-size: 15px; font-weight: 800; color: var(--cream); transition: color .3s; }
.charge-buy { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }

.charge-radio {
	position: relative;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	border-radius: 50%;
	border: 2px solid rgba(246, 241, 231, .28);
	transition: border-color .26s, background .26s;
}

body.recharge-page .charge-card:hover .charge-radio { border-color: var(--acid); }
body.recharge-page .charge-card.selected .charge-radio { border-color: #0b0814; }
body.recharge-page .charge-card.selected .charge-radio::after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: #0b0814;
}
body.recharge-page .charge-card.selected .charge-name { color: #0b0814; }
body.recharge-page .charge-card.selected .charge-rate { color: rgba(11, 8, 20, .62); }

.recharge-notes {
	display: grid;
	gap: 10px;
	margin-top: 4px;
	padding: 16px 18px;
	border-radius: var(--r-md);
	background: rgba(246, 241, 231, .035);
	border: 1px dashed rgba(246, 241, 231, .2);
}

.note-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--mid); }
.note-item svg { flex: 0 0 auto; color: var(--acid); }

body.recharge-page .pay-panel {
	top: 92px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px;
}

.checkout-rows {
	display: grid;
	gap: 11px;
	padding-bottom: 18px;
	border-bottom: 1px dashed rgba(246, 241, 231, .2);
}

body.recharge-page .co-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
body.recharge-page .co-row span { font-size: 13px; color: var(--mid); }
body.recharge-page .co-row b { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--mid); text-align: right; }
body.recharge-page .co-row b.filled { color: var(--cream); }
body.recharge-page .co-total b.filled,
body.recharge-page .co-total b { font-size: 24px; letter-spacing: -1px; color: var(--acid); }
body.recharge-page .submit-area { margin-top: 0; }

.checkout-tip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 11.5px;
	text-align: center;
	color: var(--mid);
}

.checkout-tip svg { color: var(--acid); }

/* ---------- 子页布局响应式 ---------- */
@media (max-width: 1080px) {
	.profile-grid { grid-template-columns: 1fr; }
	body.user-page .profile-header { flex-wrap: wrap; flex-direction: row; text-align: left; }
	body.user-page .profile-info { width: auto; }
	body.user-page .profile-name,
	body.user-page .nickname-display { justify-content: flex-start; }
	body.user-page .profile-id { text-align: left; }
	body.recharge-page .recharge-layout { grid-template-columns: 1fr; }
	body.recharge-page .pay-panel { position: static; top: auto; }
}

@media (max-width: 620px) {
	body.user-page .profile-card { padding: 0 18px 20px; }
	.pass-flag { margin: 0 -18px 4px; padding: 12px 18px; }
	.pass-perf { margin-left: -18px; margin-right: -18px; }
	body.recharge-page .charge-card { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; padding: 16px 18px; }
	body.recharge-page .charge-mid { grid-column: 1 / -1; }
	body.recharge-page .charge-amount { min-width: 0; }
	.wallet-card { padding: 22px 20px; }
	.wallet-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   首页 · 直播卡片竖版（头像完整显示，靠虚化底图填满画面）
   ============================================================ */
body.home-page .more-grid {
	grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
	gap: clamp(28px, 3.6vw, 46px) clamp(20px, 2.8vw, 32px);
}

body.home-page .vinyl { aspect-ratio: 3 / 4; }

body.home-page .vinyl-sleeve { border-radius: var(--r-md); background: linear-gradient(168deg, #241a48, #100b20 72%); }

.sleeve-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: repeating-linear-gradient(135deg, rgba(246, 241, 231, .06) 0 10px, transparent 10px 20px);
}

.sleeve-blur {
	position: absolute;
	top: -14%;
	left: -14%;
	width: 128%;
	height: 128%;
	object-fit: cover;
	filter: blur(22px) saturate(1.15) brightness(.42);
	opacity: .72;
}

.sleeve-pic {
	position: relative;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	object-fit: contain;
	padding: 14px 14px 70px;
	filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .45));
}

body.home-page .sleeve-shade { background: linear-gradient(0deg, rgba(8, 6, 15, .94) 4%, rgba(8, 6, 15, .55) 26%, transparent 48%); }
body.home-page .sleeve-foot { padding: 16px; }
body.home-page .sleeve-foot b { font-size: 15px; }

body.home-page .vinyl-disc { top: auto; left: auto; right: 2%; bottom: 24%; width: 62%; height: 62%; margin-top: 0; }
body.home-page .vinyl:hover .vinyl-disc { transform: translateX(20%) rotate(210deg); }

@media (max-width: 820px) {
	body.home-page .more-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 24px 16px; }
	.sleeve-pic { padding: 10px 10px 62px; }
	.sleeve-blur { filter: blur(16px) saturate(1.1) brightness(.42); }
	body.home-page .vinyl-disc { display: none; }
}

/* ============================================================
   首页 hero · 主屏改竖版（头像完整显示，虚化同图铺底）
   ============================================================ */
body.home-page .stage-inner { grid-template-columns: minmax(0, 404px) minmax(0, 1fr); }

body.home-page .screen {
	aspect-ratio: 3 / 4;
	min-height: 0;
	max-width: 440px;
}

.screen-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }

.screen-blur {
	position: absolute;
	top: -14%;
	left: -14%;
	width: 128%;
	height: 128%;
	object-fit: cover;
	filter: blur(26px) saturate(1.15) brightness(.4);
	opacity: .75;
}

.screen-pic {
	position: relative;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	object-fit: contain;
	padding: 44px 16px 148px;
	filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .5));
}

body.home-page .scr-title { font-size: clamp(21px, 2.1vw, 30px); }
body.home-page .scr-lyric { font-size: 13px; }
body.home-page .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.home-page .hero-stats .stat-item { min-width: 0; padding: 12px 13px 26px; }

@media (max-width: 980px) {
	body.home-page .stage-inner { grid-template-columns: minmax(0, 1fr); }
	body.home-page .screen { margin-inline: auto; }
}

@media (max-width: 640px) {
	.screen-pic { padding: 40px 12px 132px; }
	.screen-blur { filter: blur(18px) saturate(1.1) brightness(.4); }
	body.home-page .scr-wave { height: 34px; margin-top: 10px; }
}

/* ============================================================
   页脚 · 政策与公约改双竖列
   ============================================================ */
body.home-page .footer-top { grid-template-columns: 1.5fr .78fr 1.28fr 1.06fr; }

.footer-links-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 10px;
}

@media (max-width: 1080px) {
	body.home-page .footer-top { grid-template-columns: 1fr; }
}
