/* 全站布局：顶栏 + 内容区 + 底栏 */
:root {
	--site-header-h: 52px;
	--site-footer-h: 42px;
}

.site-body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #050508;
	font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ========== 顶栏（提高层级，避免被 iframe 盖住） ========== */
.site-header {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: var(--site-header-h);
	min-height: 52px;
	z-index: 99999 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: linear-gradient(
		180deg,
		rgba(12, 14, 24, 0.98) 0%,
		rgba(10, 12, 22, 0.95) 100%
	);
	border-bottom: 1px solid rgba(212, 168, 75, 0.35);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #f5e6c8;
	flex-shrink: 0;
}

.site-brand:hover {
	text-decoration: none;
	color: #fff;
}

.site-brand .brand-title {
	font-size: 20px;
	font-weight: 300;
	letter-spacing: 0.2em;
	background: linear-gradient(180deg, #fff9ee, #d4a84b);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.site-brand .brand-music {
	width: 28px;
	height: 28px;
	opacity: 0.9;
}

.site-nav-menu {
	display: flex !important;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: flex-end;
	visibility: visible !important;
	opacity: 1 !important;
}

.site-nav-item {
	display: inline-block;
	padding: 8px 14px;
	font-size: 14px;
	color: rgba(232, 224, 208, 0.82);
	text-decoration: none;
	letter-spacing: 0.08em;
	border-radius: 2px;
	transition: color 0.25s, background 0.25s;
	white-space: nowrap;
}

.site-nav-item:hover {
	color: #f5e6c8;
	text-decoration: none;
	background: rgba(212, 168, 75, 0.1);
}

.site-nav-item.active {
	color: #1a1510;
	background: linear-gradient(135deg, #e8c878 0%, #c9a03a 100%);
	box-shadow: 0 2px 12px rgba(201, 160, 58, 0.35);
}

.site-nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(212, 168, 75, 0.35);
	background: transparent;
	border-radius: 4px;
	cursor: pointer;
}

.site-nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	background: #d4a84b;
}

/* ========== 主内容 iframe ========== */
.site-main {
	position: fixed;
	top: var(--site-header-h);
	left: 0;
	right: 0;
	bottom: var(--site-footer-h);
	z-index: 1;
	background: #000;
	pointer-events: none;
}

.site-main #content {
	pointer-events: auto;
}

.site-main #content {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
	padding: 0;
}

/* ========== 底栏 ========== */
.site-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--site-footer-h);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		0deg,
		rgba(8, 10, 18, 0.95) 0%,
		rgba(8, 10, 18, 0.8) 100%
	);
	border-top: 1px solid rgba(212, 168, 75, 0.15);
	font-size: 12px;
	color: rgba(180, 170, 150, 0.8);
	line-height: 1.5;
}

.site-footer a {
	color: rgba(212, 168, 75, 0.9);
	text-decoration: none;
}

.site-footer a:hover {
	color: #f5e6c8;
}

.site-footer img {
	vertical-align: middle;
	height: 16px;
	margin: 0 4px;
}

.site-footer-sep {
	margin: 0 12px;
	opacity: 0.4;
}

/* 旧顶栏隐藏（保留 DOM 兼容时可删） */
#navbar-nav {
	display: none !important;
}

/* 客服侧栏微调 */
.sidebar {
	z-index: 1001;
}

/* 仅极窄屏才收起为汉堡菜单（原 900px 过宽，导致菜单“消失”） */
@media (max-width: 640px) {
	.site-nav-toggle {
		display: block;
		flex-shrink: 0;
	}

	.site-nav-menu {
		display: none !important;
		position: absolute;
		top: 100%;
		right: 12px;
		left: 12px;
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		background: rgba(12, 14, 24, 0.98);
		border: 1px solid rgba(212, 168, 75, 0.35);
		border-radius: 4px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
		z-index: 100000;
	}

	.site-nav-menu.is-open {
		display: flex !important;
	}

	.site-nav-item {
		text-align: center;
		padding: 12px;
	}
}
