/* ==========================================================================
   JIANG HUI — airdiode 主站样式
   单一 CSS 文件，无框架、无预处理器、无图标字体。
   断点：手机 <640px（基准）、平板 640–1023px、桌面 ≥1024px。
   字号单位 rem，根字号交给浏览器（不锁定缩放）。
   ========================================================================== */

:root {
	/* 颜色 */
	--c-ink: #14181d;
	--c-ink-soft: #4b5560;
	--c-ink-muted: #6b7480;
	--c-line: #e2e5ea;
	--c-line-strong: #c9ced6;
	--c-bg: #fbfbfc;
	--c-surface: #ffffff;
	--c-surface-alt: #f2f4f7;
	--c-accent: #1a5fb4;
	--c-accent-ink: #ffffff;
	--c-accent-soft: #e8f0fb;
	--c-ok-bg: #e7f4ec;
	--c-ok-ink: #1c6b3a;
	--c-warn-bg: #fdf1e0;
	--c-warn-ink: #8a5300;

	/* 字号（rem，随浏览器设置与用户缩放） */
	--fs-100: 0.8125rem;
	--fs-200: 0.9375rem;
	--fs-300: 1rem;
	--fs-400: 1.125rem;
	--fs-500: 1.375rem;
	--fs-600: 1.75rem;
	--fs-700: 2.125rem;
	--fs-800: 2.75rem;

	/* 间距 */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;

	/* 圆角与阴影 */
	--radius-1: 4px;
	--radius-2: 8px;
	--radius-3: 14px;
	--shadow-1: 0 1px 2px rgba(20, 24, 29, 0.06);
	--shadow-2: 0 6px 20px rgba(20, 24, 29, 0.09);

	/* 版心与行宽 */
	--wrap: 68rem;
	--measure: 42rem;

	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
		"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* --------------------------------------------------------------- 基础 */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--font-sans);
	font-size: var(--fs-300);
	line-height: 1.7;
	overflow-x: hidden;
}

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

img { height: auto; }

a {
	color: var(--c-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

/* 可见焦点样式（键盘可达性） */
:focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

h1, h2, h3 {
	margin: 0 0 var(--sp-3);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-700); }
h2 { font-size: var(--fs-600); }
h3 { font-size: var(--fs-500); }

p { margin: 0 0 var(--sp-4); }

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

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--sp-4);
}

.prose > p { max-width: var(--measure); }

/* 关于页分小节标题（原创声明 / 著作权与使用等） */
.about-section-title {
	margin-top: var(--sp-6);
	margin-bottom: var(--sp-2);
	font-size: var(--fs-500);
}

.prose > .about-section-title:first-child { margin-top: 0; }

.sr-only {
	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 {
	position: absolute;
	left: var(--sp-3);
	top: -4rem;
	z-index: 50;
	padding: var(--sp-2) var(--sp-4);
	background: var(--c-surface);
	color: var(--c-ink);
	border: 2px solid var(--c-accent);
	border-radius: var(--radius-1);
	text-decoration: none;
}

.skip-link:focus {
	top: var(--sp-3);
}

.icon {
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
}

/* --------------------------------------------------------------- 页头 */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--c-line);
	backdrop-filter: saturate(1.4) blur(6px);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2) var(--sp-4);
	min-height: 3.75rem;
}

.brand {
	font-weight: 700;
	font-size: var(--fs-400);
	letter-spacing: 0.06em;
	color: var(--c-ink);
	text-decoration: none;
	margin-inline-end: auto;
	white-space: nowrap;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: transparent;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-1);
	color: var(--c-ink);
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 1.15rem;
	height: 2px;
	background: currentColor;
	content: "";
	position: relative;
}

.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav {
	order: 3;
	flex-basis: 100%;
	display: none;
}

.site-nav.is-open { display: block; }

.site-nav ul {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	padding-block: var(--sp-2);
}

.site-nav a {
	display: block;
	padding: var(--sp-2) var(--sp-1);
	color: var(--c-ink-soft);
	text-decoration: none;
	border-radius: var(--radius-1);
}

.site-nav a:hover { color: var(--c-ink); background: var(--c-surface-alt); }

