@charset "UTF-8";
/* ==========================================================================
   纸飞机导航 · app.css
   单文件样式表：设计变量 → 基础样式 → 首屏 → 搜索 → 内容面板 → 卡片
   → 子页面 → 动效 / 响应式
   ========================================================================== */

/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
	--bg: #f3f3f3;
	--surface: #ffffff;
	--surface-soft: #f7f7f7;
	--surface-deep: #efefef;

	--ink: #636363;
	--ink-strong: #4b4b4b;
	--ink-mid: #7a7a7a;
	--ink-soft: #8f8f8f;
	--ink-faint: #b3b3b3;

	--line: #ececec;
	--line-strong: #e0e0e0;
	--accent: #ec5757;
	--accent-soft: rgba(236, 87, 87, 0.12);

	--radius-xs: 8px;
	--radius-sm: 12px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-pill: 999px;

	--shadow-xs: 0 1px 2px rgba(25, 25, 25, 0.04);
	--shadow-sm: 0 10px 24px -18px rgba(25, 25, 25, 0.4);
	--shadow-md: 0 18px 40px -26px rgba(25, 25, 25, 0.45);
	--shadow-panel: 0 40px 90px -80px rgba(25, 25, 25, 0.6);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	--nav-h: 56px;
	--container: 1200px;
	--gutter: 24px;

	/* ===== 首屏与交互参数（首页 / 搜索页共用）=====
	   首屏内容垂直中心：35vh = 内容块中心在视口高度 35% 处
	   搜索框上下间距以搜索框为基准；回顶阈值 0.3 = 首屏滚出 30% 后出现 */
	--hero-center: 35vh;

	/* 搜索框上下间距 */
	--search-gap-top: 66px; /* 首页：logo 到搜索框 */
	--search-gap-top-page: 68px; /* 搜索页：标题到搜索框 */
	--search-gap-bottom: 36px; /* 两页：搜索框到平台按钮 */

	/* 回到顶部按钮出现阈值（0.3 = 30%，也可写 30） */
	--totop-threshold: 0.3;

	--font-sans: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
		"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
		"Helvetica Neue", Arial, sans-serif;
	--font-cjk: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;

	color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. 基础
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ink);
	background-color: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

button,
input {
	font: inherit;
	color: inherit;
}

button {
	padding: 0;
	border: 0;
	background: none;
}

[hidden] {
	display: none !important;
}

::selection {
	background: rgba(236, 87, 87, 0.16);
	color: var(--ink-strong);
}

kbd {
	padding: 1px 5px;
	font-family: inherit;
	font-size: 0.88em;
	color: var(--ink-mid);
	background: var(--surface);
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: 5px;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* 仅靠程序聚焦的容器（如 <main id="main" tabindex="-1">，供「跳到正文」落脚）：
   鼠标点一下正文后按空格/方向键翻页，浏览器会把焦点可见性切到「键盘」模式，
   于是给整个内容区画上一圈 2px 主题红轮廓。因为内容区比视口宽，左右两边在
   屏幕外，只露出上下两条贯穿整页的红线。这里不画轮廓即可，滚动、锚点、
   键盘操作都不受影响；若日后想恢复提示，把 outline 改成 transparent 也行。 */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
	outline: none;
}

/* 纸飞机光标：桌面端全局使用（交互元素也用 cur，不显示小手/下划线） */
@media (hover: hover) and (pointer: fine) {
	body,
	a,
	button,
	summary,
	[role="button"] {
		cursor: url("../../25px.cur"), default;
	}

	input[type="search"],
	input[type="text"],
	textarea,
	.search__field {
		cursor: text;
	}
}

/* 细滚动条（WebKit） */
@media (hover: hover) {
	::-webkit-scrollbar {
		width: 10px;
		height: 10px;
	}

	::-webkit-scrollbar-thumb {
		background: #d8d8d8;
		border: 3px solid var(--bg);
		border-radius: 999px;
	}

	::-webkit-scrollbar-thumb:hover {
		background: #c6c6c6;
	}

	::-webkit-scrollbar-track {
		background: transparent;
	}
}

