html {
	font-size: 26.6666666667vw; /* This will be controlled/overridden by JS's resetFontSize */
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 100vh;
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: flex-start;
	background-color: #f0f0f0; /* Light background for the page */
}
div{
	user-select: none;
}

body {
	margin: 0;
	padding: 0;
	width: 3.75rem; /* Corresponds to 100vw if html font-size is 26.6666666667vw */
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: flex-start;
	background-color: #ffffff; /* Main content area background */
}

.website {
	width: 3.75rem;
	text-align: left;
	font-size: 0.12rem;
	height: 0.22rem;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	position: sticky;
	top: 0rem;
	z-index: 20;
	background-color: #ffffff;
	border-bottom: 1px solid #eeeeee;
}
.website-text{
	margin-left: 0.15rem;
	height: 0.22rem;
	line-height: 0.22rem;
	flex-grow: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.email {
	width: 3.75rem;
	padding: 0 0.15rem;
	box-sizing: border-box;
	text-align: left;
	font-size: 0.12rem;
	height: auto; /* Auto height based on content */
    min-height: 0.3rem;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.2rem; /* Space at the very bottom of content */
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    border-top: 1px solid #eeeeee;
}

.top-games {
	width: 3.75rem;
	height: 0.2rem;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-around; /* Distribute items evenly */
	position: sticky;
	z-index: 10;
	top: 0.22rem; /* Below .website */
	background-color: #ffffff;
	border-bottom: 1px solid #eeeeee;
}

.top-games-item {
	flex: 1;
	height: 0.2rem;
	display: flex;
	font-size: 0.12rem;
	/* background-color: #fff; */ /* Inherits from parent */
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-align: center;
}

.top-games-item-img { /* Not currently used in HTML structure by JS */
	width: 0.60rem;
	height: 0.60rem;
}

.top-games-item-name {
	overflow: visible;
	text-align: center;
	height: 0.2rem;
	line-height: 0.2rem;
	padding: 0 0.05rem; /* Some padding for text */
}

.top-games-item-selected .top-games-item-name { /* Combined with provided style */
	font-weight: bold;
	color: #24a5ff;
	border-bottom: 2px solid #24a5ff;
}


.game-box {
	width: 3.75rem;
	height: auto;
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start; /* Align to top */
	justify-content: space-around; /* Distribute space, or use space-between if exact edge alignment is needed */
	font-size: 0.12rem;
	padding: 0.05rem 0;
}

.game-item {
	width: 1.85rem; /* (3.75 - spacing) / 2 */
	margin-bottom: 0.05rem;
	display: flex;
	flex-flow: column;
	align-items: center;
	position: relative;
	visibility: hidden; /* 初始隐藏，防止闪烁 */
	background-color: #fff;
    border-radius: 0.08rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.game-item.loaded {
	visibility: visible; /* 加载完成显示 */
}

.game-image-container {
	position: relative;
	width: 1.85rem; /* Match game-item width */
	height: 1.04rem;
}

.game-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0.08rem 0.08rem 0 0; /* Radius only on top corners */
	opacity: 0;
	/* 移除 transition 以提升性能 - user comment */
    /* If smooth transition is desired, add: transition: opacity 0.3s ease-in-out; */
}
.game-img.loaded {
	opacity: 1;
}
.game-img-hidden{ /* Not actively used by JS */
	width: 0.7rem;
	height: 0.25rem;
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
	z-index: 10;
}

.game-main {
	height: auto;
	width: calc(100% - 0.1rem); /* Full width of item with padding */
	padding: 0.05rem;
	box-sizing: border-box;
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start; /* Align text to left */
}

.game-name {
	color: #333;
	font-size: 0.13rem;
	height: 0.2rem;
	line-height: 0.2rem;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0;
	/* 移除 transition 以提升性能 - user comment */
    /* If smooth transition is desired, add: transition: opacity 0.2s 0.1s ease-in-out; (delayed) */
}
.game-name.loaded {
	opacity: 1;
}

.game-types {
	color: rgba(0, 0, 0, .5);
	font-size: 0.12rem;
	overflow: hidden;
	height: 0.17rem;
    line-height: 0.17rem;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
	margin-bottom: 1px;
}
.game-types em { /* Style for separators in game types if used */
    display: inline-block;
    width: 1px;
    height: 0.10rem;
    background-color: rgba(0,0,0,0.2);
    margin: 0 0.05rem;
    vertical-align: middle;
}


.game-score-box { /* Not actively used by JS */
	color: rgba(0, 0, 0, .5);
	font-size: 0.13rem;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
}

.game-score-img { /* Not actively used by JS */
	width: 0.15rem;
	height: 0.15rem;
	margin-right: 0.03rem;
}

.game-download { /* Button style for copy */
	padding: 0 0.1rem;
	height: 0.20rem;
	line-height: 0.20rem;
	text-align: center;
	border: 1px solid rgba(0,128,255,0.3);
	background-color: transparent;
	color: #0080ff;
	font-size: 0.12rem;
	border-radius: 0.03rem;
	margin-left: 0.1rem; /* Space from text */
	margin-right: 0.15rem; /* Ensure it doesn't touch edge in .website */
	cursor: pointer;
	flex-shrink: 0;
}
.game-download:hover {
	background-color: rgba(0,128,255,0.05);
}
.game-download:disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: default;
}
/* .game-download::before { content: ""; } /* Removed as per user CSS */

