:host { 
/*	flex: 1;		*/
	display: flex;
	align-items: center;
	max-width: 100%;
}

/* Add slot-defaultable styles */
.slot-defaultable { display: contents; }
.slot-defaultable .slot:empty { display: none; }
.slot-defaultable .slot { display: contents; }
.slot-defaultable .default-slot { display: contents; }
.slot-defaultable .slot:empty + .default-slot { display: contents; }
.slot-defaultable.hidden { display: none; }

/* 公共外层容器样式 */
.wv-tabbar-item {
	--wv-arc-size: 40rpx;
	--wv-tabbar-item-radius: var(--wv-border-radius-small);
	--wv-tabbar-item-width: 100%;
	--wv-tabbar-item-height: 100%;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	transition: all 0.3s ease;
	width: var(--wv-tabbar-item-width);
	height: var(--wv-tabbar-item-height);
	min-width: 80rpx;
	padding: var(--wv-padding-default) 0;
	border-radius: var(--wv-tabbar-item-radius);
}


.wv-tabbar-item.arc.active {
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	transition: all 0s ease;
}
.wv-tabbar-item.arc.active:before, .wv-tabbar-item.arc.active:after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	width: var(--wv-arc-size); 
	height: var(--wv-arc-size); 
	z-index: 2;
}

.wv-tabbar-item.active {
	/* transform: perspective(50rpx) rotateX(5deg); */
	z-index: 3;
}


.wv-tabbar-item.arc:before {
	left: calc(var(--wv-arc-size) * -1);
	background: radial-gradient(circle at 0 0, transparent var(--wv-arc-size), var(--wv-background-theme) var(--wv-arc-size));
}


.wv-tabbar-item.arc:after {
	right: calc(var(--wv-arc-size) * -1);
	background: radial-gradient(circle at 100% 0, transparent var(--wv-arc-size), var(--wv-background-theme) var(--wv-arc-size));
}


.wv-tabbar-item-content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center; /* 默认居中 */
	gap: 0;
	width: 100%;
	transform-origin: center center;
	transition: transform 0.2s ease;
}

/* 内容对齐方式 */
.wv-tabbar-item-content.content-left {
	justify-content: flex-start;
}

.wv-tabbar-item-content.content-right {
	justify-content: flex-end;
}

.wv-tabbar-item-content.content-center {
	justify-content: center;
}

.wv-tabbar-item-content.icon-left {
	gap: 2rpx;
	flex-direction: row;
}
.wv-tabbar-item-content.icon-top {
	flex-direction: column;
}

.wv-tabbar-item-content.icon-right {
	gap: 2rpx;
	flex-direction: row-reverse;
}

.wv-tabbar-item-content.icon-bottom {
	flex-direction: column-reverse;
}

.wv-tabbar-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.2s ease;
}

.wv-tabbar-text {
	text-overflow: ellipsis;
	text-align: center;
	align-self: center;
	white-space: normal;
	font-size: var(--wv-font-size-small);
}
.wv-tabbar-item.stretch .wv-tabbar-text {
	white-space: nowrap;
}
.wv-tabbar-item-content.icon-inline .wv-tabbar-text {	
	font-size: var(--wv-font-size-small);
}

/* 文本加粗样式 */
.text-bold {
	font-weight: bold !important;
}