/* --------------------------------------------------------------------------
   3. 工具类
   -------------------------------------------------------------------------- */
.shell {
	width: 100%;
	max-width: calc(var(--layout-width, var(--container)) + var(--gutter) * 2);
	margin: 0 auto;
	padding-right: var(--gutter);
	padding-left: var(--gutter);
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.icon {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.skip-link {
	position: fixed;
	top: -64px;
	left: 16px;
	z-index: 200;
	padding: 10px 18px;
	font-size: 14px;
	color: var(--ink-strong);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-sm);
	transition: top 0.24s var(--ease);
}

.skip-link:focus {
	top: 14px;
}

/* --------------------------------------------------------------------------
   4. 品牌字标（纸飞机 .CC）
   -------------------------------------------------------------------------- */
.brand {
	display: inline-flex;
	align-items: flex-end;
	gap: 0.14em;
	font-size: 40px;
	line-height: 1;
	color: #7f7b7b;
}

.brand__char {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.16em;
}

.brand__pinyin {
	font-size: 0.4em;
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.09em;
	color: #a5a2a2;
	white-space: nowrap;
}

.brand__box {
	position: relative;
	isolation: isolate;
	z-index: 0;
	display: grid;
	place-items: center;
	width: 1.06em;
	height: 1.06em;
	border: 1px dashed #c4c1c1;
}

.brand__box::before,
.brand__box::after {
	content: "";
	position: absolute;
	z-index: -1;
	opacity: 0.75;
}

.brand__box::before {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	margin-left: -0.5px;
	background-image: linear-gradient(to bottom, #dcd9d9 50%, transparent 0);
	background-size: 1px 4px;
	background-repeat: repeat-y;
}

.brand__box::after {
	top: 50%;
	right: 0;
	left: 0;
	height: 1px;
	margin-top: -0.5px;
	background-image: linear-gradient(to right, #dcd9d9 50%, transparent 0);
	background-size: 4px 1px;
	background-repeat: repeat-x;
}

.brand__glyph {
	position: relative;
	z-index: 1;
	font-family: var(--font-cjk);
	font-size: 0.74em;
	line-height: 1;
	letter-spacing: 0;
}

.brand__cc {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.78em;
	line-height: 1;
	letter-spacing: 0.01em;
	color: #918e8e;
	margin-left: 0.04em;
	transform: translateY(-0.03em);
}

/* --------------------------------------------------------------------------
   5. 首屏
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 100vh; /* 兼容旧浏览器 */
	min-height: 100svh;
	/* 内容块中心位置由 --hero-center 控制（默认 40vh） */
	padding: 0 var(--gutter) 48px;
	padding-top: clamp(24px, calc(var(--hero-center, 40vh) - 130px), 80vh);
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	overflow: hidden;
	text-align: center;
}

.hero__halo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	background: radial-gradient(
		58% 52% at 50% 36%,
		#ffffff 0%,
		rgba(255, 255, 255, 0.65) 42%,
		rgba(255, 255, 255, 0) 72%
	);
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1600px;
}

.hero .brand {
	font-size: clamp(30px, 4.6vw, 42px);
	transition: opacity 0.3s var(--ease), transform 0.5s var(--ease-out);
}

.hero .brand:hover {
	opacity: 0.82;
	transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. 搜索
   -------------------------------------------------------------------------- */
.search {
	width: clamp(520px, 40vw, 1600px);
	max-width: 100%;
	margin-top: var(--search-gap-top, 44px);
	margin-right: auto;
	margin-left: auto;
}

.search__field {
	position: relative;
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 10px 0 26px;
	background: #ffffff;
	border: 1px solid #d4d4d4;
	border-radius: var(--radius-pill);
	/* 白底 + 轻内阴影，模仿图一 */
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.07),
		inset 0 1px 1px rgba(0, 0, 0, 0.045);
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
		background-color 0.25s var(--ease);
}

.search__field:hover {
	border-color: #c9c9c9;
}

.search__field:focus-within {
	background: #ffffff;
	border-color: #c9c9c9;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.055),
		0 0 0 3px rgba(145, 142, 142, 0.14);
}

.search__field input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	font-size: 16px;
	line-height: 1;
	color: var(--ink-strong);
	background: none;
	border: 0;
	outline: none;
	letter-spacing: 0.01em;
}