.site-nav a.is-active {
	color: var(--c-ink);
	font-weight: 600;
	box-shadow: inset 0 -2px 0 var(--c-accent);
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--fs-200);
}

.lang-switch a {
	padding: var(--sp-1) var(--sp-2);
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-1);
	text-decoration: none;
	color: var(--c-ink-soft);
}

.lang-switch a:hover { color: var(--c-ink); border-color: var(--c-ink-muted); }

/* --------------------------------------------------------------- 首页 hero */

.hero {
	padding-block: var(--sp-8) var(--sp-7);
	background:
		radial-gradient(120% 80% at 100% 0%, var(--c-accent-soft) 0%, rgba(232, 240, 251, 0) 60%),
		var(--c-surface);
	border-bottom: 1px solid var(--c-line);
}

.hero-inner { max-width: 46rem; }

.hero-slogan {
	font-size: var(--fs-800);
	letter-spacing: -0.02em;
	margin-bottom: var(--sp-4);
}

.hero-lead {
	font-size: var(--fs-400);
	color: var(--c-ink-soft);
	max-width: var(--measure);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin: var(--sp-6) 0 0;
}

/* --------------------------------------------------------------- 按钮 */

.btn {
	display: inline-block;
	padding: 0.65rem 1.15rem;
	border-radius: var(--radius-1);
	border: 1px solid transparent;
	font-size: var(--fs-300);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--c-accent);
	color: var(--c-accent-ink);
	box-shadow: var(--shadow-1);
}

.btn-primary:hover { background: #154c90; }

.btn-secondary {
	background: var(--c-surface);
	color: var(--c-ink);
	border-color: var(--c-line-strong);
}

.btn-secondary:hover { border-color: var(--c-ink-muted); background: var(--c-surface-alt); }

/* --------------------------------------------------------------- 区块 */

.block { padding-block: var(--sp-8); }

.block-alt {
	background: var(--c-surface);
	border-block: 1px solid var(--c-line);
}

.section-title { margin-bottom: var(--sp-2); }

.section-lead {
	color: var(--c-ink-soft);
	max-width: var(--measure);
	margin-bottom: var(--sp-5);
}

.section-more { margin: var(--sp-6) 0 0; }

.page-head {
	padding-block: var(--sp-7) var(--sp-5);
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-line);
}

/* 分类页：标题与品牌信息同栏（标题在左、品牌在右），窄屏自动堆叠 */
.page-head-inner { display: block; }

.page-head-text { max-width: var(--measure); }

/* 分类页左侧「这一类作品的共同点」要点 */
.cat-highlights {
	margin-top: var(--sp-4);
	display: grid;
	gap: var(--sp-2);
	max-width: var(--measure);
}

.cat-highlights li {
	position: relative;
	padding-inline-start: var(--sp-5);
	font-size: var(--fs-200);
	color: var(--c-ink-soft);
}

.cat-highlights li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.62em;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: var(--c-accent);
}

@media (min-width: 64rem) {
	.page-head--brand .page-head-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--sp-7);
		align-items: start;
	}
}

.page-kicker {
	font-size: var(--fs-200);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-ink-muted);
	margin-bottom: var(--sp-2);
}

.page-kicker a { color: var(--c-ink-muted); }

.note {
	font-size: var(--fs-200);
	color: var(--c-ink-muted);
	max-width: var(--measure);
}

/* --------------------------------------------------------------- 分类入口 */

.cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-4);
}

.cat-card a {
	display: block;
	height: 100%;
	padding: var(--sp-5);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-3);
	text-decoration: none;
	color: var(--c-ink);
	box-shadow: var(--shadow-1);
}

.cat-card a:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); }

.cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: var(--sp-3);
	border-radius: var(--radius-2);
	background: var(--c-accent-soft);
	color: var(--c-accent);
}

.cat-icon .icon { width: 1.5rem; height: 1.5rem; }

.cat-name {
	display: block;
	font-size: var(--fs-400);
	font-weight: 700;
	margin-bottom: var(--sp-2);
}

.cat-desc {
	display: block;
	color: var(--c-ink-soft);
	font-size: var(--fs-200);
	margin-bottom: var(--sp-3);
}

.cat-count {
	display: block;
	font-size: var(--fs-100);
	color: var(--c-ink-muted);
}

