.w-btn {
	overflow: hidden;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 2.6rem;
	font-size: .95rem;
	color: var(--w-bg);
	letter-spacing: .2rem;
	text-shadow: 0 0 .1rem #0008;
	background-image: linear-gradient(to top, var(--color-1, var(--w-main)), var(--color-2, var(--w-main)));
	border-radius: .2rem;
	border: 1px solid var(--color-1, var(--w-main));
}



.w-lines {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.w-flex {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	position: relative;
}

.w-flex-column {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.w-hover-bg {
	background-color: #0001;
}

.w-hover {
	filter: brightness(90%);
}

.w-hover-before {
	position: relative;
}

.w-hover-before::before {
	content: '';
	position: absolute;
	background-color: #0001;
	box-shadow: .1rem .1rem .6rem #0001 inset;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: .3rem;
}

/* #ifndef H5 */
page,
.w-var {

	--w-step: #{$w-step};

	--w-z-index: #{$w-z-index};

	--w-z-index-top: #{$w-z-index-top};

	@include varColor($colors, $w-step);


}

page,
view {
	font-family: Segoe UI, Segoe UI Midlevel, Segoe WP, Arial, sans-serif;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	color: inherit;
}

/* #endif */
/* #ifdef H5 */
:root,
.w-var {

	--w-step: #{$w-step};

	--w-z-index: #{$w-z-index};

	--w-z-index-top: #{$w-z-index-top};

	@include varColor($colors, $w-step);

}

:root,
view {
	font-family: Segoe UI, Segoe UI Midlevel, Segoe WP, Arial, sans-serif;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	color: inherit;
}

page {
	position: relative;
	margin: auto !important;
}

/* #endif */

.item-btn {
	margin: .6rem .5rem 0;
}

.item-group {
	position: relative;
	padding: .5rem .5rem;
	margin: .6rem .5rem 0;
	background: var(--w-bg-light);
	color: var(--w-text);
	font-size: .9rem;
	border-radius: .3rem;
	box-shadow: 0 0 1px var(--w-bg-dark-2);



	.item {
		position: relative;
		display: flex;
		border-bottom: 1px solid var(--w-bg);
		align-items: center;
		padding: 0;

		&>view {
			position: relative;
			padding: .5rem;
			padding-left: 0;

			&:first-child {
				padding-left: .5rem;
			}
		}

		&:last-child {
			border-bottom: none;
		}

		&.noborder {
			border-bottom: none;
		}

		&-title {
			padding: 0 .3rem;
			display: flex;

			&.required::before {
				content: "*";
				display: inline-block;
				box-sizing: border-box;
				padding-right: .2em;
				width: 1em;
				text-align: right;
				margin-left: -1em;
				color: var(--w-error);
			}
		}

		&-body {
			flex-grow: 2;
			display: flex;
			justify-content: flex-end;
			font-size: .8rem;
			color: var(--w-text-light-2);
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}

		&-right {
			padding: 0 .3rem;
			display: flex;
			align-items: center;
		}
	}
}

.w-tabs {
	--padding: .5em;
	--border-radius: .3em;
	--border-color: var(--w-bg-dark);
	--bg-color: var(--w-bg-light-1);
	font-size: 1rem;
	padding: var(--padding);
	box-sizing: border-box;

	&-content {
		min-height: 2em;
		border-radius: var(--border-radius);
		border: 1px solid var(--border-color);
	}

	&-title {
		display: flex;
		align-items: flex-end;
		padding-left: var(--border-radius);

		&>view {
			border: 1px solid var(--border-color);
			background-color: var(--border-color);
			margin-left: var(--border-radius);
			padding: var(--border-radius) calc(var(--border-radius) * 2);
			border-top-left-radius: var(--border-radius);
			border-top-right-radius: var(--border-radius);
			color: var(--w-bg-dark-2);
			transform: translateY(1px);

			&.active {
				background-color: inherit;
				border-bottom-color: var(--bg-color);
			}
		}
	}
}


.w-bottom-bar {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 0;
	--main: var(--w-main);
	box-sizing: content-box;
	padding-bottom: var(--w-bottom);
	width: 100%;
	position: fixed;
	background-color: var(--w-bg);

	color: var(--w-bg);
	font-size: 1rem;
	height: 3rem;
	bottom: 0;
	overflow: hidden;
	box-shadow: 0 0 .5rem #0003;

	&>view {
		display: flex;
		justify-content: center;
		align-items: center;
		box-sizing: border-box;
		position: relative;
		border: none;
	}

	&>view:first-child {
		border-top: solid 1px var(--w-bg);
		background-color: var(--w-bg-light);
		font-size: .9rem;
		color: var(--w-text-light-1);
		background-image: linear-gradient(to top, var(--w-bg-light), var(--w-bg-dark));
		text-shadow: 1px 1px 0 var(--w-bg-light-2);

		&.w-before {
			background-image: linear-gradient(to top, var(--w-bg-light), var(--w-bg-dark-1));
		}
	}

	&>view:last-child {
		letter-spacing: .5rem;
		background-color: var(--main);

		&.w-before {
			filter: brightness(.9);
		}

		&::before {
			content: '';
			position: absolute;
			left: -1rem;
			top: 0px;
			width: 1rem;
			height: 3rem;
			border-width: 3rem 1rem 0 0;
			border-style: solid;
			border-color: var(--main);
			border-top-color: #0000;
			box-sizing: border-box;
		}
	}
}

// 印章效果
.w-seal {
	position: absolute;
	display: flex;
	line-height: 1;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 6em;
	height: 6em;
	border-radius: 10em;
	border: .25em solid currentColor;
	background-color: #FFF;
	z-index: 1;
	transform: rotate(-25deg);
    padding: 0;

	&>view {
		border: .13em solid currentColor;
		padding: .3em 0;
		width: 4.3em;
		text-align: center;
		font-weight: bold;
	}

	&::before {
		content: "";
		position: absolute;
		width: 5em;
		height: 5em;
		border: .15em solid currentColor;
		border-radius: 10em;

	}

	&::after {
		content: "";
		position: absolute;
		width: 3.5em;
		height: 3.5em;
		border: .15em solid currentColor;
		border-color: currentColor #0000 currentColor #0000;
		border-radius: 10em;

	}
}

.pre {
	white-space: pre-wrap;
}

.w-warning {
	color: var(--w-warn-dark);
}

.w-info {
	color: var(--w-info);
}

.w-success {
	color: var(--w-success-dark);
}

.w-primary {
	color: var(--w-primary-dark);
}

.w-default {
	color: var(--w-text);
}

.w-danger {
	color: var(--w-error-dark);
}

.w-loading {
	display: inline-block;
	width: 1em;
	height: 1em;
	border-radius: 1em;
	border: .2em solid currentColor;
	border-top-color: #0000;
	animation: w-am-loading 1s infinite;
}

@keyframes w-am-loading {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.w-main-bg {
	background-color: #0000;
	background-image: linear-gradient(to bottom, var(--w-main) 0, hsla(var(--w-main-h), var(--w-main-s), var(--w-main-l), 0) var(--bg-height, 150px));
	background-repeat: repeat-x;

}

.w-radio,
.w-checkbox {
	--btn-color-inner: var(--btn-color,currentColor);
	--opacity: .6;
	transition: all .3s;
	cursor: pointer;


	&::before {
		content: '';
		font-size: var(--btn-size,inherit);
		width: 1em;
		height: 1em;
		opacity: var(--opacity);
		box-sizing: border-box;
		border: solid 1px var(--btn-color-inner);
		margin-right: .2em;
		border-radius: .2em;
		background-color: var(--btn-bg-color-inner,#0000);
		background-image: url("data:image/svg+xml;base64,PHN2ZyB0PSIxNzA5NzA3MjQ5OTg3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQyODUiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PHBhdGggZD0iTTg0My42OTM5NTkgMjkzLjYwOTA2MSA0MjUuMjU1ODY5IDcxMi4wNTYzNjIgMTg2LjE0NTAyNiA0NzIuOTQ3NTY2IDY2LjU3OTg4MyA1OTIuNTA0NTIyIDQyNS4yNTU4NjkgOTUxLjE2NTE1OCA5NjMuMjYwMTI2IDQxMy4xNzQyMDRaIiBwLWlkPSI0Mjg2IiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PC9zdmc+");
		background-size: .65em .65em;
		background-repeat: no-repeat;
		background-position: var(--background-position-inner,center -1em);
		transition: all .3s;
		overflow: hidden;
	}

	&.selected {
		--btn-color-inner: var(--selected-btn-color, var(--w-main));
		--opacity: 1;
		--btn-bg-color-inner: var(--selected-btn-color, var(--w-main));
		--background-position-inner: center .1em;
		color: var(--selected-text-color, currentColor);
	}

}

.w-radio::before {
	border-radius: 1em;
}