.search__field input::placeholder {
	color: #a3a3a3;
	opacity: 1;
}

.search__field input::-webkit-search-cancel-button,
.search__field input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.search__clear {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	color: var(--ink-soft);
	border-radius: 50%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease),
		color 0.2s var(--ease);
}

.search__field.is-filled .search__clear {
	opacity: 1;
	visibility: visible;
}

.search__clear:hover {
	color: var(--ink-strong);
	background: #f2f2f2;
}

.search__clear .icon {
	width: 14px;
	height: 14px;
}

.search__field.is-nudge {
	animation: nudge 0.36s var(--ease);
}

@keyframes nudge {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-5px);
	}
	60% {
		transform: translateX(4px);
	}
	85% {
		transform: translateX(-2px);
	}
}

/* 平台按钮 */
.engines {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: var(--search-gap-bottom, 16px);
}

.chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 38px;
	padding: 0 18px;
	font-size: 14px;
	line-height: 1;
	color: var(--ink);
	white-space: nowrap;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
		border-color 0.2s var(--ease), color 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}

.chip:active {
	transform: scale(0.98);
}

.chip.is-active {
	color: #ffffff;
	background: #918e8e; /* 取字标 .CC 的灰度 */
	border-color: #918e8e;
	box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.55);
}

.search__more {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.chip--more {
	color: var(--ink-mid);
	padding: 0 20px;
}

.chip--more .icon {
	width: 15px;
	height: 15px;
	color: var(--ink-faint);
	transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

/* --------------------------------------------------------------------------
   7. 内容面板 / 分类导航
   -------------------------------------------------------------------------- */
.site-main {
	padding-bottom: clamp(8px, 2vw, 24px);
}

.panel {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--content-radius, var(--radius-lg));
	box-shadow: var(--shadow-panel);
}

/* 分类栏距内容区上边框的距离（参数见 index.html） */
.site-main .panel {
	padding-top: var(--tabs-pad-top, 0);
}

.tabs {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	border-radius: var(--content-radius, var(--radius-lg))
		var(--content-radius, var(--radius-lg)) 0 0;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
		border-radius 0.25s var(--ease);
}

.tabs.is-stuck {
	border-bottom-color: var(--line);
	border-radius: 0;
	box-shadow: 0 12px 30px -26px rgba(0, 0, 0, 0.6);
}

.tabs__list {
	display: flex;
	justify-content: center;
	gap: 12px; /* 按钮间距约为原先的 3 倍 */
	padding: 9px 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tabs__list::-webkit-scrollbar {
	display: none;
}

.tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 20px;
	font-size: 14px;
	line-height: 1;
	color: var(--ink-mid);
	white-space: nowrap;
	border-radius: var(--radius-pill);
	transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.tab.is-active {
	font-weight: 600;
	color: var(--ink-strong);
	background: var(--surface-deep);
}

.panel__body {
	padding-top: var(--layout-pad-top, clamp(18px, 3.4vw, 36px));
	padding-right: var(--layout-pad-side, clamp(16px, 3.6vw, 44px));
	padding-bottom: var(--layout-pad-bottom, clamp(28px, 4vw, 44px));
	padding-left: var(--layout-pad-side, clamp(16px, 3.6vw, 44px));
}

/* --------------------------------------------------------------------------
   8. 分类与卡片
   -------------------------------------------------------------------------- */
.section {
	padding-top: var(--section-space, clamp(20px, 3vw, 30px));
	padding-bottom: var(--section-space, clamp(20px, 3vw, 30px));
}

.section:first-child {
	padding-top: 4px;
}

.section__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.section__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	color: #8f8f8f;
	background: #f5f5f5;
	border-radius: 9px;
}

.section__icon .icon {
	width: 15px;
	height: 15px;
}

.section__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--ink-strong);
}

.section__count {
	margin-left: 1px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.1em;
	color: var(--ink-faint);
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
	gap: 24px; /* 行列间距各增加 100% */
}

