:root {
	--ausbia-bg-dark: #110b1f;
	--ausbia-bg-panel: rgba(255, 255, 255, 0.08);
	--ausbia-bg-card: rgba(37, 12, 8, 0.6);
	--ausbia-border-soft: rgba(255, 218, 185, 0.18);
	--ausbia-text-primary: #fff7f2;
	--ausbia-text-secondary: rgba(255, 234, 215, 0.76);
	--ausbia-accent: #d8a10a;
	--ausbia-accent-strong: #cf1020;
	--ausbia-highlight: #60120a;
	--ausbia-gradient-hero: radial-gradient(circle at 12% 18%, rgba(216, 161, 10, 0.55), rgba(37, 12, 8, 0) 58%), radial-gradient(circle at 85% 8%, rgba(207, 16, 32, 0.6), rgba(37, 12, 8, 0) 62%), linear-gradient(150deg, #120807, #2a1110);
	--ausbia-gradient-card: linear-gradient(135deg, rgba(255, 245, 230, 0.18), rgba(255, 255, 255, 0.05));
	--ausbia-radius-lg: 28px;
	--ausbia-radius-md: 18px;
	--ausbia-radius-sm: 12px;
	--ausbia-backdrop: blur(22px);
}

/* 全站背景色 */
body {
	background-color: #120807;
}

body.home {
	background-color: #120807;
}

.page-template-front-page #primary.karot-shell,
.home #primary.karot-shell {
	background: transparent;
	isolation: isolate;
}

.page-template-front-page #primary.karot-shell .karot-main,
.home #primary.karot-shell .karot-main {
	position: relative;
	z-index: 1;
}

/* 全站：确保内容显示在背景之上 */
#primary,
#content,
.site-content,
main {
	position: relative;
	z-index: 1;
}

.page-template-front-page #content,
.home #content {
	padding: 0;
}

.page-template-front-page #content .ast-container,
.home #content .ast-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

@media (min-width: 922px) {
	.page-template-front-page .site-content .ast-container,
	.home .site-content .ast-container {
		display: block !important;
		flex-direction: unset !important;
		flex-wrap: unset !important;
		align-items: unset !important;
		justify-content: unset !important;
	}
}

.ausbia-background {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	background: black;
	z-index: 0;
	overflow: hidden;
}

/* 不再把背景限制在安全区内，让背景铺满整屏（含 iPhone 刘海/圆角区域），与页面内容可进入圆角区一致 */

.ausbia-background__canvas {
	position: absolute;
	/* 保持固定宽高比（16:9），避免背景图案变形 */
	width: 100vw;
	height: 56.25vw; /* 16:9 宽高比 */
	min-height: 100vh;
	min-width: 177.78vh; /* 16:9 宽高比 */
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.55;
	mix-blend-mode: screen;
	filter: saturate(140%);
}

/* iPhone 等设备：用 100dvh 占满可视高度，并延伸至安全区，与内容可进入上下圆角一致 */
@supports (height: 100dvh) {
	.ausbia-background {
		height: 100dvh;
		min-height: 100dvh;
	}
	.ausbia-background__canvas {
		min-height: 100dvh;
		min-width: 177.78dvh;
	}
}

.ausbia-background__glow,
.ausbia-background__orb,
.ausbia-background__mesh {
	position: absolute;
	filter: blur(0);
}

.ausbia-background__glow {
	top: 0;
	left: 50%;
	width: 120%;
	height: 120%;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(207, 16, 32, 0.4) 0%, rgba(37, 12, 8, 0) 60%);
}

.ausbia-background__orb {
	width: clamp(180px, 22vw, 280px);
	height: clamp(180px, 22vw, 280px);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(216, 161, 10, 0.4), rgba(216, 161, 10, 0));
	mix-blend-mode: screen;
}

.ausbia-background__orb.orb-1 {
	top: -12%;
	right: 20%;
}

.ausbia-background__orb.orb-2 {
	bottom: -18%;
	left: 15%;
	background: radial-gradient(circle, rgba(207, 16, 32, 0.5), rgba(207, 16, 32, 0));
}

.ausbia-background__mesh {
	inset: 0;
	background-image: radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 2px, transparent 2px);
	background-size: 50px 50px;
	background-position: 0 0;
	opacity: 0.55;
}

/* 移动端：关闭网格 mesh 背景，减轻视觉噪点与合成开销 */
@media (max-width: 768px) {
	.ausbia-background__mesh {
		display: none;
	}
}

.ausbia-hero {
	color: var(--ausbia-text-primary);
	padding: 80px 20px 0px 20px;
	border-radius: 0 0 clamp(36px, 8vw, 80px) clamp(36px, 8vw, 80px);
	overflow: hidden;
	min-height: min(100vh, 600px);
	display: flex;
	align-items: center;
	background: transparent;
	position: relative;
}

.ausbia-hero__particle-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.ausbia-hero__visual .ausbia-hero__particle-image {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 500px;
	pointer-events: auto;
	z-index: 0;
	opacity: 0.9;
	mix-blend-mode: screen;
}

.ausbia-hero__visual .ausbia-hero__particle-image canvas {
	width: 100%;
	height: 100%;
	min-height: 500px;
	display: block;
	background: transparent;
}

.ausbia-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.8rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: all 0.3s ease;
}

.ausbia-btn--primary {
	background: linear-gradient(135deg, rgba(216, 161, 10, 0.9), rgba(207, 16, 32, 0.92));
	color: #2a0c05;
	box-shadow: 0 18px 36px rgba(207, 16, 32, 0.35);
}

.ausbia-btn--primary:hover,
.ausbia-btn--primary:focus {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 24px 44px rgba(207, 16, 32, 0.45);
}

@media (max-width: 1024px) {
	.ausbia-hero {
		flex-direction: column;
		padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
	}
}

/* ========== 替代 Dashicons 箭头图标 ========== */
/* 使用纯 CSS 箭头替代 dashicons，避免加载 35KB 的字体文件 */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator:after {
	content: "" !important;
	font-family: inherit !important;
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	margin: 0 0 0 4px;
	vertical-align: middle;
	transform: rotate(0deg);
	transition: transform 0.3s ease;
}

/* 展开状态：箭头向上 */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children.mega-collapse-children.mega-toggle-on > a.mega-menu-link > span.mega-indicator:after,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children.mega-toggle-on > a.mega-menu-link > span.mega-indicator:after {
	transform: rotate(180deg);
}

/* 子菜单中的箭头：向右 */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout li.mega-menu-item a.mega-menu-link > span.mega-indicator:after {
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
	border-right: none;
	transform: rotate(0deg);
	margin: 0 0 0 4px;
}

/* 右对齐的弹出菜单：箭头向左 */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout.mega-align-bottom-right li.mega-menu-item a.mega-menu-link > span.mega-indicator:after {
	border-left: none;
	border-right: 5px solid currentColor;
	margin: 0 4px 0 0;
}

@media only screen and (max-width: 768px) {
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children.mega-toggle-on > a.mega-menu-link > span.mega-indicator:after {
		transform: rotate(180deg);
	}
}