/* --------------------------------------------------------------- 产品卡片 */

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-4);
}

.card {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-3);
	overflow: hidden;
	box-shadow: var(--shadow-1);
}

.card:hover { box-shadow: var(--shadow-2); }

.card-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.card-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--c-surface-alt);
	overflow: hidden;
}

.card-media img,
.card-media picture {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* App 图标卡片：方形 logo 居中留白，不裁切（内容截图仍走 object-fit: cover） */
.card-media--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--sp-5);
}

.card-media--icon picture,
.card-media--icon .app-icon {
	display: block;
	width: min(46%, 8.5rem);
	height: auto;
}

.card-media--icon img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-2);
	box-shadow: var(--shadow-1);
}

.thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--c-line-strong);
}

.thumb-placeholder .icon { width: 3rem; height: 3rem; }

.card-body {
	display: block;
	padding: var(--sp-4);
}

.card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-2);
	font-size: var(--fs-100);
	color: var(--c-ink-muted);
}

.card-title {
	display: block;
	font-size: var(--fs-400);
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: var(--sp-2);
}

.card-summary {
	display: block;
	color: var(--c-ink-soft);
	font-size: var(--fs-200);
}

.card-more {
	display: inline-block;
	margin-top: var(--sp-3);
	font-size: var(--fs-200);
	font-weight: 600;
	color: var(--c-accent);
}

/* 状态标签 */
.status {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: var(--fs-100);
	font-weight: 600;
	line-height: 1.6;
}

.status-released { background: var(--c-ok-bg); color: var(--c-ok-ink); }
.status-review { background: var(--c-warn-bg); color: var(--c-warn-ink); }
.status-opensource { background: var(--c-accent-soft); color: var(--c-accent); }

/* 品牌标签（如「肇物 LOGOS」）：与状态/平台标签同形，用浅底强调品牌归属 */
.brand-tag {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: var(--fs-100);
	font-weight: 600;
	line-height: 1.6;
	background: var(--c-surface-alt);
	color: var(--c-ink-soft);
}

/* 平台标签（目前为 iOS）：与状态标签同形，用中性色以示区别 */
.platform-tag {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	font-size: var(--fs-100);
	font-weight: 600;
	line-height: 1.6;
	color: var(--c-ink-soft);
}

/* 详情页的「平台 / 分发范围」事实行 */
.product-facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-5);
	margin-bottom: var(--sp-3);
	font-size: var(--fs-200);
	color: var(--c-ink-soft);
}

.product-facts .fact { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); }

.product-facts .fact-label {
	color: var(--c-ink-muted);
}

.product-facts .fact-label::after { content: "："; }

html[lang="en"] .product-facts .fact-label::after { content: ": "; }

/* --------------------------------------------------------------- 产品详情 */

.product-figure { margin-block: var(--sp-6); }

.media-16x9 {
	margin: 0;
	aspect-ratio: 16 / 9;
	background: var(--c-surface-alt);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-3);
	overflow: hidden;
}

.media-16x9 img, .media-16x9 picture { width: 100%; height: 100%; object-fit: cover; }

/* 详情页的方形 App 图标图框 */
.media-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: var(--sp-6);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-3);
}

.media-icon .app-icon {
	width: min(11rem, 34vw);
	height: auto;
}

.media-icon img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-3);
	box-shadow: var(--shadow-1);
}

/* 详情页正文：只有「紧跟 .page-head（带下边框）」时补上间距，
   否则文字会贴住那条横线（用户 2026-09-19 反馈）。
   用相邻兄弟选择器限定，避免影响上方是主图（.product-figure）的产品。 */
.product-body { max-width: var(--measure); }

.page-head + .product-body { padding-top: var(--sp-5); }

.product-body > p { font-size: var(--fs-400); }

.product-status { margin-bottom: var(--sp-3); }

/* 产品标语：项目方给定的一句话，比导语更"品牌"，故用竖线区分但不夸张 */
.product-tagline {
	margin-top: var(--sp-4);
	padding-inline-start: var(--sp-4);
	border-inline-start: 3px solid var(--c-accent);
	color: var(--c-ink);
	font-size: var(--fs-400);
	font-style: italic;
}

.feature-list {
	margin-bottom: var(--sp-4);
}