.card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 80px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--card-radius, var(--radius-sm));
	box-shadow: var(--shadow-xs);
	transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
		box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}

.card:active {
	transform: scale(0.992);
}

.card__head {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.card__logo {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #9c9c9c;
	background: #f4f4f4;
	border-radius: 6px;
}

.card__logo img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.card__name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #5b5b5b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.22s var(--ease);
}

.card__desc {
	display: -webkit-box;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.5;
	color: #888888;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* --------------------------------------------------------------------------
   9. 回顶部 / 页脚
   -------------------------------------------------------------------------- */
.to-top {
	position: fixed;
	right: 22px;
	right: max(22px, env(safe-area-inset-right, 0px));
	bottom: 22px;
	bottom: max(22px, env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: var(--ink-mid);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	box-shadow: var(--shadow-sm);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.92);
	transition: opacity 0.28s var(--ease), transform 0.32s var(--ease-out),
		visibility 0.28s, border-color 0.24s var(--ease),
		color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top .icon {
	width: 17px;
	height: 17px;
}

.site-footer {
	padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
	text-align: center;
}

.site-footer__line {
	margin-top: 8px;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--ink-soft);
}

.site-footer__line:first-child {
	margin-top: 0;
}

.site-footer a {
	color: var(--ink-mid);
	transition: color 0.2s var(--ease);
}

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

.site-footer__sep {
	margin: 0 8px;
	color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   10. 子页面（搜索页 / 关于 / 404）
   -------------------------------------------------------------------------- */
.page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 22px var(--gutter);
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
}

.topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 14px;
	font-size: 13px;
	color: var(--ink-mid);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
		transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.topbar__link .icon {
	width: 14px;
	height: 14px;
}

/* 搜索页 */
.searchpage {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	/* 与首页共用 --hero-center */
	padding: 0 var(--gutter) clamp(56px, 10vh, 96px);
	padding-top: clamp(16px, calc(var(--hero-center, 40vh) - 220px), 75vh);
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
}

.searchpage__inner {
	width: 100%;
	max-width: 1600px;
	text-align: center;
}

.searchpage__title {
	font-size: clamp(20px, 3.4vw, 26px);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ink-strong);
}

.searchpage__sub {
	margin-top: 8px;
	font-size: 12.5px;
	letter-spacing: 0.04em;
	color: var(--ink-soft);
}

.searchpage .search {
	margin-top: var(--search-gap-top-page, 28px);
}

.engines--wide {
	max-width: 620px;
	margin-right: auto;
	margin-left: auto;
}

.engines--wide .chip {
	min-width: 88px;
}

/* 关于页 */
.article {
	width: 100%;
	/* --about-width 控制白色面板宽度，再加上两侧留白 */
	max-width: calc(var(--about-width, 780px) + var(--gutter) * 2);
	margin: 0 auto;
	padding: clamp(8px, 2vh, 24px) var(--gutter) clamp(48px, 8vh, 72px);
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
}

.article__head {
	text-align: center;
}

.article__head h1 {
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ink-strong);
}

.article__head p {
	margin-top: 10px;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.article__figure {
	display: flex;
	justify-content: center;
	margin: 26px 0 34px;
}

.article__figure img {
	width: min(300px, 76%);
	opacity: 0.96;
}

.panel--prose {
	padding: clamp(22px, 4vw, 44px);
}

.prose {
	font-size: 15px;
	line-height: 1.95;
	color: var(--ink);
}

.prose h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 600;
	color: var(--ink-strong);
}

.prose h2::before {
	content: "";
	flex: none;
	width: 3px;
	height: 16px;
	background: var(--accent);
	border-radius: 2px;
	opacity: 0.7;
}

.prose p {
	margin: 0 0 14px;
}

.prose p:last-child {
	margin-bottom: 0;
}

.prose ul {
	display: grid;
	gap: 9px;
	margin: 0 0 18px;
}

.prose li {
	position: relative;
	padding-left: 17px;
	font-size: 14.5px;
	color: var(--ink-mid);
}

