/* ============================================================
   XYY Theme v2 — 透明玻璃拟态 + 二次元背景
   替换背景图：/themes/clientarea/xyy/assets_custom/img/xyy-bg.jpg
   ============================================================ */

:root {
	--xyy-bg-image: url('/themes/clientarea/xyy/assets_custom/img/xyy-bg.jpg');
	/* 玻璃变量统一定义于 xyy-glass.css */
	--xyy-primary: #a78bfa;
	--xyy-primary-hover: #8b5cf6;
	--xyy-primary-glow: rgba(167, 139, 250, 0.45);
	--xyy-text: #f8fafc;
	--xyy-text-muted: rgba(248, 250, 252, 0.65);
	--xyy-text-dark: #1e1b4b;
	--xyy-radius: 16px;
	--xyy-radius-sm: 10px;
	--xyy-sidebar-w: 250px;
	--xyy-topbar-h: 72px;
	--xyy-content-gap: 16px;
}

/* ===== 全站背景层（真实 DOM，避免伪元素 z-index 失效） ===== */
html {
	background-color: #1a1035 !important;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

body.xyy-theme,
body.xyy-theme.auth-body-bg {
	font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
	background: #1a1035 !important;
	background-color: #1a1035 !important;
	color: var(--xyy-text) !important;
	min-height: 100vh;
	min-height: 100dvh;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.xyy-page-bg {
	position: fixed;
	inset: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	min-width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	background-color: #1a1035;
	background-image:
		url('/themes/clientarea/xyy/assets_custom/img/xyy-bg.jpg'),
		url('/themes/clientarea/xyy/assets_custom/img/new-background.jpg'),
		url('/themes/clientarea/xyy/assets_custom/img/xyy-bg.svg'),
		linear-gradient(135deg, #1a1035 0%, #2d1b69 40%, #6b21a8 70%, #831843 100%);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.xyy-page-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	display: block;
	transform: none;
	-webkit-transform: none;
}

.xyy-page-bg-overlay {
	position: absolute;
	inset: 0;
	/* 轻遮罩，让二次元壁纸清晰可见 */
	background: rgba(0, 0, 0, 0.10);
}

/* 旧写法兼容 */
.xyy-page-bg::after {
	display: none !important;
}

body.xyy-theme > :not(.xyy-page-bg):not(.xyy-sidebar-overlay):not(#xyyLegalModal):not(#xyyLegalSources) {
	z-index: 1;
}

body.xyy-theme #page-topbar {
	position: fixed !important;
}

/* 移除旧伪元素背景 */
body.xyy-theme::before,
body.xyy-theme::after {
	display: none !important;
	content: none !important;
}

/* 玻璃面板通用 */
.xyy-glass {
	background: var(--xyy-glass-bg) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border: 1px solid var(--xyy-glass-border) !important;
	box-shadow: var(--xyy-glass-shadow) !important;
	border-radius: var(--xyy-radius) !important;
}

/* ===== 登录 / 注册页 ===== */
.xyy-auth-wrap {
	min-height: 100vh;
	display: flex;
	align-items: stretch;
	position: relative;
	overflow: hidden;
	background: transparent !important;
}

.xyy-auth-wrap::before,
.xyy-auth-wrap::after {
	display: none !important;
	content: none !important;
}

.xyy-auth-layout {
	position: relative;
	z-index: 2;
	display: flex;
	width: 100%;
	min-height: 100vh;
}

/* 左侧：人物展示区 */
.xyy-auth-showcase {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 60px 48px;
	min-height: 100vh;
}

.xyy-auth-showcase-inner {
	max-width: 520px;
}

.xyy-auth-showcase h2 {
	font-size: 42px;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
	margin-bottom: 12px;
	line-height: 1.2;
}

.xyy-auth-showcase p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.xyy-auth-showcase .xyy-tag {
	display: inline-block;
	margin-top: 20px;
	padding: 6px 16px;
	background: rgba(167, 139, 250, 0.3);
	border: 1px solid rgba(167, 139, 250, 0.5);
	border-radius: 20px;
	color: #e9d5ff;
	font-size: 13px;
	backdrop-filter: blur(8px);
}

/* 右侧：玻璃登录卡（具体样式见 xyy-glass.css .xyy-auth-panel） */
.xyy-auth-panel {
	width: 480px;
	max-width: 100%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
}

.xyy-auth-card {
	width: 100%;
	max-width: 380px;
}

.xyy-auth-brand {
	text-align: center;
	margin-bottom: 28px;
}

.xyy-auth-brand img {
	max-height: 52px;
	width: auto;
	margin-bottom: 14px;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.xyy-auth-brand h1 {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
}

.xyy-auth-brand p {
	font-size: 13px;
	color: var(--xyy-text-muted);
	margin: 0;
}

/* 登录表单 */
.xyy-auth-card .nav-tabs-custom {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	margin-bottom: 20px;
}

.xyy-auth-card .nav-tabs-custom .nav-link {
	border: none !important;
	color: var(--xyy-text-muted) !important;
	font-weight: 500;
	font-size: 14px;
	padding: 10px 14px;
	background: transparent !important;
}

.xyy-auth-card .nav-tabs-custom .nav-link.active {
	color: #fff !important;
	background: rgba(167, 139, 250, 0.25) !important;
	border-radius: var(--xyy-radius-sm) var(--xyy-radius-sm) 0 0 !important;
	border-bottom: 2px solid var(--xyy-primary) !important;
}

.xyy-auth-card .form-group label {
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 13px;
	font-weight: 500;
}

.xyy-auth-card .form-control {
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	border-radius: var(--xyy-radius-sm) !important;
	min-height: 44px;
	backdrop-filter: blur(4px);
}

.xyy-auth-card .form-control::placeholder {
	color: rgba(255, 255, 255, 0.4) !important;
}

.xyy-auth-card .form-control:focus {
	background: rgba(255, 255, 255, 0.15) !important;
	border-color: var(--xyy-primary) !important;
	box-shadow: 0 0 0 3px var(--xyy-primary-glow) !important;
	color: #fff !important;
}

.xyy-auth-card select.form-control {
	color: #fff !important;
}

.xyy-auth-card .btn-primary {
	background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
	border: none !important;
	border-radius: var(--xyy-radius-sm) !important;
	min-height: 44px;
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 4px 20px var(--xyy-primary-glow) !important;
	transition: all 0.2s ease;
}

.xyy-auth-card .btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 28px var(--xyy-primary-glow) !important;
	background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

.xyy-auth-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	font-size: 13px;
}

.xyy-auth-links a,
.xyy-auth-links .text-primary {
	color: #c4b5fd !important;
}

.xyy-auth-footer {
	text-align: center;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	color: var(--xyy-text-muted);
}

.xyy-auth-footer a {
	color: #c4b5fd !important;
	font-weight: 600;
}

.xyy-legal-links {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--xyy-text-muted);
}

.xyy-legal-links a {
	color: #c4b5fd !important;
	text-decoration: none;
}

.xyy-legal-links a:hover {
	text-decoration: underline;
}

.xyy-legal-sep {
	margin: 0 6px;
	opacity: 0.6;
}

.xyy-legal-links--footer {
	font-size: 12px;
}

.xyy-site-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 10px;
	margin-top: 6px;
}