.feature-list li {
	position: relative;
	padding-inline-start: var(--sp-5);
	margin-bottom: var(--sp-2);
}

.feature-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.65em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--c-accent);
}

.product-nav {
	margin-block: var(--sp-6) var(--sp-8);
	font-weight: 600;
}

/* 分类页品牌栏（在 page-head 右侧）：整体紧凑，名片缩到 11rem */
.brand-block { min-width: 0; }

.brand-block-title {
	margin-bottom: var(--sp-2);
	font-size: var(--fs-200);
	font-weight: 600;
	color: var(--c-ink);
}

.brand-block-logo { margin: 0 0 var(--sp-3); width: 4.5rem; }

.brand-block-logo img { width: 100%; height: auto; border-radius: var(--radius-2); }

.brand-block-lead {
	margin-bottom: var(--sp-2);
	font-size: var(--fs-200);
	color: var(--c-ink-soft);
}

.brand-block .acquire-links { margin-bottom: var(--sp-4); }

/* --------------------------------------------------------------- 图片横滚条与放大查看 */

/* App 截图与产品实拍图共用：一行横向滚动，图片不裁切 */
.shots {
	display: flex;
	gap: var(--sp-4);
	overflow-x: auto;
	padding-block: var(--sp-2) var(--sp-4);
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.shots[hidden] { display: none; }

/* 每张是一个按钮（点击放大）：清掉按钮默认样式，让它看起来仍是卡片 */
.shots .shot {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 11rem;
	padding: 0;
	scroll-snap-align: start;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-3);
	overflow: hidden;
	background: var(--c-surface);
	box-shadow: var(--shadow-1);
	font: inherit;
	cursor: zoom-in;
}

.shots .shot:hover { box-shadow: var(--shadow-2); }

.shots .shot picture { display: block; }

.shots .shot img { width: 100%; height: auto; }

/* 悬停 / 键盘聚焦时显示放大提示 */
.shot-zoom {
	position: absolute;
	right: var(--sp-2);
	bottom: var(--sp-2);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(20, 24, 29, 0.72);
	color: #fff;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.shot-zoom .icon { width: 1.125rem; height: 1.125rem; }

.shots .shot:hover .shot-zoom,
.shots .shot:focus-visible .shot-zoom { opacity: 1; }

/* 实拍图比例不一（3:2 横 / 3:4 竖 / 1:1）：横图按高度定尺寸，竖图与方图按宽度定尺寸 */
.shots--natural { align-items: flex-start; }

.shots--natural .shot { width: auto; }

.shots--natural .shot picture,
.shots--natural .shot img { height: 15rem; width: auto; }

.shots--natural .shot--portrait { width: 11.25rem; }

.shots--natural .shot--portrait picture,
.shots--natural .shot--portrait img { height: auto; width: 100%; }

/* Mac 截图是横版，用更宽的卡片 */
.shots[data-shots-device="mac"] .shot { width: 18rem; }

/* 设备切换按钮组 */
.shot-switch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-3);
}

.shot-switch + .shot-switch { margin-bottom: var(--sp-4); }

.shot-tab {
	padding: var(--sp-1) var(--sp-3);
	background: var(--c-surface);
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	color: var(--c-ink-soft);
	font: inherit;
	font-size: var(--fs-200);
	cursor: pointer;
}

.shot-tab:hover { border-color: var(--c-ink-muted); color: var(--c-ink); }

.shot-tab.is-active {
	background: var(--c-accent);
	border-color: var(--c-accent);
	color: var(--c-accent-ink);
	font-weight: 600;
}

/* 放大查看：原生 <dialog>，自带 Esc 关闭与焦点处理 */
.lightbox {
	position: relative;
	max-width: min(92vw, 60rem);
	max-height: 92vh;
	padding: var(--sp-3);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-3);
	background: var(--c-surface);
	box-shadow: var(--shadow-2);
}

.lightbox::backdrop { background: rgba(12, 15, 18, 0.72); }

.lightbox-frame { display: flex; justify-content: center; }

.lightbox-image {
	max-width: 100%;
	max-height: 84vh;
	width: auto;
	height: auto;
	margin-inline: auto;
}

