@charset "utf-8";
/* ===========================================================================
   淘应用 Tao App · 官网设计系统
   site.css —— 设计令牌 / 基础排版 / 版式骨架 / 导航 / 页脚 / 按钮 / 浮层
   作者：Tao App Design   更新：2026
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. 设计令牌
   --------------------------------------------------------------------------- */
:root {
	--brand-1: #2563eb;
	--brand-2: #3b82f6;
	--brand-3: #38bdf8;
	--brand-grad: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 54%, var(--brand-3) 100%);

	--mint: #10bf9a;
	--violet: #7c5cff;
	--sky: #2e9bff;

	--bg: #fbfaf7;
	--bg-2: #f5f2eb;
	--surface: #ffffff;
	--surface-2: #f7f5f0;
	--line: rgba(17, 20, 26, 0.09);
	--line-2: rgba(17, 20, 26, 0.055);
	--text: #12151b;
	--text-2: #4a5160;
	--text-3: #848d9d;

	--radius-s: 10px;
	--radius-m: 14px;
	--radius-l: 20px;
	--radius-xl: 30px;
	--radius-pill: 999px;

	--shadow-xs: 0 1px 2px rgba(16, 20, 28, 0.05);
	--shadow-sm: 0 2px 10px rgba(16, 20, 28, 0.06);
	--shadow-md: 0 16px 36px -16px rgba(16, 20, 28, 0.2);
	--shadow-lg: 0 34px 80px -34px rgba(16, 20, 28, 0.34);
	--shadow-brand: 0 14px 34px -14px rgba(37, 99, 235, 0.45);

	--maxw: 1180px;
	--gutter: 22px;
	--nav-h: 66px;

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

	--font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Alibaba PuHuiTi",
		"Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans SC", sans-serif;
	--font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, monospace;

	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0a0c10;
	--bg-2: #0e1117;
	--surface: #141821;
	--surface-2: #1a1f2a;
	--line: rgba(255, 255, 255, 0.105);
	--line-2: rgba(255, 255, 255, 0.06);
	--text: #f2f4f8;
	--text-2: #aab3c2;
	--text-3: #79838f;

	--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.45);
	--shadow-md: 0 16px 36px -16px rgba(0, 0, 0, 0.65);
	--shadow-lg: 0 34px 80px -34px rgba(0, 0, 0, 0.85);
	--shadow-brand: 0 14px 38px -14px rgba(37, 99, 235, 0.5);

	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
	margin: 0 0 0.5em;
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: var(--text);
	text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 5.2vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.12rem, 2vw, 1.32rem); letter-spacing: -0.012em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }
li:last-child { margin-bottom: 0; }

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

strong, b { font-weight: 700; color: var(--text); }
em { font-style: normal; color: var(--brand-1); font-weight: 600; }

code, kbd, samp {
	font-family: var(--font-mono);
	font-size: 0.88em;
}

code {
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	border-radius: 6px;
	padding: 0.1em 0.42em;
	color: var(--text);
}

kbd {
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--surface);
	padding: 0.1em 0.4em;
	font-size: 0.72em;
	color: var(--text-3);
	white-space: nowrap;
}

hr {
	border: 0;
	height: 1px;
	background: var(--line);
	margin: 2.5rem 0;
}

::selection {
	background: rgba(37, 99, 235, 0.15);
	color: var(--text);
}

:focus-visible {
	outline: 2px solid var(--brand-2);
	outline-offset: 3px;
	border-radius: 4px;
}

button { font: inherit; color: inherit; }

/* 滚动条 */
@supports selector(::-webkit-scrollbar) {
	::-webkit-scrollbar { width: 12px; height: 12px; }
	::-webkit-scrollbar-track { background: transparent; }
	::-webkit-scrollbar-thumb {
		background: color-mix(in srgb, var(--text-3) 42%, transparent);
		border: 3px solid var(--bg);
		border-radius: 99px;
	}
	::-webkit-scrollbar-thumb:hover {
		background: color-mix(in srgb, var(--text-3) 70%, transparent);
	}
}