.footer .xyy-site-legal a {
	color: rgba(255, 255, 255, 0.65) !important;
	font-size: 12px;
}

.footer .xyy-site-legal a:hover {
	color: #c4b5fd !important;
}

/* ===== 协议弹窗 ===== */
#xyyLegalModal {
	z-index: 2005 !important;
}

#xyyLegalModal.show {
	display: block !important;
}

.xyy-legal-modal-dialog {
	max-width: min(720px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	margin: 12px auto;
}

.xyy-legal-modal-content {
	background: rgba(18, 12, 40, 0.82) !important;
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 16px !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
	max-height: calc(100vh - 24px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.xyy-legal-modal-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
	padding: 14px 18px !important;
	flex: 0 0 auto;
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(18, 12, 40, 0.96) !important;
}

.xyy-legal-modal-header .modal-title {
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
}

#xyyLegalModal .xyy-legal-modal-header .close {
	color: #fff !important;
	opacity: 1 !important;
	cursor: pointer;
	z-index: 3;
	position: relative;
	padding: 8px 10px;
	margin: -8px -10px -8px auto;
	line-height: 1;
}

.xyy-legal-modal-body {
	padding: 0 !important;
	background: transparent !important;
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.xyy-legal-modal-content-inner {
	display: block;
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 16px 18px 20px;
	background: rgba(255, 255, 255, 0.86) !important;
	backdrop-filter: blur(8px) saturate(1.05);
	-webkit-backdrop-filter: blur(8px) saturate(1.05);
	color: #333 !important;
	font-size: 14px;
	line-height: 1.75;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.xyy-legal-modal-content-inner::-webkit-scrollbar {
	width: 8px;
}

.xyy-legal-modal-content-inner::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.28);
	border-radius: 4px;
}

.xyy-legal-modal-content-inner p,
.xyy-legal-modal-content-inner span,
.xyy-legal-modal-content-inner li {
	color: #333 !important;
	font-size: 14px;
	line-height: 1.75;
}

.xyy-legal-modal-content-inner strong {
	color: #111 !important;
}

.xyy-legal-modal-loading {
	display: none;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.92);
	color: #666;
	font-size: 14px;
	z-index: 2;
	pointer-events: none;
}

