:root {
	--start-brand-image: none;
	--bg: #061322;
	--bg-deep: #030a12;
	--surface: rgba(11, 29, 47, 0.72);
	--surface-strong: rgba(14, 35, 56, 0.94);
	--surface-soft: rgba(255, 255, 255, 0.055);
	--border: rgba(192, 226, 255, 0.14);
	--border-bright: rgba(83, 221, 207, 0.42);
	--text: #f6fbff;
	--text-soft: #b8c9d8;
	--text-muted: #7f98aa;
	--search-text: #f8fcff;
	--search-placeholder: #c4d2dd;
	--accent: #55e1cf;
	--accent-strong: #16bfae;
	--accent-blue: #62a8ff;
	--accent-ink: #05221f;
	--shadow: 0 24px 80px rgba(0, 7, 15, 0.34);
	--radius-xl: 30px;
	--radius-lg: 22px;
	--radius-md: 16px;
	--page-width: 1180px;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #edf6f7;
	--bg-deep: #dbe9ed;
	--surface: rgba(255, 255, 255, 0.72);
	--surface-strong: rgba(255, 255, 255, 0.94);
	--surface-soft: rgba(9, 55, 71, 0.055);
	--border: rgba(7, 48, 63, 0.12);
	--border-bright: rgba(14, 158, 143, 0.36);
	--text: #102b38;
	--text-soft: #526c78;
	--text-muted: #718894;
	--search-text: #183441;
	--search-placeholder: #657d88;
	--accent: #19b8a8;
	--accent-strong: #078c80;
	--accent-blue: #347fd2;
	--accent-ink: #f4fffd;
	--shadow: 0 24px 70px rgba(27, 77, 89, 0.14);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	color: var(--text);
	background:
		linear-gradient(rgba(4, 15, 25, 0.48), rgba(4, 15, 25, 0.79)),
		var(--start-brand-image) center 20% / cover fixed,
		radial-gradient(circle at 18% -10%, rgba(38, 147, 174, 0.36), transparent 42%),
		radial-gradient(circle at 84% 10%, rgba(43, 119, 203, 0.24), transparent 38%),
		linear-gradient(150deg, var(--bg) 0%, var(--bg-deep) 100%);
	overflow-x: hidden;
	transition: color 0.25s ease, background-color 0.25s ease;
}

:root[data-theme="light"] body {
	background:
		linear-gradient(rgba(238, 248, 248, 0.62), rgba(232, 243, 246, 0.84)),
		var(--start-brand-image) center 20% / cover fixed,
		radial-gradient(circle at 18% -10%, rgba(56, 208, 187, 0.28), transparent 42%),
		radial-gradient(circle at 84% 10%, rgba(67, 145, 219, 0.2), transparent 38%),
		linear-gradient(150deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(to bottom, black, transparent 68%);
	content: "";
	pointer-events: none;
}

button,
input {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	color: inherit;
}

svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 20;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 14px;
	clip: auto;
	border-radius: 10px;
	background: var(--surface-strong);
}

.ambient {
	position: fixed;
	z-index: -1;
	width: 420px;
	height: 420px;
	border-radius: 999px;
	filter: blur(110px);
	opacity: 0.17;
	pointer-events: none;
}

.ambient-one {
	top: 25%;
	left: -220px;
	background: var(--accent);
}

.ambient-two {
	right: -250px;
	bottom: 8%;
	background: var(--accent-blue);
}

.page-shell {
	width: min(calc(100% - 48px), var(--page-width));
	margin: 0 auto;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 70px;
	padding: 10px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 760;
	letter-spacing: -0.02em;
}

.brand-mark {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 13px;
	color: #062a26;
	background: linear-gradient(135deg, #bffcf0, var(--accent));
	box-shadow: 0 8px 28px rgba(62, 220, 199, 0.22);
}

.brand-logo {
	display: flex;
	align-items: center;
	height: 42px;
}

.brand-logo img {
	display: block;
	width: auto;
	max-width: 160px;
	height: auto;
	max-height: 38px;
	object-fit: contain;
}

.brand-name {
	font-size: 17px;
}

.top-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.icon-button,
.home-link {
	display: inline-flex;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: 13px;
	color: var(--text-soft);
	background: var(--surface-soft);
	backdrop-filter: blur(14px);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.icon-button:hover,
.home-link:hover {
	border-color: var(--border-bright);
	color: var(--text);
	background: var(--surface);
	transform: translateY(-1px);
}

.icon-button:focus-visible,
.home-link:focus-visible,
.group-tab:focus-visible,
.engine-button:focus-visible,
.search-submit:focus-visible,
.site-card:focus-visible,
.section-more:focus-visible,
.search-form:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.icon-button {
	width: 42px;
	padding: 0;
	cursor: pointer;
}

.icon-button svg {
	font-size: 19px;
}

.moon-icon {
	display: none;
}

:root[data-theme="light"] .sun-icon {
	display: none;
}

:root[data-theme="light"] .moon-icon {
	display: block;
}

.home-link {
	gap: 8px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 650;
}

.home-link svg {
	font-size: 17px;
}

.hero {
	max-width: 820px;
	margin: 22px auto 0;
	text-align: center;
}

.eyebrow,
.section-kicker {
	margin: 0;
	color: var(--accent);
	font-size: 11px;
	font-weight: 780;
	letter-spacing: 0.19em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.eyebrow span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 5px rgba(85, 225, 207, 0.1), 0 0 18px rgba(85, 225, 207, 0.65);
}

.hero-copy {
	max-width: 620px;
	margin: 8px auto 0;
	color: var(--text-soft);
	font-size: 13px;
	line-height: 1.55;
}

.search-panel {
	width: min(100%, 720px);
	margin: 18px auto 0;
	padding: 7px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
	box-shadow: var(--shadow);
	backdrop-filter: blur(26px) saturate(130%);
}

:root[data-theme="light"] .search-panel {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6));
}

