:root {
	--search-accent: #f97316;
	--search-text: #111827;
	--search-muted: #6b7280;
	--search-soft: #9ca3af;
	--search-border: #e5e7eb;
	--search-chip: #fef3e2;
	--search-surface: #f3f4f6;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: #ffffff;
	color: var(--search-text);
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

.search-screen {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.search-main {
	flex: 1;
	padding: 14px 16px 92px;
}

.search-input-shell {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--search-surface);
}

.search-input-shell__icon {
	position: relative;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.search-input-shell__icon::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 1px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--search-soft);
	border-radius: 50%;
	box-sizing: border-box;
}

.search-input-shell__icon::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 1px;
	width: 7px;
	height: 2px;
	border-radius: 999px;
	background: var(--search-soft);
	transform: rotate(45deg);
	transform-origin: right center;
}

.search-input-shell__field {
	width: 100%;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--search-text);
	font-size: 14px;
}

.search-input-shell__field::placeholder {
	color: var(--search-soft);
}

.search-section {
	margin-top: 28px;
}

.search-section--tags {
	margin-top: 26px;
}

.search-section__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
}

.search-trending {
	margin: 0;
	padding: 0;
	list-style: none;
}

.search-trending__item {
	border-bottom: 1px solid var(--search-border);
}

.search-trending__button {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.search-trending__badge {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	flex-shrink: 0;
	background: var(--search-chip);
}

.search-trending__badge::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 8px;
	width: 11px;
	height: 11px;
	border: 2px solid var(--search-accent);
	border-radius: 50%;
	box-sizing: border-box;
}

.search-trending__badge::after {
	content: "";
	position: absolute;
	right: 7px;
	bottom: 8px;
	width: 7px;
	height: 2px;
	border-radius: 999px;
	background: var(--search-accent);
	transform: rotate(45deg);
	transform-origin: right center;
}

.search-trending__text {
	font-size: 14px;
	line-height: 1.45;
}

.search-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.search-tag {
	padding: 9px 14px;
	border: 1px solid var(--search-border);
	border-radius: 999px;
	background: #ffffff;
	color: var(--search-muted);
	font-size: 13px;
	line-height: 1.2;
}

.search-tag.is-hidden,
.search-trending__item.is-hidden {
	display: none;
}

.search-tag.is-selected {
	border-color: rgba(249, 115, 22, 0.4);
	background: rgba(249, 115, 22, 0.08);
	color: var(--search-accent);
}

.search-trending__item.is-highlighted .search-trending__text {
	color: var(--search-accent);
	font-weight: 700;
}

.search-bottom-nav {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: center;
	height: 70px;
	padding-bottom: env(safe-area-inset-bottom, 0);
	border-top: 1px solid var(--search-border);
	background: #ffffff;
}

.search-bottom-nav__item,
.search-bottom-nav__plus {
	text-decoration: none;
}

.search-bottom-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	color: var(--search-soft);
}

.search-bottom-nav__item img {
	width: 22px;
	height: 22px;
	opacity: 0.45;
}

.search-bottom-nav__item small {
	font-size: 10px;
	font-weight: 500;
}

.search-bottom-nav__item.is-active {
	color: var(--search-accent);
}

.search-bottom-nav__item.is-active img {
	opacity: 1;
}

.search-bottom-nav__plus {
	display: flex;
	justify-content: center;
}

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

.search-bottom-nav__plus img {
	width: 22px;
	height: 22px;
}

@media (max-width: 360px) {
	.search-main {
		padding-left: 14px;
		padding-right: 14px;
	}

	.search-tags {
		gap: 8px;
	}
}