.xyy-legal-modal-loading.is-active {
	pointer-events: auto;
}

body.xyy-legal-modal-open .modal-backdrop.show {
	background: rgba(20, 12, 40, 0.28) !important;
	backdrop-filter: blur(4px) saturate(1.02);
	-webkit-backdrop-filter: blur(4px) saturate(1.02);
}

body.xyy-theme.xyy-page-auth .xyy-auth-wrap,
body.xyy-theme.xyy-page-auth .xyy-auth-layout {
	background: transparent !important;
}

.xyy-legal-open {
	cursor: pointer;
}

.xyy-legal-open:hover {
	text-decoration: underline !important;
}

@media (max-width: 576px) {
	.xyy-legal-modal-dialog {
		max-width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
		margin: 8px auto;
	}

	.xyy-legal-modal-content {
		max-height: calc(100vh - 16px);
	}

	.xyy-legal-modal-content-inner {
		padding: 14px 14px 18px;
	}

	.xyy-legal-modal-header {
		padding: 12px 14px !important;
	}
}

body.xyy-theme .xyy-avatar-ring {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	padding: 3px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body.xyy-theme .xyy-avatar-ring .user-center_header {
	margin-right: 0 !important;
}

/* ===== 用户中心首页：个人信息卡（全端） ===== */
body.xyy-theme .xyy-profile-card {
	padding: 18px 16px 14px;
}

body.xyy-theme .xyy-profile-main {
	display: flex;
	align-items: center;
	gap: 14px;
}

body.xyy-theme .xyy-profile-info {
	flex: 1;
	min-width: 0;
}

body.xyy-theme .xyy-profile-name {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin-bottom: 4px;
}

body.xyy-theme .xyy-profile-id,
body.xyy-theme .xyy-profile-phone {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

body.xyy-theme .xyy-profile-safety {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: auto !important;
	max-width: none !important;
	margin: 14px 0 0 !important;
}

body.xyy-theme .user-center_safety.is-inactive {
	background: rgba(255, 255, 255, 0.12) !important;
	color: rgba(255, 255, 255, 0.45) !important;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

body.xyy-theme .user-center_safety:not(.is-inactive) {
	background: linear-gradient(135deg, rgba(167, 139, 250, 0.85), rgba(139, 92, 246, 0.75)) !important;
	box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}

body.xyy-theme .xyy-profile-divider {
	margin: 14px 16px;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

body.xyy-theme .xyy-profile-stats {
	padding: 4px 8px 10px;
}

body.xyy-theme .xyy-profile-stats > a,
body.xyy-theme .xyy-profile-stats > div {
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8) !important;
}

body.xyy-theme .xyy-profile-stats .text-center {
	font-size: 20px !important;
	font-weight: 700;
	margin-bottom: 4px;
}

body.xyy-theme .user-center_name {
	max-width: 100%;
	font-size: 17px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

body.xyy-theme .xyy-avatar-ring {
	flex-shrink: 0;
}

body.xyy-theme .xyy-avatar-ring .user-center_header {
	width: 52px;
	height: 52px;
	font-size: 22px;
}

@media (max-width: 992px) {
	body.xyy-theme.xyy-page-clientarea .page-content {
		padding-top: calc(var(--xyy-topbar-h) + 6px + env(safe-area-inset-top, 0px)) !important;
	}

	body.xyy-theme.xyy-page-clientarea .xyy-clientarea-home > section:first-child {
		margin-top: 4px;
	}

	body.xyy-theme.xyy-page-clientarea .user-center_h300 {
		height: auto !important;
		min-height: 0 !important;
	}

	body.xyy-theme .xyy-profile-card {
		padding: 16px 14px 12px;
	}

	body.xyy-theme .xyy-profile-stats {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
		padding: 8px 10px 12px;
	}

	body.xyy-theme .xyy-profile-stats > a,
	body.xyy-theme .xyy-profile-stats > div {
		background: rgba(255, 255, 255, 0.08);
		border-radius: 12px;
		padding: 10px 6px;
	}

	body.xyy-theme #page-topbar .navbar-header > .d-flex:first-child {
		align-items: center;
		gap: 4px;
		min-width: 0;
		flex: 1;
	}

	body.xyy-theme #page-topbar .xyy-brand-box--mobile {
		min-width: 0;
		overflow: hidden;
	}

	body.xyy-theme #page-topbar .xyy-brand-box--mobile .xyy-logo-full {
		max-height: 36px !important;
		min-width: 0 !important;
	}
}

@media (min-width: 993px) {
	body.xyy-theme #page-topbar .navbar-header > .d-flex:first-child .xyy-brand-box {
		order: 1;
	}

	body.xyy-theme #page-topbar .navbar-header > .d-flex:first-child #vertical-menu-btn {
		order: 2;
	}
}