.lightbox-close {
	position: absolute;
	top: var(--sp-2);
	right: var(--sp-2);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-ink);
	cursor: pointer;
}

.lightbox-close:hover { border-color: var(--c-ink-muted); background: var(--c-surface-alt); }

.lightbox-close .icon { width: 1.25rem; height: 1.25rem; }

/* 放大层的左右切换条（同组图片多于一张时显示） */
.lightbox-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-4);
	margin-top: var(--sp-3);
}

/* 注意：元素一旦 display:flex，[hidden] 就不生效，必须显式关掉 */
.lightbox-nav[hidden] { display: none; }

.lightbox-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-ink);
	font-size: var(--fs-500);
	line-height: 1;
	cursor: pointer;
}

.lightbox-step:hover { border-color: var(--c-ink-muted); background: var(--c-surface-alt); }

.lightbox-counter {
	margin: 0;
	color: var(--c-ink-muted);
	font-size: var(--fs-200);
	font-variant-numeric: tabular-nums;
}

/* 视频：封面 + 点击注入 iframe */
.video {
	position: relative;
	max-width: 56rem;
	aspect-ratio: 16 / 9;
	background: #0d1117;
	border-radius: var(--radius-3);
	overflow: hidden;
}

.video iframe { width: 100%; height: 100%; border: 0; }

.video-facade {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	width: 100%;
	height: 100%;
	padding: var(--sp-4);
	background: #0d1117;
	color: #ffffff;
	border: 0;
	cursor: pointer;
	font-size: var(--fs-300);
	font-family: inherit;
}

.video-facade:hover .video-play { background: var(--c-accent); }

.video-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.video-label { font-weight: 600; }

/* 同一作品的多个站点链接 / 分类页品牌栏里的两个按钮：
   必须用 flex + gap 分隔，否则按钮会紧贴在一起（HTML 里它们之间没有空白字符）。 */
.acquire-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-bottom: var(--sp-4);
}

/* 按钮在这些栏里用小一号，避免抢视觉 */
.btn-sm { padding: 0.4rem 0.8rem; font-size: var(--fs-200); }

.brand-xhs { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }

.brand-xhs-title { margin-bottom: var(--sp-2); font-size: var(--fs-200); font-weight: 600; }

.brand-xhs-card {
	position: relative;
	display: block;
	width: 11rem;
	max-width: 100%;
	margin: 0 0 var(--sp-2);
	padding: 0;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-2);
	overflow: hidden;
	box-shadow: var(--shadow-1);
	font: inherit;
	cursor: zoom-in;
}

.brand-xhs-card:hover { box-shadow: var(--shadow-2); }

.brand-xhs-card picture { display: block; }

.brand-xhs-card img { width: 100%; height: auto; }

.brand-xhs-lead { margin-bottom: var(--sp-1); font-size: var(--fs-200); color: var(--c-ink-soft); }

.brand-xhs-id { margin-bottom: 0; font-size: var(--fs-200); }

.brand-xhs-id-label { color: var(--c-ink-muted); margin-inline-end: var(--sp-2); }

/* 窄屏：品牌栏回到标题下方并横向铺开，名片与文案并排，仍省高度 */
@media (max-width: 63.99rem) {
	.brand-block {
		margin-top: var(--sp-5);
		padding-top: var(--sp-5);
		border-top: 1px solid var(--c-line);
	}

	.brand-block-logo { display: inline-block; vertical-align: middle; margin-inline-end: var(--sp-3); }

	.brand-xhs {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: var(--sp-3);
		align-items: start;
	}

	.brand-xhs-card { margin-bottom: 0; }
}

/* 获取方式：无公开入口 / 链接待补 两种提示 */
.acquire-none, .acquire-pending {
	padding: var(--sp-4);
	background: var(--c-surface-alt);
	border-inline-start: 3px solid var(--c-line-strong);
	border-radius: var(--radius-1);
	color: var(--c-ink-soft);
	max-width: var(--measure);
}

.acquire-pending {
	background: var(--c-warn-bg);
	border-inline-start-color: var(--c-warn-ink);
	color: var(--c-warn-ink);
}

/* 「获取方式」里链接按钮前的引导语 */
.acquire-links-lead { margin-bottom: var(--sp-3); color: var(--c-ink-soft); }