/* ---------------------------------------------------------------------------
   3. 版式骨架
   --------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	position: relative;
	padding-block: clamp(56px, 8vw, 104px);
}

.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--line { border-top: 1px solid var(--line-2); }

.section-head {
	max-width: 720px;
	margin-bottom: clamp(30px, 4vw, 52px);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand-1);
}

.kicker::before {
	content: "";
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--brand-grad);
}

.section-head--center .kicker::after {
	content: "";
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--brand-grad);
}

.lead {
	font-size: clamp(1rem, 1.5vw, 1.1rem);
	color: var(--text-2);
	line-height: 1.85;
}

.section-title-em {
	background: var(--brand-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.grid {
	display: grid;
	gap: clamp(14px, 2vw, 22px);
}

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

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

.skip {
	position: fixed;
	top: -100px;
	left: 16px;
	z-index: 900;
	background: var(--text);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: var(--radius-s);
	font-size: 0.9rem;
	transition: top 0.2s var(--ease);
}

.skip:focus { top: 12px; }

/* ---------------------------------------------------------------------------
   4. 导航
   --------------------------------------------------------------------------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--nav-h);
	display: flex;
	align-items: center;
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.is-stuck {
	border-bottom-color: var(--line-2);
	box-shadow: 0 8px 30px -22px rgba(16, 20, 28, 0.5);
}

.nav-in {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	gap: 18px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	border-radius: var(--radius-m);
}

.brand-mark {
	position: relative;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line), 0 6px 16px -9px rgba(16, 20, 28, 0.3);
	transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.brand:hover .brand-mark {
	transform: rotate(-5deg) scale(1.04);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-1) 30%, var(--line)),
		0 10px 24px -10px rgba(37, 99, 235, 0.5);
}

.brand-txt {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand-txt b {
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--text);
}

.brand-txt i {
	font-style: normal;
	font-size: 0.56rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-top: 3px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

.nav-links a {
	position: relative;
	padding: 8px 13px;
	border-radius: var(--radius-pill);
	font-size: 0.925rem;
	font-weight: 500;
	color: var(--text-2);
	white-space: nowrap;
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
	color: var(--text);
	background: var(--surface-2);
}

.nav-links a[aria-current="page"] {
	color: var(--text);
	font-weight: 700;
	background: var(--surface-2);
}

.nav-links a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	transform: translateX(-50%);
	background: var(--brand-grad);
}

.nav-act {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
}

.icon-btn {
	position: relative;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--text-2);
	cursor: pointer;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
		transform 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover {
	color: var(--text);
	border-color: color-mix(in srgb, var(--brand-1) 40%, var(--line));
	transform: translateY(-1px);
}

.icon-btn svg { width: 17px; height: 17px; }

.theme-btn .ico-moon { display: none; }
[data-theme="dark"] .theme-btn .ico-sun { display: none; }
[data-theme="dark"] .theme-btn .ico-moon { display: block; }

.burger { display: none; }

/* 移动抽屉 */
.drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.drawer[hidden] { display: none; }

.drawer-mask {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 16, 0.45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

.drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(86vw, 340px);
	height: 100%;
	padding: 20px 20px 32px;
	background: var(--bg);
	border-left: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow-y: auto;
	transform: translateX(104%);
	transition: transform 0.42s var(--ease-out);
}

.drawer.is-open .drawer-mask { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.drawer-nav { display: flex; flex-direction: column; gap: 2px; }

.drawer-nav a {
	padding: 13px 14px;
	border-radius: var(--radius-m);
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--text-2);
}

.drawer-nav a:hover,
.drawer-nav a[aria-current="page"] {
	background: var(--surface-2);
	color: var(--text);
}

.drawer-sub {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line-2);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.drawer-sub a {
	padding: 9px 12px;
	border-radius: var(--radius-s);
	font-size: 0.88rem;
	color: var(--text-3);
}

.drawer-sub a:hover { background: var(--surface-2); color: var(--text-2); }

.drawer-cta { margin-top: 20px; }

/* ---------------------------------------------------------------------------
   5. 按钮
   --------------------------------------------------------------------------- */
.btn {
	--btn-px: 22px;
	--btn-py: 12px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: var(--btn-py) var(--btn-px);
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
		background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
	background: var(--brand-grad);
	background-size: 160% 100%;
	color: #fff;
	box-shadow: var(--shadow-brand);
}

.btn-primary::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.42), transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
	transform: translateY(-2px);
	background-position: 100% 0;
	box-shadow: 0 20px 42px -16px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
	background: var(--surface);
	color: var(--text);
	border-color: var(--line);
	box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--brand-1) 45%, var(--line));
	box-shadow: var(--shadow-sm);
}

.btn-soft {
	background: color-mix(in srgb, var(--brand-1) 10%, var(--surface));
	color: var(--brand-1);
	border-color: color-mix(in srgb, var(--brand-1) 22%, transparent);
}

.btn-soft:hover { background: color-mix(in srgb, var(--brand-1) 16%, var(--surface)); }

.btn-dark {
	background: var(--text);
	color: var(--bg);
}

.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-lg {
	--btn-px: 30px;
	--btn-py: 15px;
	font-size: 1rem;
}

.btn-sm {
	--btn-px: 16px;
	--btn-py: 9px;
	font-size: 0.875rem;
}