/* 旧版注册/找回密码页自动转换 */
body.xyy-theme .container-fluid.p-0 > .row.no-gutters {
	min-height: 100vh;
	background: transparent !important;
	display: flex;
	align-items: stretch;
	margin: 0;
}

body.xyy-theme .container-fluid.p-0 .col-xl-7.bglogo {
	display: none !important;
}

body.xyy-theme .container-fluid.p-0 .col-xl-5 {
	flex: 1;
	max-width: 480px;
	margin-left: auto;
	background: var(--xyy-glass-bg-auth) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border-left: 1px solid var(--xyy-glass-border-light);
	box-shadow: none;
	padding: 0;
}

body.xyy-theme .auth-full-page-content {
	background: transparent !important;
	padding: 40px 32px !important;
}

body.xyy-theme .auth-full-page-content .form-group label {
	color: rgba(255, 255, 255, 0.85) !important;
}

body.xyy-theme .auth-full-page-content .form-control {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
}

body.xyy-theme .auth-full-page-content .nav-tabs-custom .nav-link {
	color: var(--xyy-text-muted) !important;
}

body.xyy-theme .auth-full-page-content .nav-tabs-custom .nav-link.active {
	color: #fff !important;
	background: rgba(167, 139, 250, 0.25) !important;
}

body.xyy-theme .auth-full-page-content .text-primary,
body.xyy-theme .auth-full-page-content a.text-primary {
	color: #c4b5fd !important;
}

body.xyy-theme .auth-full-page-content h5,
body.xyy-theme .auth-full-page-content p {
	color: var(--xyy-text-muted);
}

body.xyy-theme .logo.text-center img {
	max-height: 52px;
}

