/*!
 * Author: Mashiro (刘舒羽)
 * Site: https://2heng.xin
 * License: MIT
 * 性能优化版本 v5.0 - 2026-08-19
 */

/* ========================================
   性能优化：CSS层
   ======================================== */

/* GPU加速提示 - 减少重绘（保留原有字体设置）*/
* {
	font-family: "MiSans", "Microsoft YaHei", Arial, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* 避免文本和边框被选中影响性能 */
	-webkit-tap-highlight-color: transparent;
}

/* 性能优化：will-change提示 */
.will-change-transform {
	will-change: transform;
}

.will-change-opacity {
	will-change: opacity;
}

/* 减少动画时的布局抖动 */
@keyframes anti-shake {
	0% { transform: translateZ(0); }
	100% { transform: translateZ(0); }
}

/* 图片优化默认值 - 保持原始质量，不压缩核心图片 */
img {
	max-width: 100%;
	height: auto;
	/* 移除 image-rendering 优化以保持图片清晰度 */
	/* 仅对非关键图片使用优化（通过类名控制） */
}

/* 仅对装饰性小图标使用优化渲染 */
.icon-optimized,
.bg-pattern {
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

/* 滚动容器优化 */
html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
	/* 移除 text-rendering: optimizeSpeed 以保持字体显示质量 */
	/* 文本渲染使用浏览器默认的 optimizeLegibility */
}

/* ========================================
   原有样式开始
   ======================================== */

/* normalize */

/* normalize */

article,
aside,
details,
figcaption,
figure,
footer,
header,
img,
main,
menu,
nav,
section,
summary {
	display: block
}

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #1a1a1a;
}

/* Lenis 平滑滚动支持 */
html.lenis, html.lenis body {
	height: auto;
}

html.lenis {
	overflow: hidden; /* Lenis 需要隐藏原生滚动 */
}

/* 确保滚动容器正确工作 */
.lenis-smooth {
	scroll-behavior: auto !important; /* 让 Lenis 控制滚动行为 */
}

a {
	color: #20c9b8;
	text-decoration: none;
	cursor: pointer
}

a:hover {
	text-decoration: underline;
}

a[href*="www.cnzz.com"] {
	display: none
}

/* header */
header {
	position: fixed;
	height: 100%;
	z-index: 1;
	pointer-events: none
}

.author {
	font-family: 'Noto Sans SC', sans-serif;
	color: #fff;
	font-size: 3vh;
	font-weight: 500;
	pointer-events: auto;
	margin: 10px;
	position: fixed;
}

.author a {
	color: #fff
}

.social-link {
	display: inline-block;
	height: 3vh;
	width: 3vh;
}

.level-box-container {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.level-box {
	height: 196px;
	width: 172px;
	transform: scale(1);
	/*  adapter */
	transform-origin: center left;
}

.level-logo {
	position: absolute;
	height: 196px;
	width: 172px;
	background: url(../img/UI_HOME.png);
	background-position: 494px 828px;
	filter: brightness(30%);
}

.user-level {
	position: absolute;
	margin-top: 89px;
	height: 34px;
	width: 172px;
	background: url(../img/UI_HOME.png);
	background-position: -20px -238px;
	background-size: auto 3650%;
}

.chart-bg {
	position: absolute;
	margin: -79px auto auto 54px;
	height: 115px;
	width: 115px;
	background: url(../img/UI_HOME.png);
	background-position: 0px -295px;
	background-size: auto 1103%;
}

.chart-pr {
	position: absolute;
	margin: -79px auto auto 54px;
	height: 115px;
	width: 115px;
	background: url(../img/UI_HOME.png);
	background-position: 488px -398px;
	background-size: auto 1103%;
}

.level-num {
	font-family: 'Noto Sans SC', sans-serif;
	color: #fff;
	font-size: 60px;
	font-weight: 500;
	position: absolute;
	margin: -60px 80px;
}

.user-info .name {
	font-family: 'Noto Sans SC', sans-serif;
	color: #fff;
	font-size: 33px;
	font-weight: 500;
	position: absolute;
	margin: 134px 62px;
}

.user-info .id {
	font-family: 'Noto Sans SC', sans-serif;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	position: absolute;
	margin: 171px 72px;
	width: 100%;
}

/* view box layout */
.view-box {
	width: 100%;
	height: 100%;
}


.mark {
	position: relative;
	width: 100%;
	height: 560px;
	overflow: hidden;
	background:
		radial-gradient(circle at 72% 43%, rgba(32, 201, 184, .12), transparent 28%),
		radial-gradient(circle at 14% 72%, rgba(255, 255, 255, .05), transparent 24%),
		linear-gradient(90deg, #25292c, #303438 54%, #202326);
}

.mark::before,
.mark::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.mark::before {
	opacity: .32;
	background-image:
		linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
		linear-gradient(45deg, rgba(255, 255, 255, .10) 1px, transparent 1px),
		linear-gradient(-45deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 120px 120px, 120px 120px;
}

.mark::after {
	opacity: .24;
	background-image: radial-gradient(rgba(255, 255, 255, .42) 1px, transparent 1.8px);
	background-size: 9px 9px;
	mask-image:
		radial-gradient(circle at 70% 48%, #000 0 19%, transparent 35%),
		radial-gradient(circle at 8% 68%, #000 0 22%, transparent 38%);
}

#bg-img {
	opacity: 0;
}

.layer {
	position: relative;
	z-index: 1;
}

.cover {
	position: absolute;
	max-width: none;
}

.layer {
	pointer-events: none
}

.menu.box {
	pointer-events: initial
}

/* left perspective */
/* prefix */
#left-menu-layer {
	bottom: 0 !important;
	top: auto !important
}

.left.menu.box {
	width: 50vw;
	height: 98vh;
	margin: 0 auto auto 2vh;
	transform: perspective(30em) rotateY(10deg) scale(0.9);
	display: -webkit-flex;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-end;
}

.left.menu.box .container {
	height: 200px;
	width: 420px;
	display: -webkit-flex;
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
	transform: scale(1);
	/* adapter */
	transform-origin: bottom left;
}

.left.menu.box .container .top {
	height: 40%;
	width: 100%
}

.left.menu.box .container .bottom {
	height: 60%;
	width: 100%;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
}

.left.menu.box .container .bottom .left {
	padding: 5px;
	width: 60%;
	height: 100%
}

.left.menu.box .container .bottom .right {
	width: 40%;
	height: 100%
}

.left.menu.box .container .bottom .right .pos-1 {
	height: 50%;
	width: 100%;
}

.left.menu.box .container .bottom .right .pos-2 {
	height: 50%;
	width: 100%;
}

.left.menu.box .container .top .dialog {
	background-color: rgba(0, 0, 0, .7);
	padding: 10px 5px;
	margin: 0 5px;
	width: calc(100% - 20px);
	height: 57px;
	font-family: 'Noto Sans SC', sans-serif;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 57px;
}

.left.menu.box .container .top .dialog .dialog-text {
	display: inline-block;
	vertical-align: middle;
	line-height: initial;
}

.left.menu.box .container .bottom .left::before {
	content: "";
	height: 24px;
	width: 140px;
	background: url(../img/UI_HOME.png);
	background-position: -147px 1913px;
	background-size: auto 6000%;
	position: absolute;
	margin: -5px;
}

.left.menu.box .container .bottom .left .activity-img {
	height: 115px;
	width: 251px;
	background: url(../img/UI_HOME_ACTIVITY_BANNER_ZONE.png);
	background-position: -14px -38px;
	background-size: 238%;
}

.left.menu.box .container .bottom .right .pos-1 .friends {
	background-color: #424242;
	opacity: .9;
	margin: 5px 5px 2.5px 5px;
	width: calc(100% - 10px);
	height: calc(100% - 7.5px);
}


.left.menu.box .container .bottom .right .pos-1 .friends .icon {
	height: 35px;
	width: 35px;
	background: url(../img/UI_HOME.png);
	background-position: -69px -26px;
	background-size: auto 1800%;
	position: absolute;
	margin: 8px;
}

.left.menu.box .container .bottom .right .pos-1 .friends .text {
	font-family: 'Noto Serif SC', serif;
	color: #fff;
	font-size: 25px;
	font-weight: 900;
	text-align: right;
	padding: 13px;
}

.left.menu.box .container .bottom .right .pos-2 .information {
	background-color: #e9e9e9;
	opacity: .9;
	margin: 2.5px 5px 5px 5px;
	width: calc(100% - 10px);
	height: calc(100% - 7.5px);
}

.left.menu.box .container .bottom .right .pos-2 .information .icon {
	height: 35px;
	width: 35px;
	background: url(../img/UI_HOME.png);
	background-position: -195px -897px;
	background-size: auto 1750%;
	position: absolute;
	margin: 8px;
	filter: invert(30%);
}

.left.menu.box .container .bottom .right .pos-2 .information .text {
	font-family: 'Noto Serif SC', serif;
	color: #323232;
	font-size: 25px;
	font-weight: 900;
	text-align: right;
	padding: 13px;
}

/* right perspective */
/* prefix */
#right-menu-layer {
	right: 0 !important;
	left: auto !important;
	bottom: 0 !important;
	top: auto !important
}

.right.menu.box {
	width: 783px;
	height: 640px;
	/*
	margin: 0 auto auto calc(51vw - 40px);
	*/
	float: right;
	margin: 0 -80px auto auto;
	transform: perspective(30em) rotateY(-10deg) scale(0.9);
}

.right.menu.box .popup {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.5);
	height: 100%;
	width: 100%;
	display: -webkit-flex;
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
	display: none
}


.right.menu.box .container {
	height: 640px;
	width: 783px;
	display: -webkit-flex;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	transform: scale(1);
	/* adapter */
	transform-origin: bottom right;
}

.right.menu.box .container .pos-1 {
	height: 80px;
	display: -webkit-flex;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
}

.right.menu.box .container .pos-1 .top {
	height: 35%;
	width: auto;
	margin: 0 0 0 80px;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
}

.right.menu.box .container .pos-1 .top .time {
	color: #fff;
	font-family: 'Noto Sans SC', sans-serif;
	font-size: 18px;
	white-space: nowrap;
	margin: 0 10px
}

.right.menu.box .container .pos-1 .top .battery {
	margin-left: 10px;
	height: 20px;
	width: 34px;
	background: url(../img/UI_HOME.png);
	background-position: 0px -34px;
	background-size: auto 4500%;
}

.right.menu.box .container .pos-1 .top .line-left {
	width: 60px;
	height: 3px;
	margin-top: 8px;
	background-color: #fff;
}

.right.menu.box .container .pos-1 .top .line-right {
	width: 500px;
	height: 3px;
	margin-top: 8px;
	background-color: #fff;
}

.right.menu.box .container .pos-1 .bottom {
	height: 65%;
}

.right.menu.box .container .pos-1 .bottom .bg {
	background-color: rgba(0, 0, 0, .2);
	margin-top: 5px;
	height: 40px;
	width: 100%
}

.right.menu.box .container .pos-1 .bottom .status {
	position: absolute;
	margin: -45px 0 0 80px;
	height: 50px;
	width: 100%;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
}

.right.menu.box .container .pos-1 .bottom .status .item {
	height: 100%;
	margin: 0 20px 0 0;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	align-items: center
}

.right.menu.box .container .pos-1 .bottom .status .item .icon {}

.right.menu.box .container .pos-1 .bottom .status .item.money .icon {
	width: 80px;
	height: 50px;
	background: url(../img/UI_HOME.png);
	background-position: -1225px -355px;
	background-size: auto 6600%;
}

.right.menu.box .container .pos-1 .bottom .status .item.jasper .icon {
	width: 50px;
	height: 50px;
	background: url(../img/UI_HOME.png);
	background-position: -446px -1103px;
	background-size: auto 5300%;
}

.right.menu.box .container .pos-1 .bottom .status .item.stone .icon {
	width: 50px;
	height: 50px;
	background: url(../img/UI_HOME.png);
	background-position: -1040px -464px;
	background-size: auto 5200%;
}

.right.menu.box .container .pos-1 .bottom .status .item .amount {
	color: #fff;
	font-family: 'Noto Sans SC', sans-serif;
	font-size: 33px;
	white-space: nowrap;
	margin: 0 10px
}

.right.menu.box .container .pos-1 .bottom .status .item .more {
	width: 36px;
	height: 36px;
	background: url(../img/UI_HOME.png);
	background-position: -732px -595px;
	background-size: auto 5800%;
}

.right.menu.box .container .pos-2 {
	height: 200px;
}

.right.menu.box .container .pos-2 .intellect {
	background-color: #fdfdfb;
	opacity: .9;
	height: calc(100% - 20px);
	width: 800px;
	margin: 8px 0 0 80px;
}

.right.menu.box .container .pos-2 .intellect::after {
	content: "";
	background-color: #ff5e19;
	opacity: .9;
	height: 6px;
	width: 310px;
	margin: -3px 0 0 230px;
	position: absolute;
}

.right.menu.box .container .pos-2 .intellect .icon {
	margin-top: 15.5px;
	margin-left: 360px;
	width: 140px;
	height: 140px;
	position: absolute;
	background: url(../img/UI_HOME.png);
	background-position: -588px -751px;
	background-size: auto 1600%;
	filter: invert(20%);
	opacity: .5
}

.right.menu.box .container .pos-2 .intellect .content {
	height: 100%;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	align-items: flex-start
}

.right.menu.box .container .pos-2 .intellect .content .figure {
	width: 195px;
	height: 130px;
	margin: 20.5px 0 0 10px;
	background: url(../img/UI_HOME.png);
	background-position: 0px -531px;
	background-size: auto 1257%;
}

.right.menu.box .container .pos-2 .intellect .content .figure .value {
	color: #333333;
	font-family: 'Noto Sans SC', sans-serif;
	font-size: 70px;
	font-weight: 700;
	text-align: right;
	margin: 0 20px;
	text-shadow: #8b8b8b 5px 5px 0px;
}

.right.menu.box .container .pos-2 .intellect .content .figure .total {
	color: #fff;
	font-family: 'Noto Sans SC', sans-serif;
	font-size: 25px;
	text-align: right;
	margin: 15px 20px;
}

.right.menu.box .container .pos-2 .intellect .content .battle {
	height: 100%;
	width: 100px;
	height: 130px;
	margin: 20.5px 0 0 15px;
	display: -webkit-flex;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: flex-start
}

.right.menu.box .container .pos-2 .intellect .content .battle .text {
	font-family: 'Noto Serif SC', serif;
	color: #323232;
	font-size: 60px;
	font-weight: 900;
	white-space: nowrap
}

.right.menu.box .container .pos-2 .intellect .content .battle .current {
	font-family: 'Noto Sans SC', sans-serif;
	color: #fff;
	background-color: #3c3c3c;
	border-radius: 5px;
	font-size: 20px;
	font-weight: 500;
	white-space: nowrap;
	padding: 3px;
	margin: 2.5px 0;
}

.right.menu.box .container .pos-2 .intellect .content .battle .level {
	font-family: 'Noto Sans SC', serif;
	color: #3c3c3c;
	font-size: 20px;
	font-weight: 500;
	white-space: nowrap;
}

.right.menu.box .container .pos-3 {
	height: 130px;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
}

.right.menu.box .container .pos-3 .team {
	background-color: #fff;
	opacity: .9;
	height: calc(100% - 20px);
	width: 280px;
	margin: 8px 0 0 40px;
}

.right.menu.box .container .pos-3 .team .icon {
	width: 80px;
	height: 80px;
	background: url(../img/UI_HOME.png);
	background-position: 354px -330px;
	background-size: auto 1500%;
	position: absolute;
	margin: 13px 0 0 166px;
	filter: invert(20%);
	opacity: .5
}

.right.menu.box .container .pos-3 .team .text {
	font-family: 'Noto Serif SC', serif;
	color: #323232;
	font-size: 40px;
	font-weight: 900;
	white-space: nowrap;
	margin: 15px;
}

.right.menu.box .container .pos-3 .member {
	background-color: #ebeceb;
	opacity: .9;
	height: calc(100% - 20px);
	width: 280px;
	margin: 8px 0 0 16px;
}

.right.menu.box .container .pos-3 .member .icon {
	width: 80px;
	height: 80px;
	background: url(../img/UI_HOME.png);
	background-position: 296px -477px;
	background-size: auto 1500%;
	position: absolute;
	margin: 13px 0 0 166px;
	filter: invert(20%);
	opacity: .5
}

.right.menu.box .container .pos-3 .member .text {
	font-family: 'Noto Serif SC', serif;
	color: #323232;
	font-size: 40px;
	font-weight: 900;
	white-space: nowrap;
	margin: 15px;
}

.right.menu.box .container .pos-3 .member .desc {
	font-family: 'Noto Sans SC', sans-serif;
	color: #989898;
	font-size: 20px;
	font-weight: 500;
	white-space: nowrap;
	margin: -11px 15px;
}

.right.menu.box .container .pos-3 .blank {
	background-color: #161919;
	opacity: .9;
	height: calc(100% - 20px);
	width: 200px;
	margin: 8px 0 0 16px
}

.right.menu.box .container .pos-4 {
	height: 130px;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;

}

.right.menu.box .container .pos-4 .shop {
	background-color: #20c9b8;
	opacity: .9;
	height: calc(100% - 20px);
	width: 240px;
	margin: 8px 0 0 120px;
	border-right: 1px solid transparent;
	border-image: -webkit-linear-gradient(#20c9b8, #454545, #20c9b8) 1;
	border-image: -moz-linear-gradient(#20c9b8, #454545, #20c9b8) 1;
	border-image: linear-gradient(#20c9b8, #454545, #20c9b8) 1;
}

.right.menu.box .container .pos-4 .shop .icon {
	width: 93px;
	height: 80px;
	background: url(../img/UI_HOME.png);
	background-position: 284px -360px;
	background-size: auto 2000%;
	position: absolute;
	margin: 13px 0 0 136px;
	opacity: .5;
}

.right.menu.box .container .pos-4 .shop .text {
	font-family: 'Noto Serif SC', serif;
	color: #fff;
	font-size: 40px;
	font-weight: 900;
	white-space: nowrap;
	margin: 40px 0 0 60px;
}

.right.menu.box .container .pos-4 .gamble {
	background-color: #20c9b8;
	opacity: .9;
	height: calc(100% - 20px);
	width: 340px;
	margin: 8px 0;
	display: -webkit-flex;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
}

.right.menu.box .container .pos-4 .gamble .top {
	background-color: #454545;
	width: 330px;
	height: 30px;
	margin: 5px;
}

.right.menu.box .container .pos-4 .gamble .top .icon {
	width: 20px;
	height: 20px;
	background: url(../img/UI_HOME.png);
	background-position: -84px -138px;
	background-size: auto 2000%;
	position: absolute;
	margin: 5px 0 0 5px;
	opacity: .5
}

.right.menu.box .container .pos-4 .gamble .top .text {
	font-family: 'Noto Sans SC', sans-serif;
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	white-space: nowrap;
	margin: 2px 0 0 30px;
}

.right.menu.box .container .pos-4 .gamble .bottom {
	width: 330px;
	height: 60px;
	margin: 0 0 5px 5px;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
}

.right.menu.box .container .pos-4 .gamble .bottom .left {
	width: 50%;
	height: 100%;
	border-right: 1px solid transparent;
	border-image: -webkit-linear-gradient(#20c9b8, #454545, #20c9b8) 1;
	border-image: -moz-linear-gradient(#20c9b8, #454545, #20c9b8) 1;
	border-image: linear-gradient(#20c9b8, #454545, #20c9b8) 1;
}

.right.menu.box .container .pos-4 .gamble .bottom .left .icon {
	width: 50px;
	height: 50px;
	background: url(../img/UI_HOME.png);
	background-position: 276px -172px;
	background-size: auto 1600%;
	position: absolute;
	margin: 5px 0 0 5px;
	opacity: .5;
}

.right.menu.box .container .pos-4 .gamble .bottom .left .text {
	font-family: 'Noto Serif SC', serif;
	color: #fff;
	font-size: 30px;
	font-weight: 900;
	white-space: nowrap;
	margin: 10px 0 0 20px;
}

.right.menu.box .container .pos-4 .gamble .bottom .right {
	width: 50%;
	height: 100%
}

.right.menu.box .container .pos-4 .gamble .bottom .right .icon {
	width: 50px;
	height: 50px;
	background: url(../img/UI_HOME.png);
	background-position: 188px -228px;
	background-size: auto 1650%;
	position: absolute;
	margin: 5px 0 0 5px;
	opacity: .5;
}

.right.menu.box .container .pos-4 .gamble .bottom .right .text {
	font-family: 'Noto Serif SC', serif;
	color: #fff;
	font-size: 30px;
	font-weight: 900;
	white-space: nowrap;
	margin: 10px 0 0 20px;
}

.right.menu.box .container .pos-5 {
	height: 130px;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
}

.right.menu.box .container .pos-5 .task {
	background-color: #fff;
	opacity: .9;
	height: calc(100% - 20px);
	width: 240px;
	margin: 8px 0 0 80px;
}

.right.menu.box .container .pos-5 .task::before {
	content: "";
	background-color: #ff5e19;
	opacity: .9;
	height: 6px;
	width: 180px;
	margin: -3px 0 0 30px;
	position: absolute;
}

.right.menu.box .container .pos-5 .task .icon {
	width: 72px;
	height: 80px;
	background: url(../img/UI_HOME.png);
	background-position: -1px -90px;
	background-size: auto 1800%;
	position: absolute;
	margin: 13px 0 0 136px;
	opacity: .5;
	filter: invert(30%);
}

.right.menu.box .container .pos-5 .task .text {
	font-family: 'Noto Serif SC', serif;
	color: #323232;
	font-size: 40px;
	font-weight: 900;
	white-space: nowrap;
	margin: 15px;
}

.right.menu.box .container .pos-5 .infrastructure {
	background-color: #ebeceb;
	opacity: .9;
	height: calc(100% - 20px);
	width: 240px;
	margin: 8px 0 0 16px;
}

.right.menu.box .container .pos-5 .infrastructure .icon {
	width: 80px;
	height: 80px;
	background: url(../img/UI_HOME.png);
	background-position: -69px -61px;
	background-size: auto 1700%;
	position: absolute;
	margin: 13px 0 0 136px;
	opacity: .5;
	filter: invert(30%);
}

.right.menu.box .container .pos-5 .infrastructure .text {
	font-family: 'Noto Serif SC', serif;
	color: #323232;
	font-size: 40px;
	font-weight: 900;
	white-space: nowrap;
	margin: 15px;
}

.right.menu.box .container .pos-5 .infrastructure .beta {
	width: 40px;
	height: 9px;
	background: url(../img/UI_HOME.png);
	background-position: -20px -34px;
	background-size: 1700% auto;
	position: absolute;
	margin: -16px 0 0 15px;
}

.right.menu.box .container .pos-5 .warehouse {
	background-color: #424242;
	opacity: .9;
	height: calc(100% - 20px);
	width: 90px;
	margin: 8px 0
}

.right.menu.box .container .pos-5 .warehouse .icon {
	width: 50px;
	height: 50px;
	background: url(../img/UI_HOME.png);
	background-position: 86px -472px;
	background-size: auto 1700%;
	position: absolute;
	margin: 42px 0 0 22px;
	opacity: .5;
}

.right.menu.box .container .pos-5 .warehouse .text {
	font-family: 'Noto Serif SC', serif;
	color: #fff;
	font-size: 30px;
	font-weight: 900;
	white-space: nowrap;
	margin: 15px;
}

/* Portfolio home menu overrides */
.right.menu.box .container .pos-2,
.right.menu.box .container .pos-3,
.right.menu.box .container .pos-4,
.right.menu.box .container .pos-5 {
	height: 130px;
}

.right.menu.box .container .pos-2 .intellect {
	height: calc(100% - 20px);
	width: 800px;
	margin: 8px 0 0 80px;
}

.right.menu.box .container .pos-2 .intellect .icon,
.right.menu.box .container .pos-2 .intellect .content .figure,
.right.menu.box .container .pos-2 .intellect .content .battle .current,
.right.menu.box .container .pos-2 .intellect .content .battle .level,
.right.menu.box .container .pos-3 .team,
.right.menu.box .container .pos-3 .member,
.right.menu.box .container .pos-3 .blank,
.right.menu.box .container .pos-4 .shop .icon,
.right.menu.box .container .pos-4 .gamble,
.right.menu.box .container .pos-5 .task .icon,
.right.menu.box .container .pos-5 .infrastructure .icon,
.right.menu.box .container .pos-5 .infrastructure .beta,
.right.menu.box .container .pos-5 .warehouse {
	display: none;
}

.right.menu.box .container .pos-2 .intellect .content,
.right.menu.box .container .pos-2 .intellect .content .battle {
	width: 100%;
	height: 100%;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.right.menu.box .container .pos-2 .intellect .content .battle {
	padding-left: 34px;
}

.right.menu.box .container .pos-2 .intellect .content .battle .text,
.right.menu.box .container .pos-3 .visual-portfolio .text,
.right.menu.box .container .pos-4 .shop .text,
.right.menu.box .container .pos-5 .task .text,
.right.menu.box .container .pos-5 .infrastructure .text {
	font-family: 'Noto Serif SC', serif;
	font-size: 42px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

.right.menu.box .container .pos-2 .intellect .content .battle .text {
	color: #323232;
	font-size: 46px;
	margin: 0;
}

.right.menu.box .container .pos-3 .visual-portfolio {
	background-color: #fff;
	opacity: .9;
	height: calc(100% - 20px);
	width: 640px;
	margin: 8px 0 0 40px;
}

.right.menu.box .container .pos-3 .visual-portfolio .text {
	color: #323232;
	margin: 34px 0 0 32px;
}

.right.menu.box .container .pos-4 .shop {
	width: 640px;
}

.right.menu.box .container .pos-4 .shop .text {
	color: #fff;
	font-size: 46px;
	margin: 33px 0 0 58px;
}

.right.menu.box .container .pos-5 .task,
.right.menu.box .container .pos-5 .infrastructure {
	width: 300px;
}

.right.menu.box .container .pos-5 .task .text,
.right.menu.box .container .pos-5 .infrastructure .text {
	color: #323232;
	margin: 34px 0 0 30px;
}

.right.menu.box .container .pos-2 .intellect,
.right.menu.box .container .pos-3 .visual-portfolio,
.right.menu.box .container .pos-4 .shop,
.right.menu.box .container .pos-5 .task,
.right.menu.box .container .pos-5 .infrastructure {
	cursor: pointer;
	transition: transform .16s ease, filter .16s ease;
}

.right.menu.box .container .pos-2 .intellect:hover,
.right.menu.box .container .pos-3 .visual-portfolio:hover,
.right.menu.box .container .pos-4 .shop:hover,
.right.menu.box .container .pos-5 .task:hover,
.right.menu.box .container .pos-5 .infrastructure:hover {
	transform: translateX(-8px);
}

/* Portfolio home menu refinement */
.right.menu.box .container .pos-1 .bottom .status .item {
	display: none;
}

.right.menu.box .container .pos-1 .bottom .bg {
	display: none;
}

.right.menu.box .container .pos-2,
.right.menu.box .container .pos-3,
.right.menu.box .container .pos-4,
.right.menu.box .container .pos-5 {
	height: 140px;
}

.right.menu.box .container .pos-2 .intellect,
.right.menu.box .container .pos-3 .visual-portfolio,
.right.menu.box .container .pos-4 .shop,
.right.menu.box .container .pos-5 .task,
.right.menu.box .container .pos-5 .infrastructure {
	height: calc(100% - 14px);
	border-radius: 14px;
	overflow: hidden;
	border-right: 0;
	border-image: none;
}

.right.menu.box .container .pos-2 .intellect::after,
.right.menu.box .container .pos-5 .task::before {
	display: none;
}

.right.menu.box .container .pos-2 .intellect .content .battle .text,
.right.menu.box .container .pos-3 .visual-portfolio .text,
.right.menu.box .container .pos-4 .shop .text,
.right.menu.box .container .pos-5 .task .text,
.right.menu.box .container .pos-5 .infrastructure .text {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 0 0 34px;
	font-size: 40px;
	line-height: 126px;
	text-align: left;
}

.right.menu.box .container .pos-2 .intellect .content .battle {
	padding-left: 0;
}

.right.menu.box .container .pos-2 .intellect .content .battle .text {
	padding-left: 56px;
}

.right.menu.box .container .pos-4 .shop .text {
	padding-left: 58px;
}

.right.menu.box .container .pos-5 .task .text,
.right.menu.box .container .pos-5 .infrastructure .text {
	padding-left: 30px;
}

.right.menu.box .container .pos-2 .intellect,
.right.menu.box .container .pos-3 .visual-portfolio,
.right.menu.box .container .pos-4 .shop {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 640px;
	padding: 0 32px 0 34px;
	background: rgba(255, 255, 255, .92);
	opacity: 1;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
}

.right.menu.box .container .pos-2 .intellect {
	margin-left: 80px;
}

.right.menu.box .container .pos-3 .visual-portfolio {
	margin-left: 40px;
}

.right.menu.box .container .pos-4 .shop {
	margin-left: 120px;
}

.right.menu.box .container .pos-2 .intellect .content,
.right.menu.box .container .pos-2 .intellect .content .battle {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: space-between;
	flex-direction: row;
	flex-flow: row nowrap;
	margin: 0;
}

.right.menu.box .container .pos-2 .intellect .content .battle {
	padding-left: 0;
}

.right.menu.box .container .pos-3 .visual-portfolio,
.right.menu.box .container .pos-4 .shop {
	height: calc(100% - 14px);
}

.right.menu.box .container .pos-2 .intellect .content .battle .text,
.right.menu.box .container .pos-3 .visual-portfolio .text,
.right.menu.box .container .pos-4 .shop .text {
	width: auto;
	margin: 0;
	padding: 0;
	color: #050505;
	font-size: 38px;
	line-height: 1.05;
	font-weight: 900;
	white-space: nowrap;
}

.right.menu.box .container .pos-2 .intellect .content .battle .text {
	padding-left: 0;
}

.right.menu.box .container .pos-4 .shop .text {
	padding-left: 0;
	color: #fff;
}

.menu-copy {
	position: relative;
	padding-left: 22px;
	min-width: 232px;
}

.menu-copy::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 8px;
	height: 84px;
	border-radius: 0;
	background: #20c9b8;
	transform: translateY(-50%);
}

.menu-copy .subtitle {
	margin-top: 10px;
	color: #7d7d7d;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.menu-covers {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cover-placeholder {
	width: 148px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 46%),
		#20c9b8;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform-origin: center;
	transition: transform .5s cubic-bezier(.66, 0, .18, 1);
}

.right.menu.box .container .pos-4 .shop {
	background: #20c9b8;
}

.right.menu.box .container .pos-4 .shop .menu-copy .subtitle {
	color: rgba(255, 255, 255, .72);
}

.right.menu.box .container .pos-4 .shop .menu-copy::before {
	background: rgba(255, 255, 255, .88);
}

.right.menu.box .container .pos-4 .shop .menu-covers {
	margin-left: auto;
}

.right.menu.box .container .pos-4 .shop .cover-placeholder {
	width: 100%;
	background:
		linear-gradient(135deg, rgba(32, 201, 184, .12), transparent 46%),
		rgba(255, 255, 255, .88);
}

.right.menu.box .container .pos-2 .intellect .menu-covers,
.right.menu.box .container .pos-3 .visual-portfolio .menu-covers,
.right.menu.box .container .pos-4 .shop .menu-covers {
	display: block;
	margin-left: auto;
	position: relative;
	overflow: hidden;
	width: 270px;
	aspect-ratio: 16 / 9;
}

.right.menu.box .container .pos-2 .intellect .cover-placeholder,
.right.menu.box .container .pos-3 .visual-portfolio .cover-placeholder,
.right.menu.box .container .pos-4 .shop .cover-placeholder {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

/* 轮播滑动：第一张可见，第二张停在右侧等待滑入 */
.right.menu.box .container .pos-2 .intellect .cover-placeholder:nth-child(1),
.right.menu.box .container .pos-3 .visual-portfolio .cover-placeholder:nth-child(1),
.right.menu.box .container .pos-4 .shop .cover-placeholder:nth-child(1) {
	position: absolute;
	transform: translateX(0%);
}

.right.menu.box .container .pos-2 .intellect .cover-placeholder:nth-child(2),
.right.menu.box .container .pos-3 .visual-portfolio .cover-placeholder:nth-child(2),
.right.menu.box .container .pos-4 .shop .cover-placeholder:nth-child(2) {
	transform: translateX(100%);
}

.right.menu.box .container .pos-5 .task,
.right.menu.box .container .pos-5 .infrastructure {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 300px;
	padding: 0 24px;
	background: rgba(255, 255, 255, .92);
	opacity: 1;
	border-radius: 14px;
	box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
}

.right.menu.box .container .pos-5 .task .menu-copy,
.right.menu.box .container .pos-5 .infrastructure .menu-copy {
	min-width: 0;
	padding-left: 20px;
}

.right.menu.box .container .pos-5 .task .menu-copy::before,
.right.menu.box .container .pos-5 .infrastructure .menu-copy::before {
	width: 7px;
	height: 72px;
}

.right.menu.box .container .pos-5 .task .text,
.right.menu.box .container .pos-5 .infrastructure .text {
	width: auto;
	margin: 0;
	padding: 0;
	color: #050505;
	font-size: 34px;
	line-height: 1.05;
	font-weight: 900;
	white-space: nowrap;
}

.right.menu.box .container .pos-5 .task .subtitle,
.right.menu.box .container .pos-5 .infrastructure .subtitle {
	margin-top: 9px;
	color: #7d7d7d;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.right.menu.box .container .pos-2 .intellect:hover,
.right.menu.box .container .pos-3 .visual-portfolio:hover,
.right.menu.box .container .pos-4 .shop:hover {
	transform: translateX(-8px);
}

/* Portfolio left panel overrides */
.level-box-container {
	display: none;
}

.left.menu.box .container {
	height: 250px;
	gap: 12px;
}

.left.menu.box .container .top {
	height: 92px;
}

.left.menu.box .container .top .dialog {
	box-sizing: border-box;
	width: 100%;
	height: 92px;
	margin: 0;
	padding: 0 24px;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .9);
	border-radius: 14px;
	color: #323232;
	font-size: 26px;
	line-height: 1.35;
	font-weight: 900;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.left.menu.box .container .top .dialog::before {
	display: none;
}

.left.menu.box .container .top .dialog span {
	display: block;
	line-height: 1.35;
}

.left.menu.box .container .bottom {
	box-sizing: border-box;
	height: 146px;
	padding: 14px;
	display: block;
	background: rgba(255, 255, 255, .92);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.left.menu.box .container .bottom .left {
	width: 100%;
	height: 100%;
	padding: 0;
}

.left.menu.box .container .bottom .left::before,
.left.menu.box .container .bottom .right {
	display: none;
}

.left.menu.box .container .bottom .left .activity-img {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: #3a3a3a;
	border: 2px dashed rgba(255, 255, 255, .22);
	border-radius: 10px;
}

.left.menu.box .container .bottom .left .activity-img::after {
	content: "图片占位";
	color: rgba(50, 50, 50, .5);
	font-family: 'Noto Sans SC', sans-serif;
	font-size: 22px;
	font-weight: 900;
}

/* Portfolio card tail and dialog refinements */
.right.menu.box .container .pos-2 .intellect,
.right.menu.box .container .pos-3 .visual-portfolio,
.right.menu.box .container .pos-4 .shop {
	padding-right: 0;
}

.right.menu.box .container .pos-2 .intellect .menu-covers,
.right.menu.box .container .pos-3 .visual-portfolio .menu-covers,
.right.menu.box .container .pos-4 .shop .menu-covers {
	margin-left: auto;
	flex-shrink: 0;
	height: 100%;
	width: auto;
}

.right.menu.box .container .pos-2 .intellect .cover-placeholder,
.right.menu.box .container .pos-3 .visual-portfolio .cover-placeholder,
.right.menu.box .container .pos-4 .shop .cover-placeholder {
	width: auto;
	height: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0 16px 16px 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	image-rendering: -webkit-optimize-contrast;
	backface-visibility: hidden;
	transform: scale(1.2);
	transform-origin: right center;
}

.left.menu.box .container {
	height: 300px;
	justify-content: center; /* 4个气泡在容器内垂直居中 */
	gap: 0;
}

.left.menu.box .container .top {
	height: auto;
}

/* 通用气泡容器：微信式圆角矩形 + 左下角尖角 */
.left.menu.box .container .top .dialog,
.chat-line {
	position: relative;
	box-sizing: border-box;
	width: max-content;
	max-width: 100%;
	height: 48px;
	min-height: 48px;
	padding: 0 22px;
	margin-bottom: 12px;
	margin-top: 0;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .9);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
	overflow: visible; /* 允许尖角伸出 */
	transform-origin: left center;
}

/* 微信式左侧尖角：等腰三角形，尖端朝左，右侧边与气泡主体相连 */
.left.menu.box .container .top .dialog::after,
.chat-line::after {
	content: "";
	position: absolute;
	left: -9.5px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 10px 8px 0; /* 上 右 下 左，形成朝左的三角形 */
	border-color: transparent rgba(255, 255, 255, .9) transparent transparent;
	pointer-events: none;
}

/* 文字层：打字动画只裁文字，不裁尖角 */
.left.menu.box .container .top .dialog .dialog-text,
.chat-line .dialog-text {
	display: inline-block;
	position: relative;
	margin: 0;
	color: #323232;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	clip-path: inset(0 100% 0 0);
	animation: chat-type-in 1.35s steps(30, end) forwards;
}

.left.menu.box .container .bottom {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	height: auto;
	padding: 0;
}

.left.menu.box .container .bottom .left,
.left.menu.box .container .bottom .left .activity-img {
	height: auto;
	width: 100%;
}

.left.menu.box .container .bottom .left .activity-img {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	background: transparent;
	border: 0;
}

.chat-line:nth-child(1) .dialog-text {
	animation-delay: 1.4s;
}

.chat-line:nth-child(2) .dialog-text {
	animation-delay: 3.05s;
}

@keyframes chat-bubble-in {
	from {
		opacity: 0;
		transform: scaleX(.08);
	}
	to {
		opacity: 1;
		transform: scaleX(1);
	}
}

@keyframes chat-type-in {
	to {
		clip-path: inset(0 0 0 0);
	}
}

/* === WA 微信语音气泡样式（青绿色，无文字，语音图标+声波，左对齐） === */
.left.menu.box .container .top .dialog.dialog-wa {
	background: #20c9b8;
	color: #fff;
	border: none;
	box-shadow: 0 14px 30px rgba(32, 201, 184, .35);
	padding: 0 18px;
	min-height: 48px;
	min-width: 180px;
	justify-content: flex-start;
	gap: 10px;
	font-size: 0;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
	animation: chat-bubble-in .42s cubic-bezier(.2, .85, .2, 1) both;
}

/* WA 尖角颜色与气泡完全一致 */
.left.menu.box .container .top .dialog.dialog-wa::after {
	border-right-color: #20c9b8;
}

/* 语音时长（6'） */
.left.menu.box .container .top .dialog.dialog-wa .voice-duration {
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	line-height: 1;
	flex-shrink: 0;
}

/* 声波条纹（3条递增高度的竖线） */
.left.menu.box .container .top .dialog.dialog-wa .voice-wave {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 20px;
}

.left.menu.box .container .top .dialog.dialog-wa .voice-wave i {
	display: block;
	width: 3px;
	background: #fff;
	border-radius: 2px;
	opacity: .9;
}

.left.menu.box .container .top .dialog.dialog-wa .voice-wave i:nth-child(1) { height: 8px; }
.left.menu.box .container .top .dialog.dialog-wa .voice-wave i:nth-child(2) { height: 14px; }
.left.menu.box .container .top .dialog.dialog-wa .voice-wave i:nth-child(3) { height: 10px; }

/* 声波动画（依次跳动） */
@keyframes voice-wave-1 {
	0%, 100% { height: 8px; }
	50% { height: 16px; }
}
@keyframes voice-wave-2 {
	0%, 100% { height: 14px; }
	50% { height: 6px; }
}
@keyframes voice-wave-3 {
	0%, 100% { height: 10px; }
	50% { height: 18px; }
}

.left.menu.box .container .top .dialog.dialog-wa .voice-wave i:nth-child(1) {
	animation: voice-wave-1 .8s ease-in-out infinite;
}
.left.menu.box .container .top .dialog.dialog-wa .voice-wave i:nth-child(2) {
	animation: voice-wave-2 .8s ease-in-out infinite .15s;
}
.left.menu.box .container .top .dialog.dialog-wa .voice-wave i:nth-child(3) {
	animation: voice-wave-3 .8s ease-in-out infinite .3s;
}

/* 面试官对话框入场 + 文字打字 */
.left.menu.box .container .top .dialog:not(.dialog-wa) {
	animation: chat-bubble-in .56s cubic-bezier(.16, 1, .3, 1) both;
}

.left.menu.box .container .top .dialog:not(.dialog-wa) .dialog-text {
	animation-delay: 1.4s;
}

/* === 优化打字动画：更平滑的步进 === */
@keyframes chat-type-in {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

@keyframes chat-bubble-in {
	from {
		opacity: 0;
		transform: scaleX(.2) translateX(-8px);
	}
	60% {
		opacity: 1;
		transform: scaleX(1.02) translateX(0);
	}
	to {
		opacity: 1;
		transform: scaleX(1) translateX(0);
	}
}

/* WA 标签用更利落的进入动画 */
.left.menu.box .container .top .dialog.dialog-wa {
	animation: chat-bubble-in .42s cubic-bezier(.2, .85, .2, 1) both;
}

/* character perspective box */
#char-arts-layer {
	left: 88px !important;
	top: -70px !important;
	pointer-events: auto;
}

.char.perspective.box {
	width: 80%;
}

.char.perspective.box img {
	width: 100%
}

.char.perspective.box.portfolio-hero {
	position: relative;
	width: 882px;
	transform: translate(10px, 35px) scale(.9);
	transform-origin: center center;
	pointer-events: none;  /* 容器本身不响应事件 */
}

/* 允许覆盖图响应鼠标事件 */
.char.perspective.box.portfolio-hero .hero-overlay {
	pointer-events: auto !important;  /* 强制覆盖图启用鼠标事件 */
}

.right.menu.box .container .pos-1 .top {
	margin-top: 44px;
}

/* 只针对立绘主图，不影响覆盖层 */
.char.perspective.box.portfolio-hero > img:not(.hero-overlay) {
	width: 100%;
	height: auto;
}

/* 立绘覆盖层：用 img/resumephoto.png 和 img/catpaw.png 精确覆盖立绘中原有的物品 */
/*
 * 立绘容器: width: 882px + scale(0.9) → 实际显示 ~794px
 * 覆盖图需要显著缩小以匹配立绘中物品的实际大小
 */

/* 基础样式 - 所有覆盖图 */
.hero-overlay {
	position: absolute !important;
	image-rendering: -webkit-optimize-contrast;
	backface-visibility: hidden;
	pointer-events: auto !important;   /* 强制启用鼠标事件 */
	cursor: pointer !important;        /* 强制鼠标指针 */
	z-index: 5 !important;             /* 确保在主图之上 */
	will-change: transform, filter;    /* 优化动画性能 */
}

/* cat 覆盖：使用绝对定位 + 像素值 */
.hero-overlay--cat {
	width: 70px !important;
	height: auto !important;
	left: 670px !important;
	top: 680px !important;
	position: absolute !important;           /* 确保是absolute */
	object-fit: contain !important;
	transform-origin: center center !important;
	transition: all 0.3s ease !important;
	z-index: 10 !important;
}

/* ipencil 覆盖 */
.hero-overlay--ipencil {
	width: 150px !important;
	height: auto !important;          /* 保持比例 */
	left: 200px !important;
	top: 300px !important;
	object-fit: contain !important;
	transform-origin: center center !important;
	transition: all 0.3s ease !important;  /* 过渡动画 */
}

/* 为ipencil添加独立样式 - 测试专用 */
.ipencil-custom {
	pointer-events: auto !important;
	cursor: pointer !important;
	width: 150px !important;
	height: auto !important;
	left: 200px !important;
	top: 300px !important;
	position: absolute !important;
	object-fit: contain !important;
	transform-origin: center center !important;
	transition: all 0.3s ease !important;
	z-index: 5 !important;
	will-change: transform, filter;
}

.ipencil-custom:hover {
	transform: scale(1.15) rotate(5deg) !important;
	filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.4)) !important;
	z-index: 10 !important;
}

/* 悬停效果 - 分别为每个类型定义以确保优先级（去除白色阴影） */
.hero-overlay--cat:hover,
.hero-overlay--ipencil:hover {
	transform: scale(1.15) rotate(5deg) !important;  /* 放大并轻微旋转 */
	z-index: 10 !important;  /* 提升层级 */
}

/* 点击动画效果 - 分别定义 */
.hero-overlay--cat.clicked,
.hero-overlay--ipencil.clicked {
	animation: heroClickBounce 0.6s ease !important;
}

@keyframes heroClickBounce {
	0% { transform: scale(1.15) rotate(5deg); }
	25% { transform: scale(0.9) rotate(-8deg); }
	50% { transform: scale(1.2) rotate(8deg); }
	75% { transform: scale(0.95) rotate(-3deg); }
	100% { transform: scale(1) rotate(0deg); }
}

.resume-hotspot {
	position: fixed;
	left: 0;
	top: 0;
	width: 22px;
	height: 22px;
	z-index: 9000;
	pointer-events: auto;
	border: 0;
	border-radius: 50%;
	background: #20c9b8;
	opacity: .8;
	box-shadow: 0 0 0 0 rgba(32, 201, 184, .54), 0 0 18px rgba(32, 201, 184, .7);
	transform: translate(-50%, -50%);
	cursor: pointer;
	animation: resume-hotspot-pulse 1.8s ease-in-out infinite;
	transition: background .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.resume-hotspot:hover,
.resume-hotspot:focus-visible {
	outline: none;
	opacity: .92;
	transform: translate(-50%, -50%) scale(1.16);
	box-shadow: 0 0 0 12px rgba(32, 201, 184, .18), 0 0 24px rgba(32, 201, 184, .86);
}

.resume-hotspot.is-viewed {
	background: #8e969b;
	box-shadow: 0 0 0 6px rgba(142, 150, 155, .18), 0 0 12px rgba(0, 0, 0, .18);
	animation: none;
	opacity: .78;
}

@keyframes resume-hotspot-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(32, 201, 184, .48), 0 0 18px rgba(32, 201, 184, .7);
	}
	70% {
		box-shadow: 0 0 0 15px rgba(32, 201, 184, 0), 0 0 18px rgba(32, 201, 184, .7);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(32, 201, 184, 0), 0 0 18px rgba(32, 201, 184, .7);
	}
}

.resume-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .34s ease;
}

.resume-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.resume-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	backdrop-filter: blur(1px);
	opacity: 0;
	transition: opacity .34s ease, backdrop-filter .42s ease;
}

.resume-modal.is-open .resume-modal__backdrop {
	opacity: 1;
	backdrop-filter: blur(5px);
}

.resume-modal__panel {
	position: relative;
	width: min(1180px, 88vw);
	max-height: 86vh;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 24px;
	box-shadow: none;
	opacity: 0;
	filter: blur(8px);
	transform: translateY(34px) scale(.92);
	transition:
		transform .46s cubic-bezier(.16, 1, .3, 1),
		opacity .34s ease,
		filter .46s ease;
}

.resume-modal.is-open .resume-modal__panel {
	transform: translateY(0) scale(1);
	opacity: 1;
	filter: blur(0);
}

.resume-modal__close {
	position: absolute;
	right: -58px;
	bottom: -34px;
	top: auto;
	width: 52px;
	height: 52px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, .88);
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
	transition: transform .18s ease, background .18s ease;
}

.resume-modal__close:hover,
.resume-modal__close:focus-visible {
	background: #111;
	outline: none;
	transform: scale(1.08);
}

.resume-image-shell {
	max-height: 86vh;
	overflow: hidden;
	border-radius: 24px;
	background: transparent;
	box-shadow: none;
}

.resume-image-shell img {
	display: block;
	width: 100%;
	max-height: 86vh;
	height: auto;
	object-fit: contain;
}

.resume-placeholder p {
	margin: 0;
	color: #20c9b8;
	font-family: 'Noto Sans SC', sans-serif;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0;
}

.resume-placeholder h2 {
	margin: 8px 0 22px;
	color: #111;
	font-family: 'Noto Serif SC', serif;
	font-size: 42px;
	line-height: 1;
}

.resume-placeholder__image {
	display: grid;
	place-items: center;
	height: min(560px, 60vh);
	border: 2px dashed rgba(255, 255, 255, .22);
	border-radius: 12px;
	background: #3a3a3a;
	color: rgba(255, 255, 255, .42);
	font-size: 22px;
	font-weight: 900;
}

#canvas-dust {
	pointer-events: none}

/* ========================================
   响应式设计 - 跨设备适配
   ======================================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
	/* 主容器缩放 */
	.char.perspective.box.portfolio-hero {
		transform: translate(10px, 35px) scale(0.75) !important;
	}

	/* 猫爪位置适配（平板） */
	.hero-overlay--cat {
		left: 520px !important;
		top: 530px !important;
		width: 55px !important;
	}

	/* 右侧菜单适配 */
	.right.menu.box {
		transform: perspective(30em) rotateY(-10deg) scale(0.75);
		width: 620px;
		height: 520px;
	}
	
	/* 左侧菜单适配 */
	.left.menu.box {
		transform: perspective(30em) rotateY(10deg) scale(0.8);
		width: 40vw;
	}
	
	/* 按钮文字大小调整 */
	.right.menu.box .container .pos-2 .intellect .content .battle .text,
	.right.menu.box .container .pos-3 .visual-portfolio .text,
	.right.menu.box .container .pos-4 .shop .text {
		font-size: 32px !important;
	}
	
	/* 唱片播放器位置调整 */
	.vinyl-card {
		bottom: 20px;
		right: 20px;
		transform: scale(0.85);
	}
}

/* 手机设备 (max-width: 768px) */
@media (max-width: 768px) {
	/* 立绘容器大幅缩小 */
	.char.perspective.box.portfolio-hero {
		transform: translate(0, 20px) scale(0.5) !important;
		width: 100% !important;
		left: -100px !important;
	}
	
	/* 角色立绘图片 */
	.char.perspective.box.portfolio-hero > img:not(.hero-overlay) {
		width: 200% !important;
	}
	
	/* 右侧菜单：垂直堆叠或隐藏非核心元素 */
	.right.menu.box {
		position: fixed;
		bottom: 0;
		right: 0;
		left: 0;
		top: auto;
		width: 100%;
		height: auto;
		max-height: 60vh;
		transform: none;
		overflow-y: auto;
		z-index: 100;
		border-radius: 16px 16px 0 0;
		background: rgba(26, 26, 26, 0.98);
	}
	
	/* 左侧菜单：简化显示或隐藏 */
	.left.menu.box {
		display: none; /* 移动端可考虑隐藏左侧装饰 */
	}
	
	/* 菜单项：单列布局 */
	.right.menu.box .container {
		flex-direction: column;
		gap: 8px;
		padding: 12px;
	}
	
	.right.menu.box .container .pos-1,
	.right.menu.box .container .pos-2,
	.right.menu.box .container .pos-3,
	.right.menu.box .container .pos-4,
	.right.menu.box .container .pos-5 {
		width: 100%;
		margin-left: 0 !important;
		margin-top: 8px;
	}
	
	/* 按钮样式移动端优化 */
	.right.menu.box .container .pos-2 .intellect,
	.right.menu.box .container .pos-3 .visual-portfolio,
	.right.menu.box .container .pos-4 .shop {
		width: 100%;
		padding: 16px;
		box-sizing: border-box;
	}
	
	/* 文字大小调整 */
	.right.menu.box .container .pos-2 .intellect .content .battle .text,
	.right.menu.box .container .pos-3 .visual-portfolio .text,
	.right.menu.box .container .pos-4 .shop .text {
		font-size: 24px !important;
		line-height: 1.3 !important;
	}
	
	.right.menu.box .container .pos-2 .intellect .content .battle .subtitle,
	.right.menu.box .container .pos-3 .visual-portfolio .menu-copy .subtitle,
	.right.menu.box .container .pos-4 .shop .menu-copy .subtitle {
		font-size: 14px !important;
	}
	
	/* 学校/个人项目按钮并排 */
	.right.menu.box .container .pos-5 {
		display: flex;
		gap: 12px;
	}
	
	.right.menu.box .container .pos-5 .task,
	.right.menu.box .container .pos-5 .infrastructure {
		flex: 1;
		min-width: 140px;
	}
	
	/* 唱片播放器：缩小并移位 */
	.vinyl-card {
		bottom: 10px;
		right: 10px;
		transform: scale(0.7);
		z-index: 200;
	}
	
	/* 简历弹窗全屏 */
	.resume-modal__panel {
		width: 95vw;
		max-height: 90vh;
		margin: 10px;
	}
	
	/* Catpaw 位置微调（移动端）- 使用百分比保持相对位置 */
	.hero-overlay--cat {
		left: 85% !important;
		top: 82% !important;
		transform: translateX(-50%) !important;
		width: 45px !important;
	}
	
	/* 加载器适配 */
	.loader-text {
		font-size: clamp(32px, 15vw, 80px) !important;
	}
	
	.loader-text-container {
		width: 94vw;
	}
}

/* 大屏设备 (min-width: 1920px) */
@media (min-width: 1920px) {
	/* 保持原有比例，居中显示 */
	.view-box {
		max-width: 1920px;
		margin: 0 auto;
	}
	
	/* 可选：略微放大以利用屏幕空间 */
	.char.perspective.box.portfolio-hero {
		transform: translate(10px, 35px) scale(1.05);
	}
}

/* ========================================
   浏览器兼容性修复
   ======================================== */

/* Safari 特殊处理 */
@supports (-webkit-touch-callout: none) {
	/* iOS Safari 滚动优化 */
	.left.menu.box,
	.right.menu.box {
		-webkit-overflow-scrolling: touch;
	}
	
	/* 避免 iOS Safari 的 100vh 问题 */
	.mark {
		height: -webkit-fill-available;
	}
}

/* Firefox 兼容性 */
@supports (-moz-appearance: none) {
	/* Firefox 字体渲染微调 */
	* {
		-moz-font-smoothing: inherit;
	}
}

/* Edge Legacy 支持 */
@supports (-ms-ime-align: auto) {
	/* Edge 的 flexbox 修复 */
	.left.menu.box .container,
	.right.menu.box .container {
		display: -ms-flexbox;
		-ms-flex-direction: column;
	}
}

/* 高 DPI 屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	/* Retina 屏幕字体清晰度 */
	body {
		-webkit-font-smoothing: subpixel-antialiased;
	}
	
	/* 图片在高清屏上保持锐利 */
	img {
		image-rendering: -webkit-optimize-contrast;
	}
}

/* 减少动画偏好（无障碍）*/
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 深色模式支持（虽然默认是深色主题）*/
@media (prefers-color-scheme: light) {
	/* 如果用户系统是浅色模式，保持深色主题不变 */
	/* 因为这是设计风格的一部分 */
}

/* 打印样式 */
@media print {
	/* 隐藏所有交互元素 */
	.vinyl-card,
	.resume-hotspot,
	.hero-overlay,
	.canvas-dust,
	header,
	#left-menu-layer,
	#right-menu-layer {
		display: none !important;
	}
	
	/* 显示主要内容 */
	.char.perspective.box.portfolio-hero {
		position: static !important;
		transform: none !important;
		filter: none !important;
	}
}