/* 无公开入口时的业务联系行 */
.acquire-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sp-2) var(--sp-3);
	margin-top: var(--sp-4);
}

.acquire-contact-label { color: var(--c-ink-muted); font-size: var(--fs-200); }

.acquire-contact a { font-weight: 600; }

/* 卡片缩略图里的分类名 */
.card-cat { color: var(--c-ink-muted); }

/* 页脚品牌块 */
.footer-brand { max-width: 26rem; }

/* 视频无脚本回退 */
.video-fallback { margin-top: var(--sp-2); }

/* --------------------------------------------------------------- 联系页 */

/* 联系页：圆形头像 + 名字 */
.contact-profile {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	margin-bottom: var(--sp-5);
}

.contact-avatar-wrap { display: block; flex: 0 0 auto; }

.contact-avatar {
	display: block;
	width: 6rem;
	height: 6rem;
	/* 方形裁切 + 50% 圆角 = 圆形头像 */
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--c-line);
	background: var(--c-surface-alt);
}

.contact-name {
	margin: 0;
	font-size: var(--fs-500);
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* 关于页正文末尾的联系邮箱行（与联系页同一套视觉） */
.about-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
}

.contact-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sp-3);
	margin-bottom: var(--sp-4);
}

.contact-label {
	font-size: var(--fs-200);
	color: var(--c-ink-muted);
	min-width: 4rem;
}

.contact-mail { font-size: var(--fs-500); font-weight: 600; }

/* --------------------------------------------------------------- 承接项目（联系页） */

.services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-6);
	margin-bottom: var(--sp-5);
}

.services-col h3 {
	margin-bottom: var(--sp-3);
	font-size: var(--fs-400);
}

@media (min-width: 40rem) {
	.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------- 页脚 */

.site-footer {
	margin-top: var(--sp-8);
	background: var(--c-surface);
	border-top: 1px solid var(--c-line);
	padding-block: var(--sp-7) var(--sp-5);
	font-size: var(--fs-200);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-6);
}

.footer-title {
	font-size: var(--fs-200);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-ink-muted);
	margin-bottom: var(--sp-2);
}

/* 站内导航分两列：8 项排成 4 行，页脚整体高度减半（用户 2026-09-19）。
   用 grid 的 row-gap 控制行距，因此把 li 的下外边距清零，避免与 gap 叠加。 */
.footer-nav ul {
	display: grid;
	/* auto-fit：栏位够宽就两列；平板下页脚分栏后导航栏变窄时自动退回一列，
	   避免「建模与 3D 打印」这类长标签折行。 */
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: var(--sp-1) var(--sp-4);
}

.footer-nav li { margin-bottom: 0; }

.footer-contact p { margin-bottom: var(--sp-1); }

.footer-nav a, .footer-contact a { color: var(--c-ink-soft); text-decoration: none; }

.footer-nav a:hover, .footer-contact a:hover { color: var(--c-ink); text-decoration: underline; }

.footer-note { color: var(--c-ink-muted); max-width: 26rem; }

.footer-legal {
	margin-top: var(--sp-6);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-line);
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-4);
	color: var(--c-ink-muted);
}

.footer-legal p { margin: 0; }

.footer-legal a { color: var(--c-ink-muted); }

/* --------------------------------------------------------------- 平板 ≥640px */

@media (min-width: 40rem) {
	:root {
		--fs-700: 2.375rem;
		--fs-800: 3.25rem;
	}

	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* 站内导航改为两列后需要更宽，故品牌栏收窄、导航栏加宽 */
	.footer-inner { grid-template-columns: 1.25fr 1.25fr 0.9fr; }

	.hero { padding-block: var(--sp-9) var(--sp-8); }
}

/* --------------------------------------------------------------- 桌面 ≥1024px */

@media (min-width: 64rem) {
	.nav-toggle { display: none; }

	.site-nav {
		order: 0;
		flex-basis: auto;
		display: block;
	}

	.site-nav ul {
		flex-direction: row;
		gap: var(--sp-1);
		padding-block: 0;
	}

	.site-nav a { padding: var(--sp-2) var(--sp-3); }

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

/* --------------------------------------------------------------- 打印与动效偏好 */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header, .site-footer, .video-facade { display: none; }
}