/* ===== 已登录：顶栏 ===== */
body.xyy-theme #page-topbar {
	background: var(--xyy-glass-bg) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border-bottom: 1px solid var(--xyy-glass-border) !important;
	box-shadow: var(--xyy-glass-shadow) !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 1002 !important;
}

body.xyy-theme #page-topbar .navbar-header {
	height: var(--xyy-topbar-h);
	min-height: var(--xyy-topbar-h);
}

body.xyy-theme .main-content {
	margin-left: var(--xyy-sidebar-w) !important;
	padding-top: calc(var(--xyy-topbar-h) + var(--xyy-content-gap)) !important;
	background: transparent !important;
}

body.xyy-theme .page-content {
	padding: 20px 24px 24px !important;
	background: transparent !important;
}

body.xyy-theme .vertical-menu {
	top: var(--xyy-topbar-h) !important;
	height: calc(100vh - var(--xyy-topbar-h)) !important;
	background: var(--xyy-glass-bg) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border-right: 1px solid var(--xyy-glass-border) !important;
	width: var(--xyy-sidebar-w);
	box-shadow: var(--xyy-glass-shadow) !important;
	z-index: 1001 !important;
}

body.xyy-theme #page-topbar .header-item {
	color: #fff !important;
}

body.xyy-theme #page-topbar .header-item:hover {
	background: rgba(255, 255, 255, 0.1) !important;
}

body.xyy-theme #page-topbar .navbar-brand-box {
	background: transparent !important;
}

body.xyy-theme #page-topbar .logo-dark {
	display: none !important;
}

body.xyy-theme #page-topbar .logo-light {
	display: block !important;
}

body.xyy-theme #page-topbar .d-none.d-xl-inline-block {
	color: #fff !important;
}

body.xyy-theme #page-topbar a.text-dark {
	color: #fff !important;
}

body.xyy-theme #page-topbar .bx,
body.xyy-theme #page-topbar .mdi,
body.xyy-theme #page-topbar .fa {
	color: #fff !important;
}

/* ===== 已登录：侧边栏 ===== */
body.xyy-theme #sidebar-menu ul li a {
	color: rgba(255, 255, 255, 0.7) !important;
	padding: 10px 18px !important;
	margin: 2px 10px;
	border-radius: var(--xyy-radius-sm);
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s ease;
}

body.xyy-theme #sidebar-menu ul li a i {
	color: rgba(255, 255, 255, 0.6) !important;
}

body.xyy-theme #sidebar-menu ul li a:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

body.xyy-theme #sidebar-menu ul li a:hover i {
	color: #fff !important;
}

body.xyy-theme #sidebar-menu ul li.mm-active > a,
body.xyy-theme #sidebar-menu ul li .active {
	color: #fff !important;
	background: rgba(167, 139, 250, 0.35) !important;
	border: 1px solid rgba(167, 139, 250, 0.4);
}

body.xyy-theme #sidebar-menu ul li ul.sub-menu {
	background: rgba(0, 0, 0, 0.15) !important;
	border-radius: var(--xyy-radius-sm);
	margin: 0 10px 6px;
}

/* ===== 主内容区 ===== */
body.xyy-theme .page-title-box h4 {
	color: #fff !important;
	font-weight: 600;
}

body.xyy-theme .breadcrumb-item a {
	color: rgba(255, 255, 255, 0.6) !important;
}

body.xyy-theme .breadcrumb-item.active {
	color: #c4b5fd !important;
}

/* ===== 卡片玻璃化 ===== */
body.xyy-theme .card {
	background: var(--xyy-glass-bg) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border: 1px solid var(--xyy-glass-border) !important;
	border-radius: var(--xyy-radius) !important;
	box-shadow: var(--xyy-glass-shadow) !important;
	color: #fff !important;
}

body.xyy-theme .card-body {
	background: transparent !important;
	backdrop-filter: none !important;
}