.btn-block { width: 100%; }

.btn .arrow {
	transition: transform 0.3s var(--ease);
}

.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--brand-1);
}

.link-arrow svg {
	width: 15px;
	height: 15px;
	transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg { transform: translateX(4px); }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* ---------------------------------------------------------------------------
   6. 徽标 / 标签 / 碎片
   --------------------------------------------------------------------------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: color-mix(in srgb, var(--surface) 78%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-2);
	box-shadow: var(--shadow-xs);
}

.badge .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 18%, transparent);
	animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {
	0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 22%, transparent); }
	50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mint) 6%, transparent); }
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: var(--radius-pill);
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--text-3);
}

.tag--brand {
	background: color-mix(in srgb, var(--brand-1) 11%, var(--surface));
	border-color: color-mix(in srgb, var(--brand-1) 20%, transparent);
	color: var(--brand-1);
}

.tag--mint {
	background: color-mix(in srgb, var(--mint) 12%, var(--surface));
	border-color: color-mix(in srgb, var(--mint) 22%, transparent);
	color: color-mix(in srgb, var(--mint) 78%, var(--text));
}

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

/* 相关搜索 / 关键词云 —— 兼顾客群检索习惯与站内互链 */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chips li { margin: 0; }

.chips a,
.chips span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-2);
	transition: all 0.22s var(--ease);
}

.chips a:hover {
	color: var(--brand-1);
	border-color: color-mix(in srgb, var(--brand-1) 38%, transparent);
	background: color-mix(in srgb, var(--brand-1) 6%, var(--surface));
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.chips--ghost a { background: transparent; }

/* ---------------------------------------------------------------------------
   7. 页脚
   --------------------------------------------------------------------------- */
.footer {
	position: relative;
	margin-top: clamp(48px, 7vw, 96px);
	padding-top: clamp(44px, 6vw, 72px);
	background: var(--bg-2);
	border-top: 1px solid var(--line-2);
	overflow: hidden;
}

.footer::before {
	content: "";
	position: absolute;
	top: -160px;
	left: 50%;
	width: 640px;
	height: 320px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(59, 130, 246, 0.15), transparent);
	pointer-events: none;
}

.foot-in {
	position: relative;
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.foot-grid {
	display: grid;
	grid-template-columns: 1.7fr repeat(3, 1fr);
	gap: clamp(26px, 4vw, 48px);
	padding-bottom: 42px;
}

.foot-brand p {
	font-size: 0.9rem;
	color: var(--text-3);
	line-height: 1.9;
	max-width: 34ch;
	margin-top: 14px;
}

.foot-mail {
	font-size: 0.88rem;
	color: var(--text-2);
	margin-top: 12px;
}

.foot-mail a {
	color: var(--brand-1);
	font-weight: 600;
	border-bottom: 1px dashed color-mix(in srgb, var(--brand-1) 45%, transparent);
}

.foot-col h4 {
	margin: 4px 0 14px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-3);
}

.foot-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

.foot-col a {
	font-size: 0.9rem;
	color: var(--text-2);
	transition: color 0.2s var(--ease), transform 0.2s var(--ease);
	display: inline-block;
}

.foot-col a:hover {
	color: var(--brand-1);
	transform: translateX(3px);
}

.foot-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 0 30px;
	border-top: 1px solid var(--line);
	font-size: 0.82rem;
	color: var(--text-3);
}

.foot-bottom p { margin: 0; }

.foot-bottom .foot-disc { max-width: 62ch; line-height: 1.7; }

.foot-bottom a { color: var(--text-2); }
.foot-bottom a:hover { color: var(--brand-1); }

/* ---------------------------------------------------------------------------
   8. 搜索浮层（联想词）
   --------------------------------------------------------------------------- */
.search {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(16px, 8vh, 96px) 16px 24px;
}

.search[hidden] { display: none; }

.search-mask {
	position: absolute;
	inset: 0;
	background: rgba(9, 11, 15, 0.5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.28s var(--ease);
}

.search-panel {
	position: relative;
	width: min(660px, 100%);
	max-height: min(72vh, 620px);
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	transform: translateY(-14px) scale(0.98);
	opacity: 0;
	transition: transform 0.34s var(--ease-out), opacity 0.28s var(--ease);
}

.search.is-open .search-mask { opacity: 1; }

.search.is-open .search-panel {
	transform: none;
	opacity: 1;
}

.search-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	border-bottom: 1px solid var(--line-2);
}

.search-bar svg {
	width: 19px;
	height: 19px;
	color: var(--text-3);
	flex-shrink: 0;
}

