@charset "utf-8";

* {
	margin: 0;
	padding: 0;
}

:root {

	--max-width: 480px;
	--max-height: 960px;

	--head-height: 48px;
	--head-txt-size: 12px;
	--head-line-height: 32px;
	--head-color: #333333;
	--head-background: #FAFAFA;
	--head-line: #CCCCCC80;

	--menu-height: 64px;
	--menu-size: 12px;
	--menu-size-active: 14px;
	--menu-color: #666666;
	--menu-color-active: #333333;
	--menu-icon: 24px;
	--menu-icon-active: 32px;
	--menu-background: #FCFCFC;
	--menu-line: #CCCCCC80;

	--main-padding: 8px;
	--main-index: 1;
	--head-index: 1000;
	--menu-index: 1000;
	--modal-index: 10000;
	--prompt-index: 100000;
	--loading-index: 1000000;

	--color-default: #000000;
	--color-basic: #333333;
	--color-light: #FAFAFA;
	--color-white: #F0F0F0;
	--color-grey: #AAAAAA;
	--color-gray: #666666;
	--color-title: #A52A2A;
	--color-desc: #8A8AA0;
	--color-supp: #999999;
	--color-tip: #CC3300;
	--color-link: #4169E1;
	--color-heedful: #4169E1;
	--color-success: #09BB00;
	--color-warn: #F99F20;
	--color-wrong: #F02020;
	--color-error: #f03030;
	--color-dark: #333333;
	--color-black: #111111;
	--color-button: #558F8F;
	--color-improtant: #AA5500;
	--color-border: #CCCCCC;
	--color-mask: #00000080;
	--color-shadow: #AAAAAA80;
	--color-transparent: transparent;

	--bg-default: #F8F8F8;
	--bg-basic: #EEEEEE;
	--bg-light: #F0F0F0;
	--bg-white: #FAFAFA;
	--bg-shade: #E0E0E0;
	--bg-transparent: transparent;

	--fsize-default: 16px;
	--lineheight-default: 16px;
	--fsize-title: 15px;
	--lineheight-title: 15px;
	--fsize-basic: 14px;
	--lineheight-basic: 14px;
	--fsize-desc: 13px;
	--lineheight-desc: 13px;
	--fsize-supp: 14px;
	--lineheight-supp: 14px;
	--fsize-info: 14px;
	--lineheight-info: 14px;
	--fsize-important: 20px;
	--lineheight-important: 20px;
}

input,
select,
option,
textarea,
button,
img,
a {
	outline: none;
	appearance: none;
	-webkit-highlight: none;
	-webkit-appearance: none;
	tap-highlight-color: transparent;
	-webkit-tap-highlight-color: transparent;
}

select,
option,
img,
button {
	border: none;
	border: 0;
	border-image-width: 0;
}

img {
	width: 100%;
	height: auto;
}

textarea {
	resize: none;
}

a,
button {
	cursor: pointer;
}

button:active {
	transform: translateY(1px);
}

button,
input[type=button] {
	border: none;
}

input {
	font-size: var(--fsize-basic);
	line-height: var(--lineheight-basic);
	border: 1px solid var(--color-border);
}

input:-webkit-autofill {
	-webkit-text-fill-color: var(--color-basic);
}