body.xyy-theme .card-header {
	background: rgba(255, 255, 255, 0.08) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

body.xyy-theme .card-title,
body.xyy-theme .card-body,
body.xyy-theme .card-body h4,
body.xyy-theme .card-body span {
	color: rgba(255, 255, 255, 0.9) !important;
}

body.xyy-theme .text-black-50,
body.xyy-theme .text-black-80,
body.xyy-theme .color-999 {
	color: rgba(255, 255, 255, 0.55) !important;
}

body.xyy-theme .text-dark {
	color: rgba(255, 255, 255, 0.9) !important;
}

body.xyy-theme hr {
	border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ===== 表单 ===== */
body.xyy-theme .form-control {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	color: #fff !important;
	border-radius: var(--xyy-radius-sm) !important;
}

body.xyy-theme .form-control:focus {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: var(--xyy-primary) !important;
	box-shadow: 0 0 0 3px var(--xyy-primary-glow) !important;
	color: #fff !important;
}

body.xyy-theme select.form-control option {
	background: #2d1b69;
	color: #fff;
}

body.xyy-theme label,
body.xyy-theme .col-form-label {
	color: rgba(255, 255, 255, 0.85) !important;
}

/* ===== 按钮 ===== */
body.xyy-theme .btn-primary {
	background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
	border: none !important;
	border-radius: var(--xyy-radius-sm) !important;
	box-shadow: 0 4px 16px var(--xyy-primary-glow) !important;
	font-weight: 600;
}

body.xyy-theme .btn-primary:hover {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

body.xyy-theme .btn-secondary,
body.xyy-theme .btn-light,
body.xyy-theme .btn-outline-light {
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	border-radius: var(--xyy-radius-sm) !important;
}

/* ===== 表格 ===== */
body.xyy-theme .table {
	color: rgba(255, 255, 255, 0.9) !important;
}

body.xyy-theme .table thead th {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
	color: rgba(255, 255, 255, 0.7) !important;
}

body.xyy-theme .table td,
body.xyy-theme .table th {
	border-color: rgba(255, 255, 255, 0.1) !important;
}

body.xyy-theme .table-header,
body.xyy-theme .table-footer {
	background: var(--xyy-glass-bg) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border: 1px solid var(--xyy-glass-border) !important;
	color: #fff !important;
}

/* ===== 下拉 / 模态框（见 xyy-glass.css 浮层变量） ===== */
body.xyy-theme .dropdown-menu {
	background: var(--xyy-glass-bg-overlay) !important;
	backdrop-filter: var(--xyy-glass-filter-overlay) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter-overlay) !important;
	border: 1px solid var(--xyy-glass-border) !important;
	border-radius: var(--xyy-radius-sm) !important;
}

body.xyy-theme .dropdown-item {
	color: rgba(255, 255, 255, 0.85) !important;
	border-radius: 6px !important;
}

body.xyy-theme .dropdown-item:hover {
	background: rgba(167, 139, 250, 0.25) !important;
	color: #fff !important;
}

body.xyy-theme .modal-content {
	background: var(--xyy-glass-bg-overlay) !important;
	backdrop-filter: var(--xyy-glass-filter-overlay) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter-overlay) !important;
	border: 1px solid var(--xyy-glass-border) !important;
	border-radius: var(--xyy-radius) !important;
	color: #fff !important;
}

body.xyy-theme .modal-header,
body.xyy-theme .modal-footer {
	border-color: rgba(255, 255, 255, 0.12) !important;
}

body.xyy-theme .modal-title,
body.xyy-theme .close {
	color: #fff !important;
}

/* ===== 页脚 ===== */
body.xyy-theme .footer {
	background: var(--xyy-glass-bg) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border-top: 1px solid var(--xyy-glass-border) !important;
	color: rgba(255, 255, 255, 0.6) !important;
	left: var(--xyy-sidebar-w);
}

/* ===== 用户中心首页 ===== */
body.xyy-theme .user-center_header {
	background: linear-gradient(135deg, #a78bfa, #ec4899) !important;
	color: #fff !important;
}

body.xyy-theme .user-center_name {
	color: #fff !important;
	font-weight: 600;
}

body.xyy-theme .user-center_product {
	background: rgba(255, 255, 255, 0.08) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border: 1px solid var(--xyy-glass-border-light) !important;
	border-radius: var(--xyy-radius-sm) !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

body.xyy-theme .user-center_product:hover {
	background: rgba(167, 139, 250, 0.25) !important;
	border-color: rgba(167, 139, 250, 0.4) !important;
	color: #fff !important;
}

body.xyy-theme .user-center_notice_item {
	border-color: rgba(255, 255, 255, 0.1) !important;
}

body.xyy-theme .notice_item_title {
	color: rgba(255, 255, 255, 0.85) !important;
}

body.xyy-theme .notice_item_title:hover {
	color: #c4b5fd !important;
}

body.xyy-theme .text-primary {
	color: #c4b5fd !important;
}

body.xyy-theme .text-warning {
	color: #fbbf24 !important;
}

body.xyy-theme .text-danger {
	color: #f87171 !important;
}

body.xyy-theme .security-header {
	background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(236, 72, 153, 0.3)) !important;
	backdrop-filter: blur(12px) !important;
	border: 1px solid var(--xyy-glass-border) !important;
}

body.xyy-theme .pagination .page-link {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.15) !important;
	color: rgba(255, 255, 255, 0.8) !important;
}

body.xyy-theme .pagination .page-item.active .page-link {
	background: var(--xyy-primary) !important;
	border-color: var(--xyy-primary) !important;
	color: #fff !important;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
	body.xyy-theme #page-topbar {
		left: 0 !important;
	}

	body.xyy-theme .main-content {
		margin-left: 0 !important;
	}

	body.xyy-theme .footer {
		left: 0 !important;
	}

	.xyy-auth-layout {
		flex-direction: column;
	}

	.xyy-auth-showcase {
		padding: 40px 24px 20px;
		min-height: auto;
		justify-content: center;
	}

	.xyy-auth-showcase h2 {
		font-size: 28px;
	}

	.xyy-auth-panel {
		width: 100%;
		border-left: none;
		border-top: 1px solid var(--xyy-glass-border);
		box-shadow: none;
	}
}

