/* ===== Reset & Base ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: #f5f6fa;
	color: #03122D;
	line-height: 1.6;
	min-height: 100vh;
}

/* ===== Navbar ===== */
.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 50px;
	padding: 0 16px;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid #f0f0f0;
}

.navbar__back {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s;
}
.navbar__back:active { background: #f5f5f5; }

.navbar__title {
	font-size: 17px;
	font-weight: 600;
	color: #03122D;
}

.navbar__placeholder { width: 36px; }

/* ===== Content Wrap ===== */
.content-wrap {
	max-width: 750px;
	margin: 0 auto;
	padding: 20px 20px 40px;
	min-height: calc(100vh - 50px);
}

/* ===== Article ===== */
.article {
	background: #fff;
	border-radius: 16px;
	padding: 24px 20px;
	box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
}

.article__title {
	font-size: 22px;
	font-weight: bold;
	color: #03122D;
	line-height: 1.4;
	word-break: break-all;
}

.article__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	margin-bottom: 12px;
}

.article__time,
.article__views {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #999fab;
	font-size: 14px;
}

.article__body {
	font-size: 15px;
	color: #333;
	line-height: 1.8;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.article__body img {
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 12px auto;
	border-radius: 8px;
}

.article__body p {
	margin-bottom: 10px;
}

/* ===== Sharer Card ===== */
.sharer-card {
	margin-top: 14px;
	padding: 16px;
	border-radius: 14px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
}

.sharer-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
}

.sharer-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sharer-card__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #03122D;
}

.sharer-card__tag {
	width: fit-content;
	padding: 2px 10px;
	border-radius: 6px;
	background: #3b3f4a;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
}

/* ===== Loading ===== */
.loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 0;
	color: #999fab;
	font-size: 14px;
	gap: 16px;
}

.loading__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #eee;
	border-top-color: #F5A21A;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ===== Error ===== */
.error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 0;
	gap: 16px;
	color: #999fab;
	text-align: center;
}

.error p { font-size: 14px; }

.error__btn {
	padding: 10px 32px;
	background: linear-gradient(135deg, #FF9140 0%, #F5A21A 100%);
	color: #fff;
	border: none;
	border-radius: 24px;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(245,162,26,0.3);
}
.error__btn:active { opacity: 0.85; }