input[type=checkbox] {
	position: relative;
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

input[type=checkbox]:checked::before {
	content: '\2714';
	position: absolute;
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	font-size: 12px;
	line-height: 12px;
	left: -2px;
	top: -2px;
	font-weight: 700;
	color: #6E3C03;
	text-align: center;
	background: linear-gradient(180deg, #FBFAD6 0%, #C8BB81 100%);
}

input,
button,
select,
option {
	box-sizing: border-box;
	font-size: var(--fsize-basic);
	font-weight: 500;
	background: transparent;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

a {
	color: var(--color-default);
	text-decoration: none;
}

ul,
ol,
li {
	list-style: none;
}

body {
	color: var(--fsize-default);
	font-size: var(--fsize-default);
	line-height: var(--lineheight-default);
	background: var(--bg-default);
	scrollbar-width: none;

	user-select: none;
	-ms-user-select: none;
	-ms-touch-select: none;
	-moz-user-select: -moz-none;
	-webkit-user-select: none;
	/* -webkit-touch-callout: none; */
}

body::-webkit-scrollbar,
.scrollbar::-webkit-scrollbar,
.main::-webkit-scrollbar {
	display: none;
}


.hide {
	display: none !important;
}

.flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
}


.btn {
	color: var(--color-white);
	padding: 4px 8px;
	background-color: #17ABE3;
}


.root,
.page,
.external {
	position: relative;
	width: 100%;
	max-width: var(--max-width);
	height: 100vh;
	max-height: var(--max-height);
	margin: 0 auto;
	overflow-y: auto;
	background-color: var(--bg-light);
	/* box-shadow: inset 0 0 0 1px #00000020; */
	/* border: 1px solid crimson; */
}

@media screen and (min-width: 480px) {

	.root,
	.page,
	.external {
		border-left: 1px solid var(--color-shadow);
		border-right: 1px solid var(--color-shadow);
	}
}

.head,
.main,
.menu,
.modal {
	box-sizing: border-box;
}

.head,
.main,
.menu {
	position: relative;
}

.head {
	height: var(--head-height);
	color: var(--head-color);
	text-align: center;
	line-height: var(--head-line-height);
	z-index: var(--head-index);
	background-color: var(--head-background);
	/* background-color: #88FF88; */
}

.head::after {
	content: '';
	display: block;
	margin-top: -1px;
	width: 100%;
	height: 1px;
	background-color: var(--head-line);
	/* background-color: #FF0000; */
}

.head .head-content {
	padding: 16px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	line-height: var(--lineheight-default);
}

.head .icon {
	width: 16px;
	height: auto;
}

.head .text {
	color: var(--head-color);
	font-size: var(--fsize-basic);
}

.head .title {
	font-size: var(--fsize-default);
}

.head .back .icon {
	/* margin-right: 4px; */
}
.head .sub {
	min-width: 32px;
}
.head .sub .text {
	margin-left: 4px;
}


.main {
	padding: 0 var(--main-padding);
	color: var(--color-basic);
	overflow-y: auto;
	background-color: var(--color-transparent);
	/* background-color: #8888FF; */
	/* border: 1px solid cornflowerblue; */
}

.root .main {
	padding: 8px 12px;
	height: calc(100% - var(--menu-height));
}

.page .main {
	padding: 0 8px 12px;
	height: calc(100% - var(--head-height));
}

.external .main {
	padding: 0;
	height: 100%;
}

.menu {
	height: var(--menu-height);
	color: var(--menu-color);
	text-align: center;
	line-height: var(--menu-line-height);
	z-index: var(--menu-index);
	background-color: var(--menu-background);
	/* background-color: #88FF88; */
}

.menu::before {
	content: '';
	display: block;
	width: 100%;
	height: 0px;
	border-bottom: 1px solid var(--head-line);
	/* border-bottom: 1px solid #FF0000; */
}

.menu-content {
	margin-top: 4px;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
}

.menu .menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.menu .icon {
	width: var(--menu-icon);
}

.menu .active .icon {
	width: var(--menu-icon-active);
}

.menu .text {
	margin-top: 2px;
	color: var(--menu-color);
	font-size: var(--menu-size)
}

.menu .active .text {
	color: var(--menu-color-active);
	font-size: var(--menu-size-active)
}


/* 模态框 */
.modal {
	display: none;
	position: fixed;
	z-index: var(--modal-index);
	width: 100%;
	max-width: var(--max-width);
	height: 100%;
	max-height: var(--max-height);
	top: 0;
	/* left: 50%;
	transform: translateX(-50%); */
	line-height: 0;
	margin: 0 auto;
}

.modal-mask {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: var(--color-mask);
}

.modal-body {
	position: absolute;
	box-sizing: border-box;
	width: calc(100% - 12px);
	top: 50%;
	transform: translateY(-50%);
	padding: 12px;
	margin-left: 6px;
	background-color: transparent;
	border-radius: 4px;
	line-height: 0;
}

.modal-content {
	line-height: 16px;
	position: relative;
	max-height: 80vh;
	overflow: hidden;
	overflow-y: auto;
	top: 0px;
	padding: 12px 8px;
	background: #F0F0F0;
	/* border: 1px solid #18305A; */
	/* box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.5), 0px -1px 0px 0px #649CCF; */
}

.modal-close {
	width: 19px;
	height: auto;
	position: absolute;
	top: 20px;
	right: 20px;
}



/* 提示消息 */
.prompt {
	position: fixed;
	width: 80%;
	left: 10%;
	z-index: var(--prompt-index);
	text-align: center;
}

.prompt-top {
	top: 10%;
}

.prompt-middle {
	top: 45%;
}

.prompt-bottom {
	bottom: 10%;
}

.prompt p {
	display: inline-block;
	padding: 8px 12px;
	color: var(--color-light);
	line-height: 24px;
	border-radius: 6px;
	background: var(--color-mask);
}

.prompt .success {
	color: #09BB00;
}

.prompt .warn {
	color: #F99F20;
}

.prompt .error {
	color: #F02020;
}

.prompt-hide {
	animation: prompt-hide 1s linear forwards;
}

@keyframes prompt-hide {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}



/* 加载状态 */
.loading {
	display: none;
	position: fixed;
	z-index: var(--loading-index);
	width: 100%;
	max-width: var(--max-width);
	height: 100%;
	max-height: var(--max-height);
	top: 0;
	/* left: 50%;
	transform: translateX(-50%); */
	margin: 0 auto;
}

.loading .load-mask {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	/* background: var(--color-mask); */
	/* background-color: #AA550040; */
}

.loading .load-body {
	position: absolute;
	box-sizing: border-box;
	min-width: 128px;
	max-width: 120%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 12px;
	text-align: center;
	opacity: 0.8;
	background-color: var(--color-mask);
	border-radius: 6px;
}

.loading .load-animation {
	width: 60px;
	height: auto;
}

.loading .load-text {
	margin-top: 8px;
	color: var(--color-white);
	line-height: 20px;
}