@media (max-width: 576px) {
	.xyy-auth-panel {
		padding: 28px 20px;
	}

	body.xyy-theme .page-content {
		padding: 16px 12px !important;
	}
}

/* ===== 修复 global.css 白底遮挡背景 ===== */
body.xyy-theme .main-content,
body.xyy-theme .page-content,
body.xyy-theme .container-fluid {
	background: transparent !important;
}

body.xyy-theme .table-responsive,
body.xyy-theme .table-container {
	background: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: var(--xyy-radius) !important;
}

body.xyy-theme .table-responsive .table {
	background: transparent !important;
}

body.xyy-theme .table-responsive thead th {
	background: rgba(255, 255, 255, 0.1) !important;
	color: rgba(255, 255, 255, 0.75) !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

body.xyy-theme .table-responsive tbody tr td {
	background: transparent !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

body.xyy-theme .table-responsive tbody tr:hover td {
	background: rgba(167, 139, 250, 0.15) !important;
}

body.xyy-theme .table-header,
body.xyy-theme .table-footer {
	background: var(--xyy-glass-bg) !important;
	backdrop-filter: var(--xyy-glass-filter) !important;
	-webkit-backdrop-filter: var(--xyy-glass-filter) !important;
	border: 1px solid var(--xyy-glass-border) !important;
	border-radius: var(--xyy-radius) !important;
	color: #fff !important;
}

body.xyy-theme .table-header .form-control,
body.xyy-theme .table-tools .form-control {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
}

body.xyy-theme .no-data,
body.xyy-theme .table td .no-data {
	color: rgba(255, 255, 255, 0.5) !important;
}

body.xyy-theme .btn-default {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
}

body.xyy-theme .custom-control-label,
body.xyy-theme .table-pagination,
body.xyy-theme .table-pageinfo {
	color: rgba(255, 255, 255, 0.8) !important;
}

/* ===== 滚动条 ===== */
body.xyy-theme ::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

body.xyy-theme ::-webkit-scrollbar-thumb {
	background: rgba(167, 139, 250, 0.4);
	border-radius: 3px;
}