.prose li::before {
	content: "";
	position: absolute;
	top: 0.78em;
	left: 2px;
	width: 5px;
	height: 5px;
	background: #cfcfcf;
	border-radius: 50%;
}

.prose hr {
	margin: 28px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose s {
	color: var(--ink-faint);
}

.prose__meta {
	font-size: 13px;
	line-height: 2;
	color: var(--ink-soft);
}

.prose__link {
	color: var(--ink-mid);
	border-bottom: 1px solid var(--line-strong);
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* 404 */
.notfound {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(32px, 8vh, 80px) var(--gutter) clamp(64px, 10vh, 110px);
	text-align: center;
}

.notfound__icon {
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	color: #cbcbcb;
}

.notfound__code {
	font-size: clamp(64px, 11vw, 96px);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.14em;
	color: #d9d9d9;
}

.notfound h1 {
	margin-top: 18px;
	font-size: clamp(18px, 2.6vw, 22px);
	font-weight: 600;
	color: var(--ink-strong);
}

.notfound p {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--ink-soft);
}

.notfound__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.chip--solid {
	color: #ffffff;
	background: #918e8e;
	border-color: #918e8e;
}

/* 打字粒子画布 */
.fx-canvas {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 120;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. 悬停 / 键盘动效（仅指针设备）
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
	.chip:hover {
		color: var(--ink-strong);
		border-color: #d2d2d2;
		box-shadow: var(--shadow-sm);
		transform: translateY(-1px);
	}

	.chip.is-active:hover {
		color: #ffffff;
		background: #888585;
		border-color: #888585;
	}

	.chip--solid:hover {
		color: #ffffff;
		background: #878484;
		border-color: #878484;
	}

	.chip--more:hover .icon {
		color: var(--accent);
		transform: translate(1px, -1px);
	}

	.tab:hover:not(.is-active) {
		color: var(--ink-strong);
		background: #f6f6f6;
	}

	.card:hover {
		background: #fff;
		border-color: #dcdcdc;
		box-shadow: var(--shadow-md);
		transform: translateY(-3px);
	}

	.card:hover .card__name {
		color: var(--accent);
	}

	.card:hover .card__logo img {
		filter: grayscale(0.35);
		opacity: 1;
	}

	.to-top:hover {
		color: var(--ink-strong);
		border-color: #cfcfcf;
		box-shadow: var(--shadow-md);
		transform: translateY(-2px);
	}

	.topbar__link:hover {
		color: var(--ink-strong);
		border-color: #d2d2d2;
		transform: translateY(-1px);
		box-shadow: var(--shadow-sm);
	}
}

/* --------------------------------------------------------------------------
   12. 入场 / 滚动动效
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.hero .brand {
		animation: rise 0.8s var(--ease-out) backwards;
	}

	.hero .search {
		animation: rise 0.8s 0.08s var(--ease-out) backwards;
	}

	/* 只做淡入，避免 transform 改变锚点位置（分类跳转会偏移） */
	.js .reveal {
		opacity: 0;
	}

	.js .reveal.is-in {
		opacity: 1;
		transition: opacity 0.55s var(--ease);
	}

	.js .reveal .section__head,
	.js .reveal .cards {
		transform: translateY(14px);
		transition: transform 0.65s var(--ease);
	}

	.js .reveal.is-in .section__head,
	.js .reveal.is-in .cards {
		transform: none;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js .reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.js .reveal .section__head,
	.js .reveal .cards {
		transform: none !important;
	}
}

/* --------------------------------------------------------------------------
   13. 响应式
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1600px) {
	.hero .brand {
		font-size: 46px;
	}
}

@media screen and (min-width: 2200px) {
	.hero .brand {
		font-size: 50px;
	}
}

@media screen and (max-width: 1200px) {
	.site-main .panel {
		padding-top: 56px;
	}

	.panel__body {
		padding-top: 64px;
		padding-right: 56px;
		padding-bottom: 48px;
		padding-left: 56px;
	}

	.cards {
		grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
	}
}

@media screen and (max-width: 900px) {
	:root {
		--gutter: 18px;
	}

	.shell {
		max-width: 100%;
	}

	.site-main .panel {
		padding-top: 28px;
	}

	.panel__body {
		padding-top: 44px;
		padding-right: 28px;
		padding-bottom: 40px;
		padding-left: 28px;
	}

	.section {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.cards {
		grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
		gap: 20px;
	}
}

@media screen and (max-width: 640px) {
	:root {
		--gutter: 14px;
	}

	body {
		font-size: 15px;
	}

	/* 搜索框更容易点按 */
	.search__field {
		height: 52px;
		padding-left: 22px;
	}

	.search__field input {
		font-size: 16px;
	}

	.engines {
		gap: 7px;
	}

	.chip {
		height: 40px;
		padding: 0 16px;
		font-size: 13.5px;
	}

	.search__more {
		margin-top: 12px;
	}

	/* 分类导航 */
	.tabs__list {
		justify-content: flex-start;
		width: max-content;
		max-width: 100%;
		margin: 0 auto;
		padding: 8px 10px;
		gap: 6px;
	}

	.tab {
		height: 40px;
		padding: 0 14px;
		font-size: 13.5px;
	}

	.panel {
		border-radius: var(--radius-md);
	}

	.site-main .panel {
		padding-top: 12px;
	}

	.tabs {
		border-radius: var(--radius-md) var(--radius-md) 0 0;
	}

	.tabs.is-stuck {
		border-radius: 0;
	}

	.panel__body {
		padding: 14px 12px 24px;
	}

	.section {
		padding-top: 36px;
		padding-bottom: 40px;
	}

	.section__head {
		margin-bottom: 12px;
	}

	.section__title {
		font-size: 15px;
	}

	/* 手机两列 */
	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.card {
		min-height: 76px;
		padding: 12px 12px 13px;
		gap: 5px;
	}

	.card__head {
		gap: 7px;
	}

	.card__logo {
		width: 20px;
		height: 20px;
		font-size: 11px;
		border-radius: 5px;
	}

	.card__logo img {
		width: 14px;
		height: 14px;
	}

	.card__name {
		font-size: 13.5px;
	}

	.card__desc {
		font-size: 11.5px;
		-webkit-line-clamp: 2;
	}

	.to-top {
		right: 14px;
		right: max(14px, env(safe-area-inset-right, 0px));
		bottom: 14px;
		bottom: max(14px, env(safe-area-inset-bottom, 0px));
		width: 42px;
		height: 42px;
	}

	.topbar {
		padding: 16px var(--gutter);
	}

	.topbar__link {
		height: 32px;
		padding: 0 12px;
		font-size: 12px;
	}

	.engines--wide {
		gap: 7px;
	}

	.engines--wide .chip {
		min-width: 76px;
		height: 38px;
		padding: 0 12px;
		font-size: 13px;
	}

	.panel--prose {
		border-radius: var(--radius-md);
		padding: 20px 16px;
	}

	.prose {
		font-size: 14.5px;
		line-height: 1.9;
	}

	.prose h2 {
		font-size: 16px;
	}
}

@media screen and (max-width: 380px) {
	.engines {
		gap: 6px;
	}

	.chip {
		padding: 0 14px;
	}

	.tabs__list {
		gap: 6px;
		padding: 8px;
	}

	.tab {
		padding: 0 12px;
		font-size: 13px;
	}

	.cards {
		gap: 14px;
	}

	.card {
		padding: 11px 10px 12px;
	}

	.card__desc {
		-webkit-line-clamp: 2;
		font-size: 11px;
	}

	.engines--wide .chip {
		min-width: 70px;
		padding: 0 8px;
		font-size: 12.5px;
	}
}

@media screen and (max-width: 340px) {
	.chip {
		padding: 0 12px;
		font-size: 13px;
	}

	.engines {
		gap: 6px;
	}
}

@media screen and (max-height: 640px) {
	.hero {
		min-height: 100vh;
	}
}

/* 横屏手机：压缩留白，但仍保持满屏 */
@media screen and (max-height: 520px) and (orientation: landscape) {
	.hero .brand {
		font-size: 28px;
	}
}