.search-groups {
	display: flex;
	gap: 5px;
	padding: 3px 4px 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.search-groups::-webkit-scrollbar,
.engine-row::-webkit-scrollbar {
	display: none;
}

.group-tab,
.engine-button {
	flex: 0 0 auto;
	border: 0;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.group-tab {
	padding: 6px 11px;
	border-radius: 9px;
	color: var(--text-soft);
	background: transparent;
	font-size: 12px;
	font-weight: 650;
}

.group-tab:hover {
	color: var(--text);
	background: var(--surface-soft);
}

.group-tab.is-active {
	color: var(--accent-ink);
	background: var(--accent);
	box-shadow: 0 7px 20px rgba(62, 220, 199, 0.18);
}

.search-form {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: 52px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface-strong);
	box-shadow: 0 12px 30px rgba(0, 8, 15, 0.12);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
	border-color: var(--border-bright);
	box-shadow: 0 14px 38px rgba(0, 8, 15, 0.18), 0 0 0 4px rgba(85, 225, 207, 0.08);
}

.search-icon {
	display: grid;
	width: 48px;
	place-items: center;
	color: var(--accent);
	font-size: 20px;
}

.search-form input {
	width: 100%;
	height: 50px;
	min-width: 0;
	padding: 0 10px 0 0;
	border: 0;
	outline: 0;
	color: var(--search-text);
	background: transparent;
	font-size: 15px;
	font-weight: 520;
}

.search-form input::placeholder {
	color: var(--search-placeholder);
	opacity: 1;
}

.search-form input::-webkit-search-cancel-button {
	filter: grayscale(1);
	opacity: 0.55;
}

.search-submit {
	display: inline-flex;
	height: 40px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-right: 6px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	color: var(--accent-ink);
	background: linear-gradient(135deg, #8ef4e4, var(--accent));
	box-shadow: 0 8px 24px rgba(50, 206, 188, 0.18);
	font-size: 13px;
	font-weight: 750;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease;
}

:root[data-theme="light"] .search-submit {
	color: #f5fffd;
	background: linear-gradient(135deg, #20c7b6, #079587);
}

.search-submit:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.search-submit svg {
	font-size: 18px;
}

.engine-row {
	display: flex;
	gap: 7px;
	padding: 7px 4px 1px;
	overflow-x: auto;
	scrollbar-width: none;
}

.engine-button {
	padding: 5px 9px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--text-soft);
	background: transparent;
	font-size: 11.5px;
}

.engine-button:hover,
.engine-button.is-active {
	color: var(--text);
	background: var(--surface-soft);
}

.engine-button.is-active {
	border-color: var(--border);
}

.search-hint {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.is-shaking {
	animation: form-shake 0.32s ease;
}

@keyframes form-shake {
	25% { transform: translateX(-5px); }
	50% { transform: translateX(5px); }
	75% { transform: translateX(-3px); }
}

.featured {
	margin-top: 32px;
	scroll-margin-top: 24px;
}

.section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 14px;
}

.section-heading h2 {
	margin: 6px 0 0;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.035em;
}

.section-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 4px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 650;
	transition: color 0.2s ease, gap 0.2s ease;
}

.section-more:hover {
	gap: 11px;
	color: var(--accent);
}

.section-more svg {
	font-size: 17px;
}

.site-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13px;
}

.site-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-height: 86px;
	align-items: center;
	gap: 12px;
	padding: 15px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
	backdrop-filter: blur(18px);
	transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.site-card::before {
	position: absolute;
	top: 0;
	left: 18px;
	width: 38px;
	height: 1px;
	background: var(--accent);
	box-shadow: 0 0 13px var(--accent);
	content: "";
	opacity: 0;
	transition: opacity 0.22s ease, width 0.22s ease;
}

.site-card:hover {
	border-color: var(--border-bright);
	background: var(--surface);
	box-shadow: 0 16px 38px rgba(0, 8, 18, 0.16);
	transform: translateY(-3px);
}

.site-card:hover::before {
	width: 72px;
	opacity: 1;
}

.site-icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 15px;
	color: var(--accent-ink);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(200, 244, 240, 0.82));
	font-weight: 800;
}

