html {
	overflow-x: hidden;
}

.mei_ri_da_ka_page {
	width: 710px;
	min-height: 990px;
	padding: 40px 0;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 34px 30px;
	background: #fff;
	color: #222;
}

.mei_ri_da_ka_card {
	box-sizing: border-box;
	font-family: KaiTi, STKaiti, "KaiTi_GB2312", serif;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mei_ri_da_ka_title {
	width: 330px;
	margin-bottom: 12px;
	text-align: center;
	font-size: 31px;
	line-height: 1;
	color: #c01818;
	letter-spacing: 4px;
}

.mei_ri_da_ka_meta {
	width: 330px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 15px;
	white-space: nowrap;
}

.mei_ri_da_ka_meta span {
	display: inline-block;
	border-bottom: 1px solid #333;
	height: 15px;
	vertical-align: bottom;
}

.mei_ri_da_ka_meta_name {
	min-width: 92px;
}

.mei_ri_da_ka_meta_day,
.mei_ri_da_ka_meta_date {
	min-width: 22px;
}

.mei_ri_da_ka_grid {
	width: 330px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	align-items: center;
}

.mei_ri_da_ka_row {
	display: grid;
	grid-template-columns: repeat(6, 55px);
	width: 330px;
	height: 55px;
	border: 1px solid var(--mei-ri-da-ka-grid-color, #138a3d);
	border-right: 0;
	box-sizing: border-box;
}

.mei_ri_da_ka_cell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--mei-ri-da-ka-grid-color, #138a3d);
	box-sizing: border-box;
	overflow: hidden;
}

.mei_ri_da_ka_cell::before,
.mei_ri_da_ka_cell::after {
	content: none;
	position: absolute;
	pointer-events: none;
	border-color: var(--mei-ri-da-ka-grid-color, #138a3d);
	opacity: 0.72;
}

.mei_ri_da_ka_cell_grid_svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.mei_ri_da_ka_cell::before {
	left: 50%;
	top: 0;
	bottom: 0;
	border-left: 1px dashed var(--mei-ri-da-ka-grid-color, #138a3d);
}

.mei_ri_da_ka_cell::after {
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px dashed var(--mei-ri-da-ka-grid-color, #138a3d);
}

.mei_ri_da_ka_trace {
	position: relative;
	z-index: 1;
	font-family: KaiTi, STKaiti, "KaiTi_GB2312", serif;
	font-size: 40px;
	line-height: 1;
}

.mei_ri_da_ka_score {
	width: 330px;
	margin-top: 12px;
	text-align: right;
	font-family: KaiTi, STKaiti, "KaiTi_GB2312", serif;
	font-size: 17px;
}

.mei_ri_da_ka_score span {
	display: inline-block;
	width: 78px;
	border-bottom: 1px solid #333;
	vertical-align: bottom;
}

body,td,th {
	color:#222;
	font-size:12px;
}
body {
	margin:0;
	overflow-x: hidden;
	font-family: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	background:
		radial-gradient(circle at top left, rgba(245, 173, 103, 0.22), transparent 32%),
		radial-gradient(circle at right 18%, rgba(220, 92, 76, 0.16), transparent 28%),
		linear-gradient(180deg, #f7efe7 0%, #f4f1eb 45%, #eef1f5 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
:root {
	--page-width: 1240px;
	--accent: #c95b3d;
	--accent-deep: #8f3420;
	--ink: #1f2430;
	--muted: #667085;
	--line: rgba(128, 90, 68, 0.14);
	--card: rgba(255, 252, 248, 0.88);
	--card-strong: #fffdf9;
	--shadow: 0 20px 45px rgba(82, 46, 28, 0.12);
}



/* 拼音字体 */
@font-face {
	font-family: "stroke_font";
	src: url("/font/stroke/stroke.woff2") format("woff2"),
		url("/font/stroke/stroke.woff") format("woff"),
		url("/font/stroke/stroke.ttf") format("truetype");
	font-display: swap;
}

@font-face {
	font-family: "pin_yin";
	src: url("/font/pin_yin/pin_yin.woff2") format("woff2"),
		url("/font/pin_yin/pin_yin.woff") format("woff"),
		url("/font/pin_yin/pin_yin.otf") format("opentype");
}

/* 英文字体 */
@font-face {
	font-family: "zt8_english";
	src: url("/font/ABeeZee/ABeeZee-Regular.woff2") format("woff2"),
		url("/font/ABeeZee/ABeeZee-Regular.woff") format("woff"),
		url("/font/ABeeZee/ABeeZee-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "zt8_english";
	src: url("/font/ABeeZee/ABeeZee-Italic.woff2") format("woff2"),
		url("/font/ABeeZee/ABeeZee-Italic.woff") format("woff"),
		url("/font/ABeeZee/ABeeZee-Italic.ttf") format("truetype");
	font-style: italic;
}


/* 数字字体 */
@font-face {
	font-family: "shu_zi";
	src: url("/font/shu_zi/shu_zi.woff2") format("woff2"),
		url("/font/shu_zi/shu_zi.woff") format("woff"),
		url("/font/shu_zi/shu_zi.ttf") format("truetype");
}

.cou_shi_fa_page {
	width: 694px;
	min-height: 980px;
	box-sizing: border-box;
	padding: 52px 24px 0;
	background: #fff;
	color: #000;
	font-family: Arial, "Microsoft YaHei", sans-serif;
}

.cou_shi_fa_title {
	margin: 0 0 24px 4px;
	font-family: "KaiTi", "STKaiti", serif;
	font-size: 20px;
	letter-spacing: 2px;
}

.cou_shi_fa_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 14px;
	row-gap: 62px;
}

.cou_shi_fa_problem_slot {
	width: 206px;
	height: 126px;
	position: relative;
	overflow: visible;
}

.cou_shi_fa_problem {
	position: relative;
	width: 296px;
	height: 180px;
	box-sizing: border-box;
	transform: scale(0.7);
	transform-origin: top left;
}

.cou_shi_fa_formula {
	display: grid;
	grid-template-columns: 54px 42px 54px 42px 66px;
	align-items: center;
	height: 62px;
	font-size: 42px;
	line-height: 1;
}

.cou_shi_fa_formula span {
	text-align: center;
}

.cou_shi_fa_formula i,
.cou_shi_fa_parts i {
	display: block;
	box-sizing: border-box;
	border: 1px solid #9b9b9b;
	background: #fff;
}

.cou_shi_fa_formula i {
	width: 56px;
	height: 56px;
}

.cou_shi_fa_decompose {
	position: absolute;
	left: 36px;
	top: 52px;
	width: 190px;
	height: 118px;
}

.cou_shi_fa_ten_link {
	position: absolute;
	left: -10px;
	top: 0;
	width: 55px;
	height: 98px;
	border-left: 1px solid #777;
	border-bottom: 1px solid #777;
}

.cou_shi_fa_ten_link::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 16px;
	border-left: 1px solid #777;
}

.cou_shi_fa_ten_link span {
	position: absolute;
	left: 0;
	bottom: -48px;
	font-size: 42px;
	line-height: 1;
}

.cou_shi_fa_branch {
	position: absolute;
	left: 20px;
	top: -20px;
	width: 136px;
	height: 42px;
}

.cou_shi_fa_branch::before,
.cou_shi_fa_branch::after {
	content: "";
	position: absolute;
	top: 22px;
	width: 68px;
	border-top: 1px solid #8b8b8b;
}

.cou_shi_fa_branch::before {
	left: 0;
	transform: rotate(-25deg);
	transform-origin: right center;
}

.cou_shi_fa_branch::after {
	right: 0;
	transform: rotate(25deg);
	transform-origin: left center;
}

.cou_shi_fa_parts {
	position: absolute;
	left: 18px;
	top: 36px;
	width: 138px;
	height: 58px;
}

.cou_shi_fa_parts i {
	position: absolute;
	top: 0;
	width: 54px;
	height: 54px;
}

.cou_shi_fa_parts i:first-child {
	left: 0;
}

.cou_shi_fa_parts i:last-child {
	right: 0;
}

.main .main_set .main_set_content_button .cou_shi_fa_change_button {
	height: 44px;
	min-width: 78px;
	padding: 0 20px;
	margin-right: 12px;
	border: 1px solid rgba(219, 95, 63, 0.28);
	border-radius: 14px;
	background: #fff7f2;
	color: #d66042;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(219, 95, 63, 0.08);
}

.main .main_set .main_set_content_button .cou_shi_fa_change_button:hover {
	border-color: rgba(219, 95, 63, 0.48);
	background: #fff1e8;
	color: #c64f32;
}

.jia_fa_shu_shi_page {
	width: 694px;
	min-height: 980px;
	box-sizing: border-box;
	padding: 56px 30px 0;
	background: #fff;
	color: #000;
	font-family: "KaiTi", "STKaiti", Arial, sans-serif;
}

.jia_fa_shu_shi_title {
	margin: 0 0 28px 4px;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 2px;
}

.jia_fa_shu_shi_grid {
	display: grid;
	grid-template-columns: repeat(3, 126px);
	justify-content: space-between;
	column-gap: 0;
	row-gap: 48px;
}

.jia_fa_shu_shi_problem {
	position: relative;
	width: 196px;
	height: 142px;
	box-sizing: border-box;
	margin-left: -70px;
}

.jia_fa_shu_shi_number {
	position: absolute;
	right: 10px;
	display: grid;
	grid-template-columns: 38px 38px;
	column-gap: 10px;
	width: 86px;
	font-size: 36px;
	line-height: 1;
	text-align: center;
}

.jia_fa_shu_shi_top {
	top: 0;
}

.jia_fa_shu_shi_bottom {
	top: 50px;
}

.jia_fa_shu_shi_plus {
	position: absolute;
	left: 78px;
	top: 52px;
	font-size: 36px;
	line-height: 1;
}

.jia_fa_shu_shi_line {
	position: absolute;
	left: 70px;
	right: 0;
	top: 90px;
	border-top: 2px solid #000;
}

.jia_fa_shu_shi_answer {
	position: absolute;
	right: 0;
	top: 102px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 96px;
	height: 40px;
	border: 1px solid #555;
}

.jia_fa_shu_shi_answer i {
	display: block;
	border-left: 1px solid #555;
}

.jia_fa_shu_shi_answer i:first-child {
	border-left: 0;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_page {
	width: 694px;
	min-height: 980px;
	box-sizing: border-box;
	padding: 52px 48px 0;
	background: #fff;
	color: #000;
	font-family: Arial, "Microsoft YaHei", sans-serif;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_grid {
	display: grid;
	grid-template-columns: repeat(3, 150px);
	justify-content: space-between;
	row-gap: 70px;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_problem {
	position: relative;
	width: 150px;
	height: 130px;
	box-sizing: border-box;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_top_box,
.shi_yi_nei_shu_de_fen_jie_yu_zu_he_bottom_box {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	box-sizing: border-box;
	border: 2px solid #555;
	background: #fff;
	font-size: 30px;
	line-height: 1;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_top_box {
	left: 51px;
	top: 0;
	z-index: 2;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_branch {
	position: absolute;
	left: 29px;
	top: 48px;
	width: 92px;
	height: 34px;
	z-index: 1;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_branch::before,
.shi_yi_nei_shu_de_fen_jie_yu_zu_he_branch::after {
	content: "";
	position: absolute;
	top: 4px;
	width: 44px;
	border-top: 2px solid #8b8b8b;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_branch::before {
	left: 2px;
	transform: rotate(-28deg);
	transform-origin: right center;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_branch::after {
	right: 2px;
	transform: rotate(28deg);
	transform-origin: left center;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_known {
	left: 4px;
	top: 80px;
	z-index: 2;
}

.shi_yi_nei_shu_de_fen_jie_yu_zu_he_blank {
	right: 4px;
	top: 80px;
	z-index: 2;
}
/* 楷体 */
@font-face {
	font-family: "KaiTi";
	src: local("KaiTi"),
		local("楷体"),
		local("STKaiti"),
		local("Kaiti SC"),
		url("/font/kai_ti/kai_ti.woff2") format("woff2"),
		url("/font/kai_ti/kai_ti.woff") format("woff");
		url("/font/kai_ti/kai_ti.ttf") format("truetype");
	font-display: swap;
}

/* 控笔字体 */
@font-face {
	font-family: "kong_bi";
	src: url("/font/kong_bi/kong_bi.woff2") format("woff2"),
		url("/font/kong_bi/kong_bi.woff") format("woff");
		url("/font/kong_bi/kong_bi.ttf") format("truetype");
	font-display: swap;
}



/* 页头 */
.header {
    height: 60px;
    background-color: #333333;
    position: relative;
	padding-top: 8px;
}
.header .header_main {
	display: flex;
	align-items: center;
    width: 1240px;
	margin: 0px auto 0px auto;
}

.header .header_main .header_main_logo {
	display: flex;
	align-items: center;
	float: none;
}
.header .header_main .header_main_logo img {
	border-radius: 10px;
}


.header .header_main ul {
	float: none;
    font-size: 16px;
    padding: 0;
    margin: 0px 0px 0px 20px;
	list-style: none;
	display: flex;
	align-items: center;
}

.header .header_main ul li {
    line-height: 55px;
    text-align: center;
	float: left;
    padding: 0;
	position: relative;
}
.header .header_main ul li a {
    color: #fff;
    width: auto;
	min-width: 84px;
    height: 55px;
	padding: 0 14px;
	display: block;
	text-decoration: none;
	box-sizing: border-box;
}
.header .header_main ul li:hover{
	border-bottom: 5px solid #e84030;
}
.header .header_main ul li:active,
.header .header_main ul li.dang_qian,
.header .header_main ul li.category_preview_active{
	border-bottom: 5px solid transparent;
	border-radius: 10px 10px 0 0;
	background: #b8b8b8;
}

.header .header_main ul li:active a,
.header .header_main ul li.dang_qian a,
.header .header_main ul li.category_preview_active a {
	color: #111111;
}

.header .header_main ul li.dang_qian:not([data-category-switch]) {
	background: #f6eadc;
}

.header .header_main ul li.dang_qian:not([data-category-switch]) a {
	color: #2a211d;
}

.header.category_switching .header_main ul li.dang_qian:not(.category_preview_active) {
	border-bottom-color: transparent;
	background: transparent;
}

.header.category_switching .header_main ul li.dang_qian:not(.category_preview_active) a {
	color: #ffffff;
}

.zt8_user_nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #f8eadc;
	font-size: 14px;
	white-space: nowrap;
}

.zt8_user_nav span {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zt8_user_nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.zt8_user_nav a:hover {
	background: #f6eadc;
	color: #2a211d;
}

.category_switchbar {
	background: #b8b8b8;
	border-top: 1px solid rgba(255, 255, 255, 0.48);
	border-bottom: 1px solid rgba(103, 74, 52, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 18px 38px rgba(79, 55, 34, 0.08);
}

.category_switchbar_home {
	display: none;
}

.category_switchbar_home.category_switchbar_visible {
	display: block;
}

.category_switchbar_inner {
	width: 1240px;
	margin: 0 auto;
	padding: 18px 0 16px;
	display: none;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
}

.category_switchbar_inner.dang_qian {
	display: flex;
}

.category_switch_item {
	position: relative;
	width: 118px;
	flex: 0 0 118px;
	padding: 7px 7px 9px;
	border: 1px solid rgba(255, 255, 255, 0.44);
	border-radius: 18px;
	color: #6b4d37;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.24);
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category_switch_item:hover {
	background: rgba(255, 255, 255, 0.66);
	border-color: rgba(218, 93, 60, 0.42);
	box-shadow: 0 16px 34px rgba(103, 74, 52, 0.18);
	transform: translateY(-3px);
}

.category_switch_item.dang_qian {
	background: #ffffff;
	border: 3px solid #e85b32;
	box-shadow: 0 18px 36px rgba(156, 68, 42, 0.28);
	color: #3b2519;
	transform: translateY(-4px);
}

.category_switch_item.dang_qian::after {
	content: none;
}

.category_switch_thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 126px;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 18px rgba(103, 74, 52, 0.13);
}

.category_switch_thumb img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.category_switch_name {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zt8_user_page {
	min-height: 560px;
	padding: 54px 16px 72px;
	background:
		radial-gradient(circle at 20% 8%, rgba(232, 91, 50, 0.16), transparent 28%),
		linear-gradient(180deg, #f6eadc, #efe1cf);
}

.zt8_user_card {
	width: min(920px, 100%);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	overflow: hidden;
	border-radius: 28px;
	background: rgba(255, 252, 247, 0.95);
	box-shadow: 0 24px 70px rgba(73, 45, 25, 0.16);
}

.zt8_user_intro {
	padding: 50px;
	background:
		linear-gradient(135deg, rgba(52, 38, 30, 0.92), rgba(137, 78, 43, 0.9)),
		#5b3625;
	color: #fff8ef;
}

.zt8_user_badge {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.zt8_user_intro h1 {
	margin: 34px 0 14px;
	font-size: 36px;
	line-height: 1.18;
}

.zt8_user_intro p {
	margin: 0;
	color: rgba(255, 248, 239, 0.82);
	font-size: 16px;
	line-height: 1.9;
}

.zt8_user_form {
	padding: 46px;
}

.zt8_user_form label {
	display: block;
	margin: 0 0 8px;
	color: #4d3929;
	font-weight: 700;
}

.zt8_user_form input {
	width: 100%;
	height: 46px;
	margin: 0 0 18px;
	padding: 0 14px;
	border: 1px solid #dbc6aa;
	border-radius: 14px;
	background: #fff;
	box-sizing: border-box;
	font-size: 15px;
}

.zt8_user_form button {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #9b5128, #e28438);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(160, 84, 42, 0.24);
}

.zt8_user_message {
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff0eb;
	color: #a9402e;
	font-size: 14px;
}

.zt8_user_switch {
	margin-top: 18px;
	text-align: center;
	color: #78604b;
}

.zt8_user_switch a {
	color: #a8522a;
	font-weight: 700;
	text-decoration: none;
}

.zt8_user_modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.zt8_user_modal.dang_qian {
	display: flex;
}

.zt8_user_modal_mask {
	position: absolute;
	inset: 0;
	background: rgba(28, 20, 14, 0.52);
	backdrop-filter: blur(4px);
}

.zt8_user_modal_card {
	position: relative;
	width: min(430px, 100%);
	padding: 30px;
	border-radius: 24px;
	background: rgba(255, 252, 247, 0.98);
	box-shadow: 0 28px 90px rgba(35, 22, 12, 0.34);
}

.zt8_user_modal_close {
	position: absolute;
	right: 16px;
	top: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: #f3e4d4;
	color: #65442d;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.zt8_user_modal_head h2 {
	margin: 18px 0 8px;
	color: #2d2118;
	font-size: 28px;
}

.zt8_user_modal_head p {
	margin: 0 0 18px;
	color: #7b624d;
	line-height: 1.7;
}

.zt8_user_modal_tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 18px;
	padding: 5px;
	border-radius: 999px;
	background: #f1e3d1;
}

.zt8_user_modal_tabs button {
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #755940;
	font-weight: 800;
	cursor: pointer;
}

.zt8_user_modal_tabs button.dang_qian {
	background: #fffaf2;
	color: #9b5128;
	box-shadow: 0 8px 18px rgba(99, 61, 32, 0.13);
}

.zt8_user_modal_form label {
	display: block;
	margin: 0 0 8px;
	color: #4d3929;
	font-weight: 700;
}

.zt8_user_modal_form input {
	width: 100%;
	height: 44px;
	margin: 0 0 15px;
	padding: 0 13px;
	border: 1px solid #dbc6aa;
	border-radius: 13px;
	background: #fff;
	box-sizing: border-box;
	font-size: 15px;
}

.zt8_user_register_only {
	display: none;
}

.zt8_user_modal_form button[type="submit"] {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, #9b5128, #e28438);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
}

.zt8_user_modal_form button[type="submit"]:disabled {
	opacity: 0.7;
	cursor: wait;
}

.zt8_user_modal_message {
	display: none;
	margin-bottom: 14px;
	padding: 11px 13px;
	border-radius: 13px;
	font-size: 14px;
}

.zt8_user_modal_message.error,
.zt8_user_modal_message.success,
.zt8_user_modal_message:not(:empty) {
	display: block;
	background: #fff0eb;
	color: #a9402e;
}

.zt8_user_modal_message.success {
	background: #eef9f0;
	color: #2d7f43;
}

.zt8_duo_yin_zi_pin_yin_tip {
	position: fixed;
	z-index: 9998;
	width: 172px;
	padding: 11px 13px;
	border-radius: 14px;
	background: #2f241c;
	color: #fff7ec;
	box-shadow: 0 14px 34px rgba(35, 23, 14, 0.22);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	text-align: center;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
	box-sizing: border-box;
}

.zt8_duo_yin_zi_pin_yin_tip.is_visible {
	opacity: 1;
	transform: translateY(0);
}

.zt8_duo_yin_zi_pin_yin_tip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	width: 0;
	height: 0;
	margin-left: -8px;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #2f241c;
}

.zt8_duo_yin_zi_pin_yin_tip.is_below::after {
	top: -8px;
	bottom: auto;
	border-top: 0;
	border-bottom: 8px solid #2f241c;
}

.zt8_pin_yin_bi_shun_svg {
	position: absolute;
	left: 0;
	top: -2px;
	width: 100%;
	height: 100%;
	pointer-events: none;
	object-fit: contain;
	display: block;
	filter:
		drop-shadow(0 0 1px #fff)
		drop-shadow(0 0 2px #fff)
		drop-shadow(0 0 3px #fff);
}

.zt8_pin_yin_bi_shun_fallback {
	position: absolute;
	inset: 0 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "pin_yin", "zt8_english", serif;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
}








/* 预览框 */
.yulan_kuang{
	width:620px;
	padding: 10px;
	background-color: #f6f9f9;
}


.all_ge_zi {
	border-left-width: 1px;
	border-left-style: solid;
	margin: 0px auto 5px;
	display: block;
	clear: both;
	overflow: hidden;
}


.all_xiao_ge_zi {
	position: relative ;
	font-family:stroke_font;
	font-size: 26px;
	line-height: 0;
	float: left;
	border-top-width: 1px;
	border-top-style: solid;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-right-width: 1px;
	border-right-style: solid;
}

.zhong_wen_dui_zhao_word_row {
	margin: 0 auto;
	box-sizing: border-box;
}

.zhong_wen_dui_zhao_word_label {
	box-sizing: border-box;
	padding-left: 12px;
	font-family: "KaiTi", "STKaiti", "Kaiti SC", serif;
	font-size: 22px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.all_xiao_ge_zi svg {
	display: block;
}

.zt8_xxsgf_slot {
	width: 100%;
	clear: both;
}

.zt8_xxsgf_row {
	margin: 0 auto 18px;
	box-sizing: border-box;
}

.zt8_xxsgf_meta {
	display: flex;
	align-items: center;
	height: 30px;
	padding: 0 3px;
	border: 1px solid;
	border-bottom: 0;
	background: #fff2ed;
	box-sizing: border-box;
	overflow: hidden;
	white-space: nowrap;
	gap: 2px;
}

.zt8_xxsgf_badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ff5a35;
	color: #fff;
	font-family: "Microsoft YaHei", Arial, sans-serif;
	font-size: 12px;
	line-height: 1;
	box-sizing: border-box;
}

.zt8_xxsgf_pinyin {
	min-width: 16px;
	flex: 0 0 auto;
	margin-right: 1px;
	font-family: "pin_yin", Arial, sans-serif;
	font-size: 16px;
	line-height: 1;
}

.zt8_xxsgf_text {
	min-width: 16px;
	flex: 0 0 auto;
	font-family: "KaiTi", "STKaiti", serif;
	font-size: 16px;
	line-height: 1;
}

.zt8_xxsgf_strokes {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	min-width: 0;
	flex: 1 1 auto;
	padding-right: 2px;
	box-sizing: border-box;
	overflow: hidden;
}

.zt8_xxsgf_mini_svg {
	flex: 0 0 auto;
	display: block;
}

.zt8_xxsgf_mini_svg path {
	fill: #202124;
}

.zt8_xxsgf_mini_svg path[fill="#ff1f1f"] {
	fill: #ff1f1f;
}

.zt8_xxsgf_grid {
	margin-bottom: 0;
}

.zt8_xxsgf_cell {
	overflow: hidden;
}

.zt8_xxsgf_char_svg {
	position: absolute;
	left: 4%;
	top: 4%;
	width: 92%;
	height: 92%;
	display: block;
	pointer-events: none;
}

.zt8_xxsgf_fallback_char {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "han_zi_wen_zhang_kai", "KaiTi", serif;
	font-size: 46px;
	line-height: 1;
	pointer-events: none;
}

.han_zi_wen_zhang_heng_xian_row {
	position: relative;
	margin: 0 auto 5px;
	border-bottom: 1px solid #e40001;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: visible;
}

.han_zi_wen_zhang_heng_xian_cell {
	position: relative;
	display: inline-block;
	height: 100%;
	vertical-align: top;
	overflow: visible;
}

.han_zi_wen_zhang_heng_xian_text {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	line-height: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 2px;
	box-sizing: border-box;
	font-family: "KaiTi", "STKaiti", "Kaiti SC", serif;
	white-space: nowrap;
}

.zt8_pin_yin_ge_text {
	position: absolute;
	inset: 0 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(-3%);
	font-weight: 400;
}






.main {
	width: min(calc(100% - 40px), var(--page-width));
	margin: 34px auto 28px;
	display: flex;
	align-items: stretch;
	gap: 30px;
	position: relative;
}

.main .f_l_50,
.main .f_r_50 {
	width: auto;
	background: transparent;
	float: none;
}

.main .f_l_50 {
	flex: 0 0 650px;
	min-width: 0;
	display: flex;
}

.main .f_r_50 {
	flex: 1 1 0;
	min-width: 360px;
	display: flex;
}

.main .main_preview,
.main .main_set {
	width: 100%;
	padding: 28px;
	box-sizing: border-box;
	float: none;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 28px;
	background: var(--card);
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow);
}

.main .main_preview {
	display: flex;
	flex-direction: column;
	width: 650px;
	max-width: 100%;
	position: relative;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.94), rgba(252,248,241,0.9));
}

.copybook_preview_loading {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background: rgba(255, 252, 248, 0.72);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.16s ease, visibility 0.16s ease;
}

.copybook_preview_loading.is_visible {
	opacity: 1;
	visibility: visible;
}

.copybook_preview_loading_inner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid rgba(201, 91, 61, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--accent-deep);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 12px 26px rgba(82, 46, 28, 0.14);
}

.copybook_preview_loading_spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(201, 91, 61, 0.22);
	border-top-color: var(--accent);
	animation: copybook_preview_loading_spin 0.7s linear infinite;
}

@keyframes copybook_preview_loading_spin {
	to {
		transform: rotate(360deg);
	}
}

.panel_eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(201, 91, 61, 0.1);
	color: var(--accent-deep);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.main .main_preview h4,
.main .main_set h1 {
	padding: 0;
	margin: 0;
	color: var(--ink);
}

.main .main_preview h4 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 18px;
}

.main .main_preview #copybook_element{
	width: 100%;
	max-width: 100%;
	min-height: 540px;
	background: #ffffff;
	padding: 26px 20px 22px;
	box-sizing: border-box;
	border-radius: 4px;
	border: 1px solid rgba(126, 97, 76, 0.14);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.7),
		0 16px 28px rgba(72, 52, 36, 0.08);
	margin: 0 auto;
	overflow: hidden;
}

#copybook_preview_mobile_shell {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
}

#copybook_preview_mobile_shell.mei_ri_da_ka_preview_shell {
	overflow-y: hidden;
}

#copybook_preview_mobile_shell.cou_shi_fa_preview_shell {
	overflow-y: hidden;
}

#copybook_preview_mobile_shell.jia_fa_shu_shi_preview_shell {
	overflow-y: hidden;
}

#copybook_preview_mobile_scale {
	width: fit-content;
	max-width: none;
	margin: 0 auto;
	transform-origin: top left;
}

#fen_ye {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
}

.main .main_set h1 {
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: 0.01em;
	margin-bottom: 10px;
}

.main .main_set .main_set_introduction {
	font-size: 15px;
	line-height: 1.8;
	color: var(--muted);
	margin-bottom: 18px;
	max-width: 38em;
}

.main .main_set .main_set_xiao_biao_ti {
	height: auto;
	line-height: 1.4;
	font-size: 15px;
	font-weight: 700;
	float: left;
	color: var(--ink);
}

.main .main_set .main_set_xiao_biao_ti_you {
	height: auto;
	line-height: 1.4;
	font-size: 13px;
	float: right;
	color: var(--muted);
	padding-top: 2px;
}

.main .main_set #zishu {
	color: var(--accent-deep);
	font-weight: 700;
}

.main .main_set #content{
	resize: vertical;
	border: 1px solid rgba(120, 91, 66, 0.14);
	width: 100%;
	min-height: 168px;
	background: linear-gradient(180deg, #fffefa 0%, #f7f2ea 100%);
	border-radius: 18px;
	padding: 18px 18px 16px;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
	outline: none;
	box-shadow: inset 0 1px 2px rgba(73, 43, 24, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.main .main_set #content:focus {
	border-color: rgba(201, 91, 61, 0.5);
	box-shadow: 0 0 0 4px rgba(201, 91, 61, 0.12);
}

.main .main_set .main_set_content_button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	text-align: left;
	clear: both;
	padding-top: 12px;
}

.main .main_set .main_set_content_button_left,
.main .main_set .main_set_content_button_right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.main .main_set .main_set_content_button input {
	height: 36px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid rgba(122, 99, 81, 0.16);
	background: rgba(255,255,255,0.72);
	color: var(--ink);
	cursor: pointer;
	font-size: 13px;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.main .main_set .main_set_content_button input:hover {
	transform: translateY(-1px);
	border-color: rgba(201, 91, 61, 0.42);
	background: #fff;
}

.main .main_set .main_set_content_button .main_set_submit_inline {
	height: 42px;
	line-height: 42px;
	padding: 0 20px;
	border-radius: 14px;
	border: 1px solid rgba(201, 91, 61, 0.28);
	background: rgba(255,255,255,0.88);
	color: var(--accent-deep);
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 10px 22px rgba(49, 40, 33, 0.08);
}

.main .main_set .main_set_content_button .main_set_submit_inline:hover {
	background: #fff4ee;
	border-color: rgba(201, 91, 61, 0.42);
	color: var(--accent);
}

.main .main_set .main_set_content_button .main_set_generate_button {
	min-width: 138px;
	height: 48px;
	line-height: 48px;
	padding: 0 30px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #f07a4f 0%, #c84f31 100%);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.08em;
	box-shadow: 0 14px 28px rgba(201, 91, 61, 0.28);
}

.main .main_set .main_set_content_button .main_set_generate_button:hover {
	background: linear-gradient(135deg, #ff8a5f 0%, #d95c3b 100%);
	color: #fff;
	box-shadow: 0 16px 34px rgba(201, 91, 61, 0.36);
}

.main .main_set .main_set_content_button .main_set_print_inline {
	width: auto;
	height: 42px;
	line-height: 42px;
	padding: 0 20px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	background: linear-gradient(135deg, var(--accent) 0%, #dc7a4e 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.main .main_set .main_set_content_button .main_set_print_inline:hover {
	background: linear-gradient(135deg, var(--accent) 0%, #dc7a4e 100%);
	color: #fff;
	box-shadow: none;
}

.duo_yin_zi_xuan_ze {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid rgba(126, 97, 76, 0.12);
	border-radius: 16px;
	background: rgba(255, 252, 248, 0.78);
}

.duo_yin_zi_xuan_ze_title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.duo_yin_zi_xuan_ze_intro {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--muted);
}

.duo_yin_zi_xuan_ze_list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.duo_yin_zi_xuan_ze_item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.duo_yin_zi_xuan_ze_zi {
	min-width: 72px;
	font-family: "KaiTi", "STKaiti", "Kaiti SC", serif;
	font-size: 22px;
	line-height: 1.2;
	color: var(--ink);
}

.duo_yin_zi_xuan_ze_btn {
	height: 32px;
	line-height: 30px;
	padding: 0 12px;
	border: 1px solid rgba(126, 97, 76, 0.16);
	border-radius: 999px;
	background: #ffffff;
	color: var(--ink);
	cursor: pointer;
}

.duo_yin_zi_xuan_ze_btn.dang_qian {
	border-color: var(--accent);
	background: rgba(201, 91, 61, 0.1);
	color: var(--accent-deep);
}

.kong_bi_su_cai_xuan_ze {
	margin-bottom: 18px;
}

.kong_bi_su_cai_grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.kong_bi_su_cai_item {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border: 1px solid rgba(126, 97, 76, 0.16);
	border-radius: 12px;
	background: #fff;
	color: #667386;
	cursor: pointer;
	user-select: none;
	padding: 8px;
}

.kong_bi_su_cai_item img,
.kong_bi_su_cai_item svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	margin: auto;
}

.kong_bi_su_cai_item:hover {
	background: rgba(201, 91, 61, 0.08);
}

.kong_bi_su_cai_item.dang_qian {
	border-color: var(--accent);
	background: rgba(201, 91, 61, 0.12);
	color: var(--accent-deep);
}

.kong_bi_font_pattern {
	font-family: "kong_bi";
	text-align: center;
	font-weight: 400;
	user-select: none;
}

.kong_bi_svg_container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kong_bi_svg_container svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.copybook_page #content.kong_bi_content_textarea {
	font-family: "kong_bi";
	font-size: 24px;
	line-height: 1.55;
	letter-spacing: 4px;
}

@media (max-width: 640px) {
	.kong_bi_su_cai_grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.main .main_set hr {
	border: 0;
	height: 1px;
	margin: 22px 0;
	background: linear-gradient(90deg, rgba(137, 103, 78, 0), rgba(137, 103, 78, 0.18), rgba(137, 103, 78, 0));
}







/* 拼音格选择拼音 */
.pin_yin_ge_xuan_ze {
	width: 100%;
	padding: 16px;
	box-sizing: border-box;
	margin-bottom: 18px;
	border: 1px solid var(--line);
	border-radius: 18px;
	display: block;
	background: rgba(255,255,255,0.62);
}

.pin_yin_ge_xuan_ze .div {
	display: block;
	clear: both;
	overflow: hidden;
	margin-top: 10px;
}

.pin_yin_ge_xuan_ze .div .biao_ti {
	width: 90px;
	float: left;
	font-size: 14px;
	line-height: 27px;
	color: var(--ink);
	font-weight: 700;
}

.pin_yin_ge_xuan_ze .div ul {
    width: calc(100% - 90px);
	float: left;
    font-size: 14px;
    padding: 0;
    margin: 0;
	list-style: none;
}

.pin_yin_ge_xuan_ze .div ul li {
	width: 50px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	float: left;
	cursor: pointer;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 10px;
	padding: 0;
	margin: 0px 4px 4px 0px;
	background: #fff;
	transition: all 0.2s ease;
}
.pin_yin_ge_xuan_ze .div ul li:hover{
	border-color: var(--accent);
	color: var(--accent-deep);
	transform: translateY(-1px);
}
.pin_yin_ge_xuan_ze .div ul li:active{
	border: 1px solid #fff;
}







/* 分页 */
#fen_ye input {
	cursor: pointer;
	border: 1px solid rgba(126, 97, 76, 0.14);
	margin-left: 8px;
	width: 34px;
	height: 30px;
	margin-top: 14px;
	background: rgba(255,255,255,0.7);
	border-radius: 10px;
	color: var(--ink);
}
#fen_ye input:hover {
	border-color: var(--accent);
}
#fen_ye input:active {
	border: 1px solid #fff;
}
#fen_ye input:active {
	border: 1px solid #fff;
}
#fen_ye .dang_qian {
	border: 1px solid var(--accent);
	background: linear-gradient(135deg, var(--accent) 0%, #df7a52 100%);
	color: #fff;
}





/* 空白行 */
.blank_space {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	line-height: 60px;
	font-size: 14px;
	color: var(--ink);
}
.blank_space > span:first-child,
.page_margin_setting_label,
.header_footer,
.she_zhi_hang {
	font-size: 14px;
	color: var(--ink);
}
.blank_space input {
	height: 36px;
	width: 45px;
	text-align: center;
	margin: 10px 0px;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 10px;
	background: #fff;
}
.blank_space div {
	width: 36px;
	height: 36px;
	margin: 10px 0px;
	background: #fff;
	line-height: 36px;
	padding: 0;
	box-sizing: border-box;
	text-align: center;
	cursor: pointer;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 10px;
}





/*笔顺剩余填充*/
.stroke_filling {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 10px;
	line-height: 60px;
}
.stroke_filling div {
	height: 36px;
	line-height: 36px;
	background: #ffffff;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 12px;
	padding: 0 18px;
	margin: 14px 0;
	cursor: pointer;
}
.stroke_filling .dang_qian {
	color: var(--accent-deep);
	border-color: var(--accent);
	background: rgba(201, 91, 61, 0.1);
}

.han_zi_bi_hua_stroke_picker {
	margin-top: 16px;
	margin-bottom: 16px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255,255,255,0.62);
	padding: 16px;
}

.han_zi_bi_hua_stroke_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
	gap: 10px;
	margin-top: 0;
}

