/* Telegram iOS 风格主题 */
page {
	background-color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.tg-page {
	background-color: #ffffff;
	min-height: 100vh;
}

.tg-page-muted {
	background-color: #f4f4f7;
	min-height: 100vh;
}

.tg-search-wrap {
	padding: 8px 16px 10px;
	background: #ffffff;
}

.tg-search-wrap .search {
	padding: 0 !important;
	background: transparent !important;
}

.tg-search-wrap .search .content {
	height: 36px !important;
	border: none !important;
	background-color: #f0f0f3 !important;
	border-radius: 10px !important;
}

.tg-search-wrap .search .input {
	font-size: 15px !important;
	color: #000000;
}

.tg-list-row {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 10px 16px;
	background: #ffffff;
	box-sizing: border-box;
}

.tg-list-row::after {
	content: "";
	position: absolute;
	left: 72px;
	right: 0;
	bottom: 0;
	height: 1px;
	background: #e5e5ea;
	transform: scaleY(0.5);
}

.tg-list-row:last-child::after,
.tg-list-row.no-divider::after {
	display: none;
}

.tg-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
}

.tg-avatar image {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.tg-avatar-square {
	border-radius: 12px;
}

.tg-avatar-square image {
	border-radius: 12px;
}

.tg-row-body {
	flex: 1;
	min-width: 0;
	margin-left: 12px;
}

.tg-row-title {
	font-size: 17px;
	font-weight: 600;
	color: #000000;
	line-height: 1.3;
}

.tg-row-sub {
	margin-top: 2px;
	font-size: 15px;
	color: #8e8e93;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tg-row-top {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.tg-row-time {
	flex-shrink: 0;
	margin-left: 8px;
	font-size: 14px;
	color: #8e8e93;
	font-weight: 400;
}

.tg-badge {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #e5e5ea;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.tg-badge text,
.tg-badge-text {
	color: #636366;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.tg-badge-danger {
	background: #ff3b30;
}

.tg-badge-danger text,
.tg-badge-danger .tg-badge-text {
	color: #ffffff;
}

.tg-section-divider {
	padding: 6px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #8e8e93;
	background: #f4f4f7;
}

.tg-index-bar .uni-indexed-list-text.active,
.tg-index-bar.uni-indexed-list-bar.active .uni-indexed-list-text.active {
	color: #8b7cf6 !important;
}

.tg-card-group {
	margin: 12px 16px 0;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
}

.tg-card-group .uni-list {
	background: transparent;
}

.tg-card-group .uni-list:before,
.tg-card-group .uni-list:after {
	display: none;
}

.tg-profile-header {
	/* App 关闭 titleNView 时需避开状态栏/挖孔摄像头 */
	padding: 24px 16px 20px;
	padding-top: calc(24px + constant(safe-area-inset-top));
	padding-top: calc(24px + env(safe-area-inset-top, 0px));
	background: #ffffff;
	text-align: center;
}

.tg-profile-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	margin: 0 auto 12px;
	overflow: hidden;
	background: #dcdee0;
}

.tg-profile-avatar image {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.tg-profile-name {
	font-size: 22px;
	font-weight: 700;
	color: #000000;
	line-height: 1.25;
}

.tg-profile-handle {
	margin-top: 4px;
	font-size: 15px;
	color: #8e8e93;
	cursor: pointer;
}

/* 其它页仍用原生顶栏时，做成 Telegram 磨砂白 */
/* #ifdef H5 */
uni-page-head,
.uni-page-head,
.uni-page-head-bd {
	background: rgba(255, 255, 255, 0.86) !important;
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 0.5px solid rgba(0, 0, 0, 0.08) !important;
	box-shadow: none !important;
}
.uni-page-head .uni-page-head-title,
.uni-page-head__title,
.uni-page-head-hd + .uni-page-head-bd .uni-page-head-title {
	font-size: 17px !important;
	font-weight: 650 !important;
	color: #000000 !important;
}
.uni-page-head .uni-btn-icon,
.uni-page-head-btn {
	color: #3390ec !important;
}
uni-page-head .uni-page-head-hd,
uni-page-head .uni-page-head-btn {
	position: relative !important;
	z-index: 30 !important;
	pointer-events: auto !important;
}
uni-page-head .uni-page-head-title {
	pointer-events: none !important;
}
/* #endif */

/* 自定义悬浮底栏：藏起原生 tabBar，列表可滚到底栏上方 */
/* #ifdef H5 */
uni-tabbar,
uni-tabbar.uni-tabbar-bottom,
.uni-app--showtabbar uni-tabbar {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
}
uni-tabbar .uni-placeholder,
.uni-tabbar ~ .uni-placeholder {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
}
/* #endif */

.tg-page,
.tg-page-muted,
.page.tg-page,
.page.tg-page-muted {
	box-sizing: border-box;
}

.tg-tabbar-space {
	height: calc(92px + constant(safe-area-inset-bottom));
	height: calc(92px + env(safe-area-inset-bottom, 0px));
	width: 100%;
	flex-shrink: 0;
	pointer-events: none;
}