.donnload-box { /* This section is commented out in HTML */
	width: 3.75rem;
	height: 0.7rem;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff 33.95%);
	z-index: 30;
}

.download-item {
	width: 3.60rem;
	height: 0.6rem;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	font-size: 0.15rem;
	border-radius: 0.1rem;
	background-color: #0080ff;
	box-shadow: 0 0.01rem 0.1rem rgb(0 0 0 / 15%);
	color: #fff;
}

.download-img {
	width: 0.33rem;
	height: 0.33rem;
	margin-left: 0.15rem;
}

.download-text {
	flex: 1;
	margin-left: 0.05rem;
}

.download-right {
	width: 0.6rem;
	height: 0.25rem;
	text-align: center;
	line-height: 0.25rem;
	border: 1px solid #fff;
	margin-right: 0.15rem;
	border-radius: 0.13rem;
}
.tips-box{
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0,0,0,0);
	display: none; /* Initially hidden */
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	z-index: 999999;
}
.tips{
	height: 0.5rem;
	line-height: 0.5rem;
	text-align: center;
	padding: 0 0.3rem;
	background-color: rgba(0,0,0,0.8); /* Slightly darker */
	color: #ffffff;
	font-size: 0.16rem;
	border-radius: 0.08rem; /* Consistent radius */
}
.pc-box{
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: none; /* Initially hidden */
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	/* background-color: #fff; /* Covered by bgimg */
	z-index: 9999;
	overflow: hidden;
	color: #fff;
	font-weight: bold;
	/* text-shadow moved to specific elements for clarity if needed */
}
.pc-box > * { /* Apply text shadow to direct children that are text-based */
    text-shadow:0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5),0 0 3px rgba(1,74,157,0.5);
}
.pc-logo{
	width: 1rem;
	height: 1rem;
	margin-bottom: 0.1rem;
}
.pc-title{
	font-size: 0.3rem;
	margin-bottom: 0.2rem;
}
.pc-qrcode{
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.2rem;
}
.pc-text{
	font-size: 0.2rem;
}
.pc-bgimg{
	width: 100%;
	height: 100%;
	background: url('/daohang/new2/img/pc-bgimg.jpg') center no-repeat; /* Ensure this path is correct */
	background-size: cover;
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	filter: blur(5px);
}

.tips-text{ /* Badge on game item image */
	background: linear-gradient(to right, #fb33ff, #ff2983 52.6%, #ff2943);
	position: absolute;
	font-size: 0.11rem;
	right: 0.05rem;
	top: 0.05rem;
	color: #fff;
	border-radius: 0.03rem; /* Slightly more radius */
	text-align: center;
	padding: 0.01rem 0.04rem;
	height: auto; /* Auto height */
	line-height: 0.14rem;
	z-index: 11;
	box-sizing: border-box;
}
.add-item{
	width: 3.75rem;
	height: 0.5rem; /* Example height, can be dynamic based on image */
	object-fit: cover;
	margin: 0 0 0.05rem; /* Consistent with game-item bottom margin */
	visibility: hidden; /* Initially hidden for batch loading */
	display: block; /* Ensure it takes up space for height calculation */
}
.add-item.loaded {
	visibility: visible; /* Shown when loaded */
}

.play-count {
	position: absolute;
	bottom: 0.05rem;
	left: 0.05rem;
	background-color: rgba(0, 0, 0, 0.65); /* Slightly darker */
	color: white;
	padding: 0.02rem 0.08rem;
	border-radius: 0.04rem; /* Consistent radius */
	font-size: 0.11rem;
	display: flex;
	align-items: center;
	z-index: 15;
}
.play-icon {
	margin-right: 0.04rem;
	font-size: 0.09em; /* Relative to parent font-size */
}
.video-duration {
	position: absolute;
	bottom: 0.05rem;
	right: 0.05rem;
	background-color: rgba(0, 0, 0, 0.65);
	color: white;
	padding: 0.02rem 0.08rem;
	border-radius: 0.04rem;
	font-size: 0.11rem;
	z-index: 15;
}

/* Error message styling for JSON/data loading issues */
.error-message {
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    padding: 0.1rem;
    margin: 0.1rem auto; /* Centered with auto margins */
    text-align: center;
    font-size: 0.14rem;
    border-radius: 0.05rem;
    width: calc(100% - 0.3rem); /* Takes full width minus some padding */
    max-width: 3.45rem; /* Max width */
    box-sizing: border-box;
}