.han_zi_bi_hua_stroke_grid .selectStrokes {
	height: 42px;
	line-height: 42px;
	text-align: center;
	border: 1px solid rgba(126, 97, 76, 0.16);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font-family: "stroke_font";
	font-size: 20px;
	cursor: pointer;
	user-select: none;
}

.han_zi_bi_hua_stroke_grid .selectStrokes:hover {
	border-color: var(--accent);
	color: var(--accent-deep);
	background: rgba(201, 91, 61, 0.08);
}

#content.han_zi_bi_hua_stroke_textarea {
	font-family: "stroke_font";
	font-size: 28px;
	letter-spacing: 4px;
}



/*页眉页脚*/
.header_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	line-height: 60px;
}
.header_footer div {
	height: 36px;
	line-height: 36px;
	background: #ffffff;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 12px;
	padding: 0 18px;
	margin: 14px 0;
	cursor: pointer;
}
.header_footer .dang_qian {
	color: var(--accent-deep);
	border-color: var(--accent);
}

.page_margin_setting {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 6px 0 12px 0;
}

.page_margin_setting_label {
	flex: 0 0 auto;
	font-size: 14px;
	color: var(--ink);
}

.page_margin_setting_trigger {
	flex: 0 0 auto;
	min-width: 168px;
	height: 40px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(70, 48, 28, 0.06);
}

.page_margin_setting_panel {
	position: absolute;
	left: 72px;
	top: calc(100% + 10px);
	z-index: 20;
	width: 270px;
	padding: 16px 16px 14px 16px;
	border: 1px solid rgba(126, 97, 76, 0.12);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 36px rgba(70, 48, 28, 0.16);
	display: none;
}

.page_margin_setting_panel.dang_qian {
	display: block;
}

.page_margin_setting_item + .page_margin_setting_item {
	margin-top: 12px;
}

.page_margin_setting_item_top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--ink);
}

.page_margin_setting_item input[type="range"] {
	width: 100%;
}

.page_margin_setting_actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.page_margin_setting_actions button {
	flex: 1 1 0;
	height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(126, 97, 76, 0.14);
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}

.page_margin_setting_actions .page_margin_setting_confirm {
	background: #18233d;
	border-color: #18233d;
	color: #fff;
}

.zt8_row_count_setting {
	margin-top: 18px;
	padding: 16px 18px 18px;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(252,247,240,0.94));
	box-shadow: 0 14px 30px rgba(88, 52, 32, 0.08);
}

.zt8_row_count_setting_top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.zt8_row_count_setting_top #zt8_ge_zi_da_xiao_value,
.zt8_row_count_setting_top #zt8_font_size_scale_value {
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.zt8_row_count_setting input[type="range"] {
	-webkit-appearance: none;
	width: 100%;
	height: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(201,91,61,0.86), rgba(248,170,112,0.9));
	outline: none;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}

.zt8_row_count_setting input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--accent);
	box-shadow: 0 6px 14px rgba(201, 91, 61, 0.22);
	cursor: pointer;
}

.zt8_row_count_setting input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--accent);
	box-shadow: 0 6px 14px rgba(201, 91, 61, 0.22);
	cursor: pointer;
}

.zt8_row_count_setting_hint {
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--muted);
}


/* 田字格类型选择 */
.tiange_leixing { 
	line-height: 1.7;
	text-align: left;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.tiange_leixing .g_type_label {
	display: inline-flex;
	align-items: center;
	height: 34px;
	line-height: 1;
	margin: 0;
}
.tiange_leixing div {
	height: 50px;
	margin: 0;
	border: 1px solid rgba(201, 91, 61, 0.4);
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	padding: 5px;
	box-shadow: 0 8px 20px rgba(63, 32, 17, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tiange_leixing .dang_qian {
	margin: 0;
	border: 2px solid var(--accent);
	box-shadow: 0 10px 26px rgba(201, 91, 61, 0.18);
}

.english_tiange_leixing {
	gap: 12px;
}

.english_tiange_leixing .english_g_type_option {
	height: 34px;
	padding: 4px 10px;
	border-radius: 12px;
	border: 1px solid rgba(201, 91, 61, 0.4);
	background: #fff;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	cursor: pointer;
	box-sizing: border-box;
}

.gu_wen_shu_pai_ye {
	width: fit-content;
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	align-items: stretch;
	margin: 0 auto;
	padding: 4px;
	box-sizing: border-box;
	border: 2px solid currentColor;
}

.gu_wen_shu_pai_ye::before {
	content: "";
	position: absolute;
	top: 4px;
	right: 4px;
	bottom: 4px;
	left: 4px;
	border: 1px solid currentColor;
	pointer-events: none;
}

.gu_wen_shu_pai_lie {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.gu_wen_shu_pai_lie_zui_zuo .gu_wen_shu_pai_xiao_ge {
    border-left: none;
}

.gu_wen_shu_pai_xiao_ge {
	float: none;
	display: block;
	position: relative;
	box-sizing: border-box;
	border-top: none;
	border-bottom: none;
	border-right: none;
	border-left-width: 1px;
	border-left-style: solid;
	margin: 0;
}

.gu_wen_shu_pai_zi {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "han_zi_wen_zhang_kai",'KaiTi','STKaiti','Kaiti SC',serif;
	line-height: 1;
}

.english_tiange_leixing .english_g_type_option svg {
	display: block;
	width: 74px;
	height: 34px;
}

.english_tiange_leixing .english_g_type_option.dang_qian {
	border: 2px solid var(--accent);
	padding: 4px 10px;
	background: #fff;
}


/* 田字格类型选择 */
.pinyin_g_type_class { 
	line-height: 1.7;
	text-align: left;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.pinyin_g_type_class .g_type_label {
	display: inline-flex;
	align-items: center;
	height: 34px;
	line-height: 1;
	margin: 0;
}
.pinyin_g_type_class div {
	height: 34px;
	margin: 0;
	border: 1px solid rgba(201, 91, 61, 0.4);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	padding: 4px 10px;
}
.pinyin_g_type_class .dang_qian {
	margin: 0;
	border: 2px solid var(--accent);
}



/*字体大小*/
.zi_ti_da_xiao {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	line-height: 60px;
}
.zi_ti_da_xiao div {
	height: 36px;
	line-height: 36px;
	background: #ffffff;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 12px;
	padding: 0 18px;
	margin: 14px 0;
	cursor: pointer;
}
.zi_ti_da_xiao .dang_qian {
	color: var(--accent-deep);
	border-color: var(--accent);
	background: rgba(201, 91, 61, 0.1);
}



/*字体大小*/
.ge_zi_da_xiao {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	line-height: 60px;
}
.ge_zi_da_xiao div {
	height: 36px;
	line-height: 36px;
	background: #ffffff;
	border: 1px solid rgba(126, 97, 76, 0.14);
	border-radius: 12px;
	padding: 0 18px;
	margin: 14px 0;
	cursor: pointer;
}
.ge_zi_da_xiao .dang_qian {
	color: var(--accent-deep);
	border-color: var(--accent);
	background: rgba(201, 91, 61, 0.1);
}


/*田格颜色*/
.she_zhi_hang {
	line-height: 60px;
	padding: 10px 0;
	color: var(--ink);
}







/*颜色选择样式重新定义*/
.minicolors-theme-default .minicolors-input {
	height: 36px;
	line-height: 36px;
	border-radius: 12px;
	border: 1px solid rgba(126, 97, 76, 0.14);
	padding-left: 40px;
	background: rgba(255,255,255,0.88);
}
.minicolors-theme-default .minicolors-swatch {
	top: 50%;
	left: 8px;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	transform: translateY(-50%);
	box-sizing: border-box;
}












/* 加载进度条 */
.load_bar { 
	list-style: none;
	font: 12px "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	width: 296px;
	margin: 50px auto 0;
	position: relative;
	line-height: 2em;
	padding: 30px 0;
}

.load_bar li {
	background:#e9e5e2;
	background-image: linear-gradient(top, #e1ddd9, #e9e5e2);
	height:20px;
	border-radius:10px;
	box-shadow: 0 1px 0px #bebbb9 inset, 0 1px 0 #fcfcfc;	  
}

.load_bar li div { 
	height:18px; 
	margin:1px 2px;  
	position:absolute;
	border-radius:10px;
	box-shadow: 0 1px 0px #fcfcfc inset, 0 1px 0 #bebbb9;
	width:calc(100% - 4px);
	background-color: #a1ce5b;
	background-image: linear-gradient(top, #a1ce5b, #91ba52);
	animation: load_bar 16s linear infinite;
}

@keyframes load_bar { 0% { width:0px;} 100% { width:calc(100% - 4px);} }

.zt8_pdf_progress_dialog .load_bar {
	margin-top: 18px;
	margin-bottom: 0;
}

.zt8_pdf_progress_text {
	margin: 8px 0 0;
	text-align: center;
	color: #6b7280;
	line-height: 1.7;
}















/* 按钮 绿色 */
.all_an_lv {
	background-image: url(//f.bmcx.com/img/all_bg.png?v=20050301);
	background-repeat: repeat-x;
	background-position: 0px -0px;
	height: 34px;
	font-size: 14px;
	color: #FFF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #9BC162;
	border-right-color: #86A953;
	border-bottom-color: #86A953;
	border-left-color: #86A953;
	-moz-border-radius: 4px;      /* Gecko browsers */
	-webkit-border-radius: 4px;   /* Webkit browsers */
	border-radius: 4px;            /* W3C syntax */
	padding-right: 20px;
	padding-left: 20px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.all_an_lv:hover,.all_an_lv:focus {
	background-position: 0px -34px;
}








/* 按钮 黄 */
.all_an_huang {
	background-image: url(//f.bmcx.com/img/all_bg.png?v=20050301);
	background-repeat: repeat-x;
	background-position: 0px -136px;
	height: 34px;
	font-size: 14px;
	color: #FFF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #D98513;
	border-right-color: #A0620E;
	border-bottom-color: #A0620E;
	border-left-color: #A0620E;
	border-radius: 4px;
	padding-right: 20px;
	padding-left: 20px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.all_an_huang:hover,.all_an_huang:focus {
	background-position: 0px -170px;
}






/* 按钮灰色 */
.all_an_hui {
	background-image: url(//f.bmcx.com/img/all_bg.png?v=20050301);
	background-repeat: repeat-x;
	background-position: 0px -68px;
	height: 34px;
	font-size: 14px;
	color: #949494;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #B9BFCC;
	border-right-color: #A4ACBD;
	border-bottom-color: #A4ACBD;
	border-left-color: #A4ACBD;
	border-radius: 4px;
	padding-right: 20px;
	padding-left: 20px;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	letter-spacing: 2px;
	cursor: pointer;
	white-space: nowrap;
}
.all_an_hui:hover,.all_an_hui:focus {
	background-position: 0px -102px;
}






/* 按钮红色 */
.all_an_hong {
	background-image: url(//f.bmcx.com/img/all_bg.png?v=20050301);
	background-repeat: repeat-x;
	background-position: 0px -367px;
	height: 34px;
	font-size: 14px;
	color: #FFFFFF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #E30000;
	border-right-color: #990000;
	border-bottom-color: #990000;
	border-left-color: #990000;
	border-radius: 4px;
	padding-right: 20px;
	padding-left: 20px;
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	letter-spacing: 2px;
	cursor: pointer;
	white-space: nowrap;
}
.all_an_hong:hover,.all_an_hong:focus {
	background-position: 0px -401px;
}


/* 橘色红色 */
.all_an_ju_1 {
	width: 100%;
	height: 60px;
	background: linear-gradient(135deg, var(--accent) 0%, #dc7a4e 100%);
	border-radius: 16px;
	line-height: 60px;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	cursor: pointer;
	border: 0;
	box-shadow: 0 18px 28px rgba(201, 91, 61, 0.26);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.all_an_ju_1:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 34px rgba(201, 91, 61, 0.32);
}

.submit_wrap {
	padding-top: 18px;
}

.submit_wrap_dual {
	display: flex;
	gap: 12px;
}

.submit_wrap_dual .all_an_ju_1,
.submit_wrap_dual .all_an_hui_2 {
	flex: 1 1 0;
}

.all_an_hui_2 {
	width: 100%;
	height: 56px;
	border-radius: 16px;
	border: 1px solid rgba(122, 99, 81, 0.16);
	background: rgba(255,255,255,0.76);
	color: var(--ink);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.all_an_hui_2:hover {
	transform: translateY(-2px);
	border-color: rgba(201, 91, 61, 0.42);
	background: #fff;
}






/* swal 对话框样式 */
.swal_class_1 {
	text-align: left;
}









/* 信息 */
.info{
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	width: min(calc(100% - 40px), var(--page-width));
	margin: 0 auto 26px;
	clear: both;
	overflow: hidden;
	padding: 18px;
	border: 1px solid var(--line);
	line-height: 28px;
	border-radius: 24px;
	background: rgba(255,255,255,0.76);
	box-shadow: 0 18px 34px rgba(61, 41, 24, 0.08);
	box-sizing: border-box;
}
.info img {
	width: 100%;
	display: block;
	border-radius: 18px;
}
.info .info_text {
	display: block;
}
.info .info_text p {
	margin: 0 0 12px 0;
	color: var(--ink-soft);
}
.info .info_text ul {
	margin: 0 0 14px 20px;
	padding: 0;
	color: var(--ink-soft);
}
.info .info_text li {
	margin-bottom: 8px;
}
.info strong, #description strong{color:var(--accent-deep);font-size:18px;}
.info span{font-size:16px;}

.english_copybook_row {
	position: relative;
	margin: 0 auto 6px;
	background: #fff;
	overflow: hidden;
}

.english_copybook_row svg {
	display: block;
}

.english_copybook_line {
	position: absolute;
	left: 18px;
	right: 18px;
	top: var(--english-top-offset, 11px);
	bottom: auto;
	display: flex;
	align-items: flex-start;
	overflow: visible;
	white-space: nowrap;
	font-family: "zt8_english";
	font-style: var(--english-font-style, normal);
	line-height: 1;
}

.english_copybook_double_line {
	position: absolute;
	left: 18px;
	right: 18px;
	top: var(--english-top-offset, 11px);
	bottom: auto;
	display: flex;
	align-items: flex-start;
	overflow: visible;
	white-space: nowrap;
	font-family: "zt8_english";
	font-style: var(--english-font-style, normal);
	line-height: 1;
}

.english_copybook_article_text {
	display: block;
	white-space: nowrap;
	line-height: 1;
	letter-spacing: var(--english-letter-spacing, 0em);
}













/* 首页主内容 */
.index_intro_top {
	width: min(calc(100% - 40px), var(--page-width));
	margin: 26px auto 12px;
}

.index_intro_top_inner {
	padding: 20px 24px;
	border-radius: 24px;
	background: rgba(255, 252, 248, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 12px 28px rgba(61, 41, 24, 0.07);
	backdrop-filter: blur(8px);
}

.index_intro_top h1 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.15;
	color: var(--ink);
}

.index_intro_top p {
	margin: 0;
	font-size: 15px;
	line-height: 1.9;
	color: var(--muted);
}

.index_main {
	display: flex;
	flex-direction: column;
	width: 1240px;
	margin: 0px auto 0px auto;
	gap: 24px;
}

.index_category {
	padding: 22px 24px 26px;
	border-radius: 26px;
	background: rgba(255, 252, 248, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.58);
	box-shadow: 0 14px 34px rgba(61, 41, 24, 0.07);
}

.index_category_head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(126, 97, 76, 0.1);
}

.index_category_head h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	color: var(--ink);
}

.index_category_head p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--muted);
	text-align: right;
}

.index_category_grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	justify-items: center;
}





/* 首页图片按钮 */
.index_main .img_box {
	display: block;
	width: min(100%, 250px);
	min-width: 150px;
	max-width: 250px;
	float: none;
	padding-top: 15px;
	padding-bottom: 15px;
	box-sizing: border-box;
	justify-self: center;
}
.index_main .img_box .img_box_t {
	box-shadow: 0px 0px 10px #cccccc;
	width: 100%;
	border-radius: 1em;
	padding: 10px;
	text-align: center;
	box-sizing: border-box;
	background-color: #FFF;
}
.index_main .img_box .img_box_t img {
    width: 100%;
}
.index_main .img_box .img_box_t span {
    line-height: 30px;
	font-size: 14px;
	display: block;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.index_main .img_box .img_box_t .btn {
    width: 120px;
    height: 40px;
    background: #e84030;
    border-radius: 4px;
    display: inline-block;
    color: #fff;
    line-height: 40px;
	font-size: 16px;
}
.index_main .img_box .img_box_t a {
    text-decoration: none;
	display: block;
}

.index_main .img_box .img_box_t a:hover {
    opacity: 0.7;
}








/* 页脚 */
.footer {
	background:
		radial-gradient(circle at top left, rgba(222, 101, 55, 0.16), transparent 32%),
		linear-gradient(180deg, #2f2925 0%, #221d1a 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	clear: both;
	display: block;
	padding-top: 28px;
	padding-bottom: 28px;
	margin-top: auto;
}
.footer .footer_main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
    width: 1240px;
	margin: 0px auto 0px auto;
    color: rgba(245, 239, 233, 0.76);
	line-height: 1.7;
}
.footer .footer_main p {
	margin: 0 0 8px 0;
}
.footer .footer_main p:last-child {
	margin-bottom: 0;
}
.footer .footer_info {
	flex: 1 1 auto;
	max-width: 720px;
}
.footer .footer_contact {
	flex: 0 0 auto;
	text-align: right;
	padding: 18px 22px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	min-width: 220px;
}
.footer .footer_label {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: rgba(240, 101, 52, 0.12);
	color: #f2c3ac;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.footer .footer_main a {
	color: #f0d8c9;
	text-decoration: none;
}
.footer .footer_main a:hover {
	color: #ffffff;
}

@media (max-width: 1100px) {
	.header .header_main,
	.category_switchbar_inner,
	.index_intro_top,
	.index_main,
	.footer .footer_main {
		width: min(calc(100% - 32px), var(--page-width));
	}

	.main {
		width: min(calc(100% - 32px), var(--page-width));
		gap: 22px;
	}

	.main .f_r_50 {
		flex-basis: 380px;
	}

	.index_main .img_box {
		width: 100%;
	}

	.index_category_grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.header {
		height: auto;
		padding: 14px 0;
	}

	.footer {
		margin-top: 20px;
	}

	.header .header_main {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.zt8_user_nav {
		margin-left: 0;
	}

	.header .header_main ul {
		margin: 0;
		display: flex;
		flex-wrap: wrap;
		gap: 8px 4px;
	}

	.header .header_main ul li,
	.header .header_main ul li a {
		height: auto;
		line-height: 1.4;
		width: auto;
		padding: 4px 8px;
	}

	.header .header_main ul li[data-category-switch] a {
		min-width: auto;
		font-size: 0;
	}

	.header .header_main ul li[data-category-switch] a::after {
		font-size: 15px;
		font-weight: 700;
	}

	.zt8_user_card {
		grid-template-columns: 1fr;
	}

	.zt8_user_intro,
	.zt8_user_form {
		padding: 30px 24px;
	}

	.header .header_main ul li[data-category-switch="yu_wen"] a::after {
		content: "汉字";
	}

	.header .header_main ul li[data-category-switch="pin_yin"] a::after {
		content: "拼音";
	}

	.header .header_main ul li[data-category-switch="ying_wen"] a::after {
		content: "英文";
	}

	.header .header_main ul li[data-category-switch="shu_zi"] a::after {
		content: "数字";
	}

	.header .header_main ul li[data-category-switch="kong_bi"] a::after {
		content: "控笔";
	}

	.header .header_main ul li {
		text-align: left;
	}

	.category_switchbar_inner {
		width: 100%;
		padding: 10px 14px;
		box-sizing: border-box;
		gap: 10px;
	}

	.category_switch_item {
		width: 92px;
		flex-basis: 92px;
		padding: 5px;
	}

	.category_switch_thumb {
		height: 96px;
	}

	.category_switch_name {
		font-size: 12px;
	}

	.main {
		flex-direction: column;
	}

	.main .f_l_50,
	.main .f_r_50 {
		flex: 1 1 auto;
		width: 100%;
		display: block;
	}

	.main .main_preview {
		position: static;
		width: 100%;
		max-width: none;
		max-height: none;
		overflow: visible;
		left: auto !important;
		display: block;
	}

	.info {
		grid-template-columns: 1fr;
	}

	.index_main {
		gap: 16px;
	}

	.index_category {
		padding: 18px;
	}

	.index_category_head {
		display: block;
	}

	.index_category_head p {
		margin-top: 6px;
		text-align: left;
	}

	.index_category_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.index_main .img_box {
		max-width: none;
		min-width: 0;
		padding-top: 0;
		padding-bottom: 0;
	}

	.footer .footer_main {
		flex-direction: column;
		gap: 18px;
	}

	.footer .footer_contact {
		text-align: left;
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.header {
		padding: 8px 0;
	}

	.header .header_main {
		gap: 6px;
	}

	.header .header_main .header_main_logo img {
		width: 132px;
		height: auto;
	}

	.header .header_main ul {
		gap: 4px 2px;
		width: 100%;
	}

	.header .header_main ul li,
	.header .header_main ul li a {
		padding: 3px 7px;
		line-height: 1.25;
	}

	.header .header_main ul li:not([data-category-switch]) a {
		min-width: auto;
		font-size: 14px;
	}

	.header .header_main ul li[data-category-switch] a::after {
		font-size: 14px;
	}

	.header .header_main ul li.category_preview_active,
	.header .header_main ul li.dang_qian[data-category-switch],
	.header:not(.category_switching) .header_main ul li.dang_qian:not([data-category-switch]) {
		position: relative;
	}

	.header .header_main ul li.category_preview_active::after,
	.header .header_main ul li.dang_qian[data-category-switch]::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -15px;
		height: 15px;
		background: #b8b8b8;
		z-index: 2;
	}

	.header.category_switching .header_main ul li.dang_qian:not(.category_preview_active)::after {
		content: none;
	}

	.header:not(.category_switching) .header_main ul li.dang_qian:not([data-category-switch])::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -15px;
		height: 15px;
		background: #f6eadc;
		z-index: 2;
	}

	.category_switchbar {
		border-top: 0;
		box-shadow: none;
	}

	.header,
	.index_intro_top,
	.index_main,
	.footer {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		box-sizing: border-box;
	}

	.main {
		width: min(calc(100% - 20px), var(--page-width));
		margin-top: 18px;
	}

	.main .main_preview,
	.main .main_set {
		padding: 18px;
		border-radius: 20px;
	}

	.main .main_set h1,
	.main .main_preview h4 {
		font-size: 24px;
	}

	.main .main_set .main_set_xiao_biao_ti,
	.main .main_set .main_set_xiao_biao_ti_you {
		float: none;
		display: block;
	}

	.main .main_set .main_set_xiao_biao_ti_you {
		padding-top: 6px;
		margin-bottom: 10px;
	}

	.main .main_preview #copybook_element {
		min-height: 320px;
		padding: 16px 10px;
		overflow: visible;
	}

	#copybook_preview_mobile_shell {
		overflow: hidden;
	}

	#copybook_preview_mobile_scale {
		margin: 0;
	}

	.all_an_ju_1 {
		font-size: 18px;
	}

	.submit_wrap_dual {
		flex-direction: column;
	}

	.main .main_set .main_set_content_button {
		flex-direction: column;
		align-items: stretch;
	}

	.main .main_set .main_set_content_button_left,
	.main .main_set .main_set_content_button_right {
		justify-content: flex-start;
	}

	.main .main_set .main_set_content_button .main_set_submit_inline {
		width: 100%;
	}

	.main .main_set .main_set_content_button .main_set_print_inline {
		width: 100%;
	}

	.page_margin_setting {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.page_margin_setting_panel {
		left: 0;
		width: min(270px, calc(100vw - 72px));
	}

	.all_an_hui_2 {
		font-size: 16px;
	}

	.header .header_main,
	.info,
	.index_intro_top,
	.index_main,
	.footer .footer_main {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		box-sizing: border-box;
		padding-left: 10px;
		padding-right: 10px;
	}

	.index_main {
		gap: 12px;
	}

	.index_category {
		padding: 14px;
		border-radius: 20px;
	}

	.index_category_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.index_category_head h2 {
		font-size: 20px;
	}

	.index_main .img_box {
		max-width: none;
		min-width: 0;
	}

	.index_main .img_box .img_box_t .btn {
		width: 100%;
	}

	.index_intro_top_inner {
		padding: 18px;
		border-radius: 20px;
	}

	.index_intro_top h1 {
		font-size: 24px;
	}

}

/* Header user nav styles */
.header_main {
display: flex;
align-items: center;
justify-content: flex-start;
position: relative;
width: 100%;
box-sizing: border-box;
}
.header_main_logo {
flex-shrink: 0;
}
.header_main ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
gap: 20px;
justify-content: center;
}
.header_main ul li {
display: inline-block;
}
.header_main ul li a {
text-decoration: none;
color: inherit;
}
.zt8_user_nav {
position: absolute;
top: 5px;
right: 15px;
display: flex;
gap: 10px;
z-index: 100;
}
.zt8_user_nav a {
text-decoration: none;
padding: 3px 10px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.6);
color: #333;
font-size: 14px;
font-weight: 500;
}
.zt8_user_nav span {
color: rgba(255, 255, 255, 0.8);
font-size: 14px;
}

/* Custom font styles */
.zt8_custom_font_section {
    margin: 15px 0;
}

.zt8_custom_font_section.hidden {
    display: none;
}

.zt8_font_select_wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.zt8_font_select_wrapper label {
    font-size: 14px;
    color: #333;
}

.zt8_font_select {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

.zt8_font_select option {
    padding: 4px 8px;
}

.zt8_font_manage_btn {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.zt8_font_manage_btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Font management modal */
.zt8_font_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.zt8_font_modal.show {
    display: flex;
}

.zt8_font_modal_content {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    height: auto;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.zt8_font_modal_title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.zt8_font_modal_body {
    margin-bottom: 15px;
}

.zt8_font_upload_wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.zt8_font_upload_wrapper:hover {
    background: var(--accent-deep);
}

.zt8_font_upload_wrapper input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.zt8_font_file_name {
    margin-left: 10px;
    font-size: 13px;
    color: #666;
}

.zt8_font_preview {
    margin-top: 10px;
    padding: 10px;
    background: #fafafa;
    border-radius: 4px;
    font-size: 24px;
    text-align: center;
}

.zt8_font_list {
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.zt8_font_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.zt8_font_item:last-child {
    border-bottom: none;
}

.zt8_font_item_name {
    font-size: 14px;
    color: #333;
}

.zt8_font_delete_btn {
    padding: 2px 8px;
    font-size: 12px;
    color: #c00;
    border: 1px solid #c00;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}

.zt8_font_delete_btn:hover {
    background: #ffeaea;
}

.zt8_font_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.zt8_font_modal_btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.zt8_font_modal_btn.cancel {
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
}

.zt8_font_modal_btn.cancel:hover {
    background: #f5f5f5;
}

.zt8_font_modal_btn.confirm {
    border: none;
    background: var(--accent);
    color: #fff;
}

.zt8_font_modal_btn.confirm:hover {
    background: var(--accent-deep);
}

/* Font loading indicator */
.zt8_font_loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.zt8_font_loading.show {
    display: flex;
}

.zt8_loading_spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.zt8_loading_text {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.zt8_loading_progress {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.zt8_loading_progress_bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.zt8_loading_percent {
    font-size: 14px;
    color: #fff;
}

.zt8_font_login_tip {
    margin-left: 10px;
    font-size: 12px;
    color: #999;
}
