/* 账户类页面（login / orders / replies / payment）公共骨架样式，页面自己的 max-width 与专属样式在各页 css 里 */
.ost-account {
	margin: 0 auto;
	padding: 44px 16px 64px;
}

.ost-account h1 {
	text-align: center;
}

.ost-account-desc {
	text-align: center;
	color: #667085;
	margin: 0 0 22px;
}

.ost-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 18px rgba(16, 24, 40, .09);
	padding: 22px;
}

/* 页头：图标 + 左对齐标题 + 说明 */
.ost-page-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
}

.ost-page-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ost-page-icon {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, #0af 0%, #0077b6 100%);
	box-shadow: 0 8px 20px rgba(0, 136, 204, .24);
}

.ost-page-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.ost-page-head h1 {
	margin: 0;
	text-align: left;
	font-size: 1.55em;
	line-height: 1.25;
	color: #101828;
}

.ost-page-desc {
	margin: 6px 0 0;
	color: #667085;
	font-size: .92em;
	line-height: 1.5;
}

/* 通用提示文案 */
.ost-hint {
	color: #667085;
	margin: 18px 0;
}

.ost-hint--center {
	text-align: center;
}

.ost-hint a {
	color: #0088cc;
}

/* 空列表 / 未登录状态 */
.ost-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 54px 24px;
	text-align: center;
	background: #fff;
	border: 1px dashed #dfe6ef;
	border-radius: 18px;
}

.ost-state p {
	margin: 0;
	color: #667085;
}

.ost-state-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: #eef7fd;
	color: #0088cc;
}

.ost-state-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.ost-state-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 132px;
	margin-top: 6px;
	padding: 11px 22px;
	border-radius: 999px;
	background: #0af;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 8px 18px rgba(0, 136, 204, .26);
	transition: background-color .2s ease, transform .2s ease;
}

.ost-state-btn:hover,
.ost-state-btn:active {
	background: #0097e6;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

/* 加载蒙层：整屏半透明 + 居中转圈（首屏用） */
.ost-loading {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(255, 255, 255, .62);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	color: #667085;
	font-size: 14px;
}

.ost-loading-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 26px 34px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 14px 44px rgba(16, 24, 40, .12);
}

/* 首屏加载失败：不再挡页面，退化成列表上方的一行提示 */
.ost-loading.is-error {
	position: static;
	display: block;
	gap: 0;
	margin: 18px 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.ost-loading.is-error .ost-loading-card {
	padding: 0;
	background: none;
	box-shadow: none;
}

.ost-loading.is-error .ost-spinner {
	display: none;
}

.ost-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid rgba(0, 136, 204, .22);
	border-top-color: #0088cc;
	border-radius: 50%;
	animation: ost-spin .8s linear infinite;
}

@keyframes ost-spin {
	to {
		transform: rotate(360deg);
	}
}

/* 列表卡片入场动画 */
@keyframes ost-rise {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 560px) {
	.ost-page-heading {
		align-items: flex-start;
	}

	.ost-page-icon {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}

	.ost-page-head h1 {
		font-size: 1.35em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ost-spinner {
		animation-duration: 2s;
	}

	.ost-state-btn {
		transition: none;
	}
}