.site-icon img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 7px;
	object-fit: contain;
}

.site-copy {
	display: block;
	min-width: 0;
	text-align: left;
}

.site-copy strong,
.site-copy small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-copy strong {
	font-size: 14px;
	font-weight: 720;
}

.site-copy small {
	margin-top: 7px;
	color: var(--text-muted);
	font-size: 11px;
}

.site-arrow {
	color: var(--text-muted);
	font-size: 16px;
	opacity: 0;
	transform: translate(-4px, 4px);
	transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-card:hover .site-arrow {
	color: var(--accent);
	opacity: 1;
	transform: translate(0, 0);
}

.empty-state {
	display: flex;
	min-height: 150px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: 1px dashed var(--border);
	border-radius: var(--radius-lg);
	color: var(--text-muted);
	background: var(--surface-soft);
}

.empty-state span {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 10px;
}

.start-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 82px;
	padding: 28px 0 34px;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 12px;
}

.start-footer p {
	margin: 0;
}

.footer-meta {
	display: grid;
	min-width: 0;
	gap: 8px;
}

.wallpaper-credit {
	display: inline-flex;
	max-width: min(720px, 72vw);
	align-items: center;
	gap: 7px;
	color: var(--text-muted);
	font-size: 11px;
}

.wallpaper-credit svg {
	flex: 0 0 auto;
	font-size: 14px;
}

.wallpaper-credit span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wallpaper-credit:hover {
	color: var(--accent);
}

.start-footer a {
	color: var(--text-soft);
	font-weight: 650;
}

.start-footer a:hover {
	color: var(--accent);
}

.noscript-note {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 10;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text);
	background: var(--surface-strong);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 980px) {
	.site-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.site-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 10px;
	}

	.site-card {
		grid-template-columns: auto minmax(0, 1fr);
		min-height: 76px;
		gap: 10px;
		padding: 11px;
	}

	.site-copy small,
	.site-arrow {
		display: none;
	}
}

@media (max-width: 760px) {
	.page-shell {
		width: min(calc(100% - 30px), var(--page-width));
	}

	.topbar {
		min-height: 68px;
		padding: 10px 0;
	}

	.brand-name,
	.home-link span {
		display: none;
	}

	.home-link {
		width: 42px;
		padding: 0;
	}

	.brand-logo img {
		max-width: 126px;
		max-height: 32px;
	}

	.hero {
		margin-top: 20px;
	}

	.hero-copy {
		max-width: 480px;
		font-size: 14px;
	}

	.search-panel {
		margin-top: 18px;
		border-radius: 21px;
	}

	.site-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.featured {
		margin-top: 34px;
	}
}

@media (max-width: 520px) {
	body::before {
		background-size: 36px 36px;
	}

	.page-shell {
		width: min(calc(100% - 24px), var(--page-width));
	}

	.top-actions {
		gap: 7px;
	}

	.icon-button,
	.home-link {
		width: 38px;
		height: 38px;
		border-radius: 12px;
	}

	.brand-mark {
		width: 38px;
		height: 38px;
	}

	.hero {
		margin-top: 16px;
	}

	.eyebrow {
		font-size: 9px;
	}

	.hero-copy {
		padding: 0 8px;
		font-size: 13px;
		line-height: 1.7;
	}

	.search-panel {
		padding: 7px;
		border-radius: 21px;
	}

	.search-groups {
		padding: 4px 3px 7px;
	}

	.group-tab {
		padding: 6px 10px;
		font-size: 12px;
	}

	.search-form {
		min-height: 52px;
		border-radius: 17px;
	}

	.search-icon {
		width: 44px;
		font-size: 19px;
	}

	.search-form input {
		height: 50px;
		font-size: 15px;
	}

	.search-submit {
		width: 42px;
		height: 42px;
		margin-right: 6px;
		padding: 0;
		border-radius: 13px;
	}

	.search-submit span {
		display: none;
	}

	.search-hint {
		display: none;
	}

	.engine-row {
		padding-top: 10px;
	}

	.featured {
		margin-top: 30px;
	}

	.section-heading {
		align-items: center;
		margin-bottom: 18px;
	}

	.section-kicker {
		font-size: 9px;
	}

	.section-heading h2 {
		margin-top: 6px;
		font-size: 25px;
	}

	.section-more {
		font-size: 12px;
	}

	.site-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.site-card {
		display: flex;
		min-height: 118px;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 10px;
		padding: 14px;
		border-radius: 15px;
	}

	.site-icon {
		width: 42px;
		height: 42px;
		border-radius: 13px;
	}

	.site-icon img {
		padding: 6px;
	}

	.site-copy {
		width: 100%;
	}

	.site-copy strong {
		font-size: 13px;
	}

	.site-copy small,
	.site-arrow {
		display: none;
	}

	.start-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 9px;
		margin-top: 58px;
		padding: 24px 2px 28px;
	}

	.wallpaper-credit {
		max-width: calc(100vw - 34px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
