html,
body {
	width: 100%;
	overflow-x: hidden;
	/* 🚫 禁止横向滚动 */
	margin: 0;
	line-height: 1.8;
	color: #333;
	background: #faf6ed;
	font-size: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
		"Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}


#fontBar {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #ffffff;
	padding: 10px;
	border-radius: 8px;
	display: flex;
	/* ← 必须，否则内部可能不渲染 */
	gap: 8px;
	box-shadow: 0 0 10px #0003;
	z-index: 999999;
	/* ← 关键！避免被导航或内容盖住 */
}

#fontBar button {
	padding: 6px 12px;
	font-size: 16px;
	border: none;
	border-radius: 6px;
	background: #eee;
	cursor: pointer;
}

#fontBar button:hover {
	background: #ffd28c;
}

.wrap {
	max-width: 100%;
	margin: 5px;
	background: white;
	padding: 0 20px;
	border-radius: 15px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.jp {
	font-size: 1.3rem;
	font-weight: 600;
	margin-top: 22px;
	font-family: "Hiragino Sans", "Noto Sans JP", "YuGothic", sans-serif;

}

.cn {
	font-size: 1.1rem;
	color: #6b574a;
	margin-bottom: 12px;
	margin-top: 4px;
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
		"Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

.zh {
	font-size: 1.1rem;
	color: #6b574a;
	margin-bottom: 12px;
	margin-top: 4px;
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
		"Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 日语内容隐藏 */
.hide-jp .jp {
	display: none !important;
}

/* 中文内容隐藏 */
.hide-cn .cn {
	display: none !important;
}


ruby rt {
	font-size: 1.1rem;
	color: #d05c3c;
}

h1 {
	text-align: center;
	font-size: 28px;
	font-weight: 800;
	color: #c47a3c;
	margin-bottom: 10px;
}

/* ======= 🔹 顶部导航栏 ======= */
/* 字体调节 & 显示按钮组 横向排列 */
.fontControl {
	display: flex;
	align-items: center;
	justify-content: center;
	/* 横向居中  <-- 关键!!! */

	gap: 8px;
	/* 两块之间间距 */
	flex-wrap: nowrap;
	font-size: 0.8rem;
	margin-bottom: 5px;
	/* 🚫 禁止换行 */
}

.navbar {
	position: fixed;
	/* 关键：让其固定不随滚动 */
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
}


nav {
	background: #ffe4b3;
	padding: 14px 0;
	box-shadow: 0 2px 6px #0003;
	text-align: center;
}

nav a {
	margin: 0px;
	text-decoration: none;
	font-size: 4vw;
	font-weight: bold;
	color: #6a4630;
	padding: 10px;
	transition: .25s;
}

nav a:hover {
	background: #ffb875;
	color: white;
	transform: scale(1.08);
}

/* 🔝 TOP按钮 */
#topBtn {
	position: fixed;
	right: 26px;
	bottom: 50px;
	font-size: 0.8rem;
	padding: 10px;
	color: #fff;
	background: #ff88ba;
	border-radius: 40px;
	text-decoration: none;
	font-weight: bold;
	box-shadow: 0 0 12px rgba(255, 120, 170, .55);
	transition: .25s;
}

#topBtn:hover {
	transform: scale(1.15);
}

.font-btn {
	background: #ebebeb;
	/* 默认灰色 */
	border: none;
	padding: 5px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: .2s;
	color: #333;
}

/* 选中状态（高亮）*/
.font-btn.active {
	background: #ffd55c;
	/* 黄色 */
	font-weight: bold;
	color: #333;
}

.lang-btn {
	background: #ebebeb;
	/* 默认灰色 */
	border: none;
	padding: 5px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: .2s;
	color: #333;
}

/* 选中状态（高亮）*/
.lang-btn.active {
	background: #ffd55c;
	/* 黄色 */
	font-weight: bold;
	color: #333;
}