:root {
	--qf-accent: #f97316;
	--qf-text: #111827;
	--qf-muted: #9ca3af;
	--qf-body: #6b7280;
	--qf-line: #e5e7eb;
	--qf-soft: #f3f4f6;
	--qf-bg: #ffffff;
}

* {
	box-sizing: border-box;
}

body.home-question-feed {
	margin: 0;
	background: var(--qf-bg);
	color: var(--qf-text);
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

html[lang^="en"] body.home-question-feed {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.qf-page {
	max-width:100%;
	min-height: 100vh;
	margin: 0 auto;
	background: #ffffff;
	padding-bottom: 82px;
}

.qf-statusbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 44px;
	padding: 0 28px;
	font-size: 13px;
	font-weight: 700;
}

.qf-statusbar__time { justify-self: start; }
.qf-statusbar__notch {
	width: 120px;
	height: 28px;
	border-radius: 20px;
	background: #1a1a1a;
}
.qf-statusbar__signal {
	justify-self: end;
	width: 16px;
	height: 12px;
	display: block;
}

.qf-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px 13px;
	position: sticky;
	top: 0;
	z-index: 5;
	border-bottom: 1px solid var(--qf-line);
	background: #fff;
}

.qf-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.qf-brand__logo {
	height: 30px;
	width: auto;
	display: block;
	flex: 0 0 auto;
}

.qf-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.qf-bell {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
}

.qf-bell img {
	width: 22px;
	height: 22px;
	display: block;
}

.qf-user {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 16px;
	background: var(--qf-accent);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.qf-user.is-blue { background: #3b82f6; }
.qf-user.is-green { background: #10b981; }
.qf-user.is-purple { background: #8b5cf6; }

.qf-user img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qf-tabs {
	display: flex;
	gap: 8px;
	padding: 10px 16px 12px;
	border-bottom: 1px solid var(--qf-line);
	background: #fff;
}

.qf-tab {
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--qf-soft);
	color: var(--qf-body);
	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
}

.qf-tab.is-active {
	background: var(--qf-accent);
	color: #ffffff;
}

.qf-feed {
	display: grid;
	gap: 12px;
	padding: 12px 16px 16px;
}

.qf-feed-sentinel {
	height: 1px;
}

.qf-card {
	padding: 14px 16px 14px;
	border: 1px solid var(--qf-line);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.qf-card.is-featured {
	border-color: #ede9fe;
}

.qf-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.qf-avatar {
	width: 34px;
	height: 34px;
	border-radius: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	flex: 0 0 34px;
	overflow: hidden;
}

.qf-avatar.is-purple { background: #8b5cf6; }
.qf-avatar.is-orange { background: #f97316; }
.qf-avatar.is-blue { background: #3b82f6; }
.qf-avatar.is-green { background: #10b981; }

.qf-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qf-card__meta {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.qf-card__author-row {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex-wrap: wrap;
}

.qf-card__author-row strong {
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
}

.qf-card__label {
	padding: 1px 5px;
	border-radius: 4px;
	background: #ede9fe;
	color: #5b21b6;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 700;
}

.qf-card__meta span {
	font-size: 11px;
	line-height: 1.2;
	color: var(--qf-muted);
}

.qf-card h2 {
	margin: 14px 0 9px;
	font-size: 14px;
	line-height: 1.52;
	font-weight: 700;
}

.qf-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.62;
	color: var(--qf-body);
}

.qf-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 12px;
}

.qf-card__chips span {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--qf-soft);
	font-size: 11px;
	line-height: 1.2;
	font-weight: 500;
	color: #374151;
}

.qf-card__stats {
	display: flex;
	gap: 16px;
	padding-top: 11px;
	margin-top: 14px;
	border-top: 1px solid var(--qf-line);
	font-size: 12px;
	line-height: 1.2;
	color: var(--qf-muted);
	flex-wrap: wrap;
}

.qf-card__stats span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.qf-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	max-width:100%;
	height: 70px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: center;
	padding: 0 4px;
	background: #ffffff;
	border-top: 1px solid var(--qf-line);
}

.qf-bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	text-decoration: none;
	color: var(--qf-muted);
	font-size: 10px;
	font-weight: 500;
}

.qf-bottom-nav a img {
	width: 22px;
	height: 22px;
	display: block;
}

.qf-bottom-nav a.is-active {
	color: var(--qf-accent);
	font-weight: 700;
}

.qf-bottom-nav__plus span {
	width: 46px;
	height: 46px;
	border-radius: 23px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--qf-accent);
	box-shadow: 0 4px 14px rgba(249,115,22,.45);
}

@media (min-width: 768px) {
	body.home-question-feed {
		padding: 0;
		background: #ffffff;
	}

	.qf-page {
		width: 100%;
		max-width: none;
		margin: 0;
		border-radius: 0;
		overflow: visible;
		box-shadow: none;
	}

	.qf-bottom-nav {
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		transform: none;
	}
}