.search-bar input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1.02rem;
	color: var(--text);
	outline: none;
}

.search-bar input::placeholder { color: var(--text-3); }

.search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* 关闭按钮：手机上没有 ESC，必须给一个看得见的出口 */
.search-close {
	width: 40px;
	height: 40px;
	margin-left: 2px;
}

.search-close svg { width: 16px; height: 16px; }

.search-grip { display: none; }

.search-body {
	overflow-y: auto;
	padding: 16px 18px 20px;
	overscroll-behavior: contain;
}

.search-hint {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 11px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--text-3);
	text-transform: uppercase;
}

.search-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.search-tags button {
	padding: 7px 13px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	font-size: 0.85rem;
	color: var(--text-2);
	cursor: pointer;
	transition: all 0.18s var(--ease);
}

.search-tags button:hover {
	color: var(--brand-1);
	border-color: color-mix(in srgb, var(--brand-1) 40%, transparent);
}

.search-results {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.search-results:empty { display: none; }

.sr-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: var(--radius-m);
	color: var(--text);
	cursor: pointer;
	border: 0;
	background: transparent;
	text-align: left;
	width: 100%;
	transition: background 0.16s var(--ease);
	text-decoration: none;
}

.sr-item:hover,
.sr-item.is-active { background: var(--surface-2); }

.sr-item mark {
	background: transparent;
	color: var(--brand-1);
	font-weight: 700;
}

.sr-ico {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: var(--surface-2);
	color: var(--text-2);
	font-size: 0.82rem;
	font-weight: 700;
}

.sr-item:hover .sr-ico,
.sr-item.is-active .sr-ico {
	background: color-mix(in srgb, var(--brand-1) 12%, var(--surface));
	color: var(--brand-1);
}

.sr-main { min-width: 0; flex: 1; }

.sr-q {
	display: block;
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sr-d {
	display: block;
	font-size: 0.79rem;
	color: var(--text-3);
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sr-g {
	flex-shrink: 0;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: var(--radius-pill);
	background: var(--surface-2);
	color: var(--text-3);
}

.sr-item.is-active .sr-g {
	background: color-mix(in srgb, var(--brand-1) 12%, var(--surface));
	color: var(--brand-1);
}

.sr-empty {
	padding: 26px 12px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-3);
}

.sr-foot {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 18px;
	border-top: 1px solid var(--line-2);
	background: var(--surface-2);
	font-size: 0.76rem;
	color: var(--text-3);
}

.sr-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------------------
   9. 回到顶部
   --------------------------------------------------------------------------- */
.totop {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 90;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--text-2);
	box-shadow: var(--shadow-md);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.32s var(--ease);
}

.totop.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.totop:hover { color: var(--brand-1); transform: translateY(-2px); }
.totop svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------------
   10. 入场动画
   --------------------------------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
	transition-delay: var(--d, 0ms);
	will-change: opacity, transform;
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   11. 响应式
   --------------------------------------------------------------------------- */
@media (max-width: 1060px) {
	.nav-links a { padding: 8px 10px; font-size: 0.89rem; }
}

@media (max-width: 960px) {
	:root { --nav-h: 62px; }
	.nav-links { display: none; }
	.nav-cta { display: none; }
	.nav-act { margin-left: auto; }
	.burger { display: grid; }
	.grid-3,
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	:root { --gutter: 18px; }
	body { font-size: 15.5px; }
	.grid-2,
	.grid-3,
	.grid-4 { grid-template-columns: minmax(0, 1fr); }
	.foot-grid { grid-template-columns: 1fr; gap: 26px; }
	.foot-bottom { flex-direction: column; align-items: flex-start; }
	.btn-row { width: 100%; }
	.btn-row > .btn { flex: 1 1 auto; }
	.totop { right: 14px; bottom: 16px; width: 40px; height: 40px; }
	.search { padding: 0; align-items: flex-end; }
	/* 底部抽屉：留出上方 22% 的遮罩，点一下就关 */
	.search-panel {
		width: 100%;
		max-height: 78vh;
		max-height: 78dvh;
		border-radius: var(--radius-l) var(--radius-l) 0 0;
		transform: translateY(24px);
	}
	/* 手机上没有 ESC 键，隐藏键盘提示，只留右上角关闭按钮 */
	.search-kbd,
	.sr-foot { display: none; }
	.search-grip {
		display: block;
		width: 42px;
		height: 4px;
		margin: 9px auto 3px;
		border-radius: 99px;
		background: var(--line);
		flex-shrink: 0;
	}
	.search-bar { padding-top: 8px; }
	.search-hint span:last-child { display: none; }
	.chips a, .chips span { padding: 7px 12px; font-size: 0.83rem; }
}
