/* ===== 颜色和字体：改这里就能换整站风格 ===== */
:root {
	--bg: #ffffff;
	--card: #f3f3f3;
	--card-hover: #e9e9e9;
	--text: #111111;
	--muted: #8a8a8a;
	--font: "Monument Grotesk Mono", "DM Mono", ui-monospace, monospace; /* 和旧站一样 */
	--font-latin: "Monument Grotesk Mono", "DM Mono", ui-monospace, monospace;
	--gap: 6px;          /* 卡片之间的缝 */
	--radius: 8px;       /* 卡片圆角 */
	--side: 30%;       /* 左栏宽度 */
}

/* 黑色背景（右上角开关） */
:root[data-theme="dark"] {
	--bg: #000000;
	--card: #161616;
	--card-hover: #222222;
	--text: #f2f2f2;
	--muted: #8a8a8a;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 13px;
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
	transition: background 0.25s, color 0.25s;
}

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

img,
video {
	display: block;
}

button {
	font: inherit;
	color: inherit;
}

.muted {
	color: var(--muted);
}

/* ===== 圆角按钮和开关 ===== */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	font-size: 12px;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s;
}

.pill:hover {
	background: var(--card-hover);
}

.pill.round {
	width: 34px;
	padding: 0;
	justify-content: center;
}

/* EN / CN 语言切换：当前语言是正常颜色，另一个是灰色 */
.toggles {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pill.lang {
	gap: 4px;
	color: var(--muted);
	font-family: var(--font-latin);
}

.pill.lang .on {
	color: var(--text);
}

/* 中文模式：中文、英文、数字全部用同一个中文字体，不混用 */
:root:lang(zh-Hans) {
	--font: "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
	--font-latin: var(--font);
}

:root:lang(zh-Hans) body {
	font-weight: 500;
}

.pill svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.4;
}

.switch {
	position: relative;
	width: 50px;
	height: 30px;
	border: 0;
	border-radius: 999px;
	background: var(--card);
	cursor: pointer;
	transition: background 0.2s;
}

.switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	transition: transform 0.25s;
}

:root[data-theme="dark"] .switch {
	background: #3a3a3a;
}

:root[data-theme="dark"] .switch::after {
	transform: translateX(20px);
}

.topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
}

.topline.end {
	justify-content: flex-end;
}

/* ===== 左栏：名字、时钟、项目卡片 ===== */
.side {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--side);
	padding: var(--gap);
	overflow-y: auto;
	scrollbar-width: none;
}

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


.masthead {
	padding: 24px 10px 36px;
	text-align: center;
}

.masthead .logo {
	display: inline-block;
	color: var(--text);
}

.masthead .logo svg {
	display: block;
	width: 59px;
	height: auto;
	fill: currentColor;
}

/* 视觉微调：英文 GRAPHIC DESIGNER 往左 1.5 像素（中文本来就对齐，不挪） */
:root:not(:lang(zh-Hans)) .masthead .role {
	position: relative;
	left: -1.5px;
}

.masthead .role {
	margin: 5px 0 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* 名字在中英文界面都用英文字体 */
.masthead .name {
	font-family: "Monument Grotesk Mono", "DM Mono", ui-monospace, monospace;
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cards {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	padding-bottom: 40px;
}

.card {
	display: block;
	border-radius: var(--radius);
	background: var(--card);
	transition: background 0.15s;
}

a.card:hover,
.card.active {
	background: var(--card-hover);
}

/* 左栏的项目卡片：没滚到的卡片在底部叠成一摞 */
.stack-item {
	position: sticky;
	bottom: 12px;
}

.stack-item > .card {
	transform-origin: 50% 100%;
	transition: transform 0.25s ease, opacity 0.25s ease, background 0.15s;
}

.card.row {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 12px;
	align-items: start;
	padding: 12px;
	box-shadow: 0 0 0 0 transparent;
}

.stack-item.stuck > .card {
	box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
}

.card.row img {
	width: 52px;
	height: 52px;
	border-radius: 5px;
	object-fit: cover;
	background: var(--bg);
}

.card.row .t {
	display: block;
	margin-top: 1px;
}

.card.row .s {
	display: block;
	color: var(--muted);
}

.card.text {
	padding: 14px;
}

.card.text p {
	margin: 2px 0 0;
	color: var(--muted);
}

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

.two.grid2 {
	align-items: start;
}

/* 所有项目名大写 */
.card.row .t,
.feature h2,
.p-title h1,
.tile .t,
.card.next .nt {
	text-transform: uppercase;
}

/* mat：图片放在黑色底板上，四周留同样比例的黑边 */
.matted {
	display: flex;
	align-items: center;
	padding: 3.5%;
	border-radius: var(--radius);
	background: #000;
}

.matted .media {
	width: 100%;
	border-radius: 0;
}

.matted .media img {
	display: block;
}

.jrow > .matted {
	padding: 3.5%;
}

/* 自定义排：同一排等高，宽度按图片比例分 */
.jrow {
	display: flex;
	gap: var(--gap);
}

.jrow > div {
	min-width: 0;
}

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

.two.grid2.reel {
	align-items: stretch;
}

.reel .stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: var(--gap);
}

.reel .stack .media,
.reel .stack .media.video {
	position: relative;
	min-height: 0;
	aspect-ratio: auto;
}

.reel .stack .media img,
.reel .stack .media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== 右栏 ===== */
.content {
	margin-left: var(--side);
	padding: var(--gap) var(--gap) var(--gap) 0;
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}

.mobile-top {
	display: none;
}

.media {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--card);
}

.media img,
.media video {
	width: 100%;
	height: auto;
}

.media.video {
	aspect-ratio: 16 / 9;
}

.media.video video,
.two .media img,
.two .media video {
	height: 100%;
	object-fit: cover;
}

.media.zoomable {
	cursor: zoom-in;
}

/* 首页右边：每个项目一张大卡片 */
.feature {
	padding: 14px 14px 14px;
}

.feature .feat-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 2px 0 12px;
}

.feature .feat-head h2 {
	margin: 0;
}

.feature .deliv {
	color: var(--muted);
	font-size: 12px;
	text-align: right;
}

.feature .date {
	color: var(--muted);
	font-size: 12px;
}

.feature h2 {
	margin: 10px 0 4px;
	font-size: clamp(18px, 1.7vw, 24px);
	font-weight: 400;
	line-height: 1.2;
}

.feature .lede {
	margin: 0 0 16px;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.feature .media {
	aspect-ratio: 16 / 10;
}

.feature .media img,
.feature .media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.feature:hover .media img {
	transform: scale(1.02);
}

/* 项目页 */
.p-title {
	padding: 18px 16px;
}

.p-title h1 {
	margin: 0;
	font-size: clamp(22px, 2.4vw, 34px);
	font-weight: 400;
	line-height: 1.15;
}

.p-title p {
	margin: 4px 0 0;
	font-size: clamp(15px, 1.4vw, 19px);
	color: var(--muted);
}

.prose {
	padding: 16px 18px 22px;
}

.prose .label {
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 12px;
}

.prose p {
	margin: 0 0 0.9em;
	font-size: 12px; /* 和项目信息（Year、Services）一样大 */
	line-height: 1.5;
}

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

.prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	padding: 16px 18px;
	font-size: 12px;
}

.info dt {
	color: var(--muted);
	margin-bottom: 4px;
}

.info dd {
	margin: 0;
}

.next {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px;
	font-size: clamp(16px, 1.5vw, 20px);
}

/* About 页 */
.cv .label {
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 12px;
}

.cv p {
	margin: 0 0 14px;
	font-size: 15px;
}

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

.cv a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ===== All projects：三列瀑布流 ===== */
.all-top {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	gap: var(--gap);
	padding: var(--gap);
	background: var(--bg);
}

.search {
	display: flex;
	align-items: center;
	width: min(360px, 100%);
	height: 34px;
	padding: 0 6px 0 14px;
	border-radius: var(--radius);
	background: var(--card);
}

.search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: none;
	color: var(--text);
	font: inherit;
	font-size: 13px;
}

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

.masonry {
	display: flex;
	align-items: flex-start;
	gap: var(--gap);
	padding: 0 var(--gap) var(--gap);
}

.masonry .col {
	flex: 1;
	min-width: 0;
}

.tile {
	display: block;
	margin-bottom: 16px;
}

.tile .media img,
.tile .media video {
	transition: transform 0.6s ease;
}

.tile:hover .media img {
	transform: scale(1.02);
}

.tile .t {
	display: block;
	margin-top: 6px;
}

.tile .s {
	display: block;
	color: var(--muted);
}

.empty {
	padding: 40px var(--gap);
	color: var(--muted);
}

/* ===== 点击放大 ===== */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 56px 60px;
	background: var(--bg);
	cursor: zoom-out;
}

.lightbox.open {
	display: flex;
}

.lightbox .stage {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--radius);
}

.lightbox .pill {
	position: absolute;
}

.lightbox .close {
	top: var(--gap);
	right: var(--gap);
}

.lightbox .prev {
	left: var(--gap);
	bottom: var(--gap);
}

.lightbox .next {
	right: var(--gap);
	bottom: var(--gap);
}

.lightbox .count {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}

/* ===== 手机：左栏变成首页，项目页单独一列 ===== */
@media (max-width: 760px) {
	.side {
		position: static;
		width: auto;
		overflow: visible;
	}

	body:not([data-page="home"]) .side {
		display: none;
	}

	body[data-page="home"] .content {
		display: none;
	}

	.content {
		margin-left: 0;
		padding: var(--gap);
	}

	.mobile-top {
		display: flex;
		position: sticky;
		top: 0;
		z-index: 10;
		padding: var(--gap) 0;
		margin: calc(var(--gap) * -1) 0 0;
		background: var(--bg);
	}

	.masthead {
		padding: 18px 10px 28px;
	}

	.masthead .logo svg {
		width: 50px;
	}

	.card.row {
		grid-template-columns: 56px 1fr;
		font-size: 14px;
	}

	.card.row img {
		width: 56px;
		height: 56px;
	}

	.content .two,
	.info {
		grid-template-columns: 1fr 1fr;
	}

	.content .two.prose-pair {
		grid-template-columns: 1fr;
	}


	.lightbox {
		padding: 56px var(--gap);
	}
}

/* All projects 页没有左栏 */
body[data-page="all"] .content {
	display: block;
	margin-left: 0;
	padding: 0;
}

.all-top .topline {
	gap: var(--gap);
}

.all-top .search svg {
	width: 14px;
	height: 14px;
	stroke: var(--muted);
	fill: none;
	stroke-width: 1.4;
}

/* About 页的个人介绍：长段落，行宽和行距更适合阅读 */
/* 和项目详情页的介绍文字一样大 */
.about-me p {
	margin: 0 0 0.9em;
	font-size: 12px;
	line-height: 1.5;
}

/* ===== 左栏只放 About me ===== */
.side-about .two.prose-pair {
	grid-template-columns: 1fr;
}

.side-about .cv p,
.side-about .about-me p {
	font-size: 12px;
	line-height: 1.5;
}

/* About 在左栏时的手机版：先看到项目，About 收起成一个按钮 */
.about-toggle {
	display: none;
}

@media (max-width: 760px) {
	body.about-side[data-page="home"] .content {
		display: flex;
		padding-top: 0;
	}

	body.about-side:not([data-page="home"]) .side {
		display: block;
	}

	body.about-side:not([data-page="home"]) .mobile-top {
		display: none;
	}

	/* 手机上先不放 About me：按钮和内容都隐藏 */
	body.about-side .about-toggle,
	body.about-side .side.about-open .side-about {
		display: none !important;
	}

	body.about-side .about-toggle-unused {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		margin: 0 0 var(--gap);
		padding: 14px 16px;
		border: 0;
		border-radius: var(--radius);
		background: var(--card);
		color: var(--text);
		font: inherit;
		font-size: 12px;
		cursor: pointer;
	}

	body.about-side .side .side-about {
		display: none;
	}

	body.about-side .side.about-open .side-about {
		display: flex;
	}
}

/* ===== 手机版首页排版预览（m-grid / m-mix / m-swipe），顶部统一用细固定顶栏 ===== */
@media (max-width: 760px) {
	body[class*="m-"] .side {
		position: sticky;
		top: 0;
		z-index: 20;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px var(--gap);
		background: var(--bg);
		border-bottom: 1px solid var(--card);
	}

	body[class*="m-"] .side .topline {
		order: 2;
	}

	body[class*="m-"] .masthead {
		order: 1;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 0;
		text-align: left;
	}

	body[class*="m-"] .masthead .logo svg {
		width: 22px;
	}

	body[class*="m-"] .masthead .name {
		margin: 0;
		font-size: 11px;
	}

	body[class*="m-"] .masthead .role {
		display: none;
	}

	body[class*="m-"] .side .cards,
	body[class*="m-"] .side .about-toggle {
		display: none !important;
	}

	body[class*="m-"] .pill.lang {
		height: 28px;
		padding: 0 10px;
	}

	body[class*="m-"] .switch {
		width: 42px;
		height: 26px;
	}

	body[class*="m-"] .switch::after {
		width: 20px;
		height: 20px;
	}

	body[class*="m-"][data-page="home"] .content {
		padding: 12px var(--gap) var(--gap);
	}

	body[class*="m-"] .feature {
		padding: 10px;
	}

	body[class*="m-"] .feature h2 {
		font-size: 13px;
	}

	/* 两列网格 */
	body.m-grid[data-page="home"] .content {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	body.m-grid .feature .deliv {
		display: none;
	}

	body.m-grid .feature .feat-head {
		margin: 0 0 8px;
	}

	body.m-grid .feature .media {
		aspect-ratio: 1 / 1;
	}

	/* 大小交错：大、小小、大、小小…… */
	body.m-mix[data-page="home"] .content {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	body.m-mix .feature:nth-child(3n + 1) {
		grid-column: 1 / -1;
	}

	body.m-mix .feature:nth-child(3n + 1) .media {
		aspect-ratio: 4 / 3;
	}

	body.m-mix .feature:not(:nth-child(3n + 1)) .media {
		aspect-ratio: 4 / 5;
	}

	body.m-mix .feature:not(:nth-child(3n + 1)) .deliv {
		display: none;
	}

	/* 横向滑动：一张张卡片左右滑，停在每一张上 */
	body.m-swipe[data-page="home"] .content {
		display: flex;
		flex-direction: row;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 16px var(--gap) 20px;
		scrollbar-width: none;
	}

	body.m-swipe[data-page="home"] .content::-webkit-scrollbar {
		display: none;
	}

	body.m-swipe .feature {
		flex: 0 0 82vw;
		scroll-snap-align: center;
		display: flex;
		flex-direction: column;
	}

	body.m-swipe[data-page="home"] .content {
		height: calc(100svh - 50px);
		align-items: stretch;
	}

	body.m-swipe .feature .media {
		flex: 1;
		min-height: 0;
		aspect-ratio: auto;
	}

	body.m-swipe .feature .media img,
	body.m-swipe .feature .media video {
		height: 100%;
	}

	body.m-swipe .feature .deliv {
		font-size: 10px;
	}
}

/* ===== 手机版预览：顶部导航卡片（m-nav） ===== */
.mnav { display: none; }

@media (max-width: 760px) {
	body.m-nav .side,
	body.m-nav[data-page="home"] .content { display: none !important; }
	body.m-nav .mnav { display: block; padding: 12px var(--gap) 32px; }
	html:has(body.m-nav) { scroll-behavior: smooth; scroll-padding-top: 120px; }

	.mnav-bar {
		position: sticky; top: 10px; z-index: 30;
		border: 1px solid var(--muted); border-radius: 22px;
		padding: 12px 16px 10px; background: var(--bg);
	}
	.mnav-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
	.mnav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
	.mnav-brand svg { width: 22px; height: auto; fill: currentColor; }
	.mnav-brand span { font-family: var(--font-latin); font-weight: 500; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
	.mnav-row .pill.lang { height: 26px; padding: 0 9px; }
	.mnav-row .switch { width: 40px; height: 24px; }
	.mnav-row .switch::after { width: 18px; height: 18px; }
	.mnav-links {
		display: flex; justify-content: space-between;
		margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--card);
	}
	.mnav-links a { color: var(--text); text-decoration: none; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

	.mnav-hero { display: block; margin-top: 12px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--card); }
	.mnav-hero img, .mnav-hero video { width: 100%; height: 100%; object-fit: cover; display: block; }

	.mnav-cta {
		display: table; margin: 18px auto; padding: 12px 26px;
		border: 1px solid var(--muted); border-radius: 999px;
		color: var(--text); text-decoration: none; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
	}

	.mnav-work { margin-top: 8px; border-top: 1px solid var(--card); }
	.mnav-head { display: flex; justify-content: space-between; padding: 16px 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
	.mnav-item {
		display: grid; grid-template-columns: 1fr 38%; gap: 14px; align-items: center;
		padding: 16px 0; border-top: 1px solid var(--card); color: var(--text); text-decoration: none;
	}
	.mnav-item .num { font-size: 10px; color: var(--muted); }
	.mnav-item .t { margin-top: 4px; font-size: 18px; line-height: 1.15; text-transform: uppercase; }
	.mnav-item .s { margin-top: 6px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
	.mnav-thumb { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--card); }
	.mnav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

	.mnav-about { display: flex; flex-direction: column; gap: var(--gap); margin-top: 24px; }
	.mnav-about .two.prose-pair { grid-template-columns: 1fr 1fr; }
	.mnav-about .cv p, .mnav-about .about-me p { font-size: 12px; line-height: 1.5; }
}

@media (max-width: 760px) {
	body.m-nav .mnav.bar-only { padding-bottom: 0; }
	body.m-nav:not([data-page="home"]) .content { display: flex; }
	body.m-nav .mobile-top { display: none !important; }
}

/* ===== 手机导航样式预览 ===== */
@media (max-width: 760px) {
	/* A：通栏细线 —— 不要圆角框，整条贴边，上下各一条细线 */
	body.nav-a .mnav { padding-top: 0; }
	body.nav-a .mnav-bar {
		top: 0; margin: 0 calc(var(--gap) * -1);
		border: 0; border-radius: 0; border-bottom: 1px solid var(--muted);
		padding: 12px var(--gap) 10px;
	}
	body.nav-a .mnav-links { border-top-color: var(--muted); justify-content: flex-start; gap: 22px; }
	body.nav-a .mnav-cta {
		display: flex; justify-content: space-between; margin: 0 0 6px;
		padding: 14px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--muted);
	}

	/* B：极简文字 —— 没有线框，菜单是带编号的小字，View work 变成下划线文字链接 */
	body.nav-b .mnav-bar { border: 0; border-radius: 0; padding: 10px 0; top: 0; }
	body.nav-b .mnav-links { border-top: 0; margin-top: 8px; padding-top: 0; justify-content: flex-start; gap: 20px; }
	body.nav-b .mnav-links a { color: var(--muted); }
	body.nav-b .mnav-links a:nth-child(1)::before { content: "01 "; }
	body.nav-b .mnav-links a:nth-child(2)::before { content: "02 "; }
	body.nav-b .mnav-links a:nth-child(3)::before { content: "03 "; }
	body.nav-b .mnav-links a:active,
	body.nav-b .mnav-links a:hover { color: var(--text); }
	body.nav-b .mnav-cta {
		display: inline-block; margin: 14px 0 18px; padding: 0 0 2px;
		border: 0; border-radius: 0; border-bottom: 1px solid currentColor;
	}

	/* C：实色块 —— 导航是一整块和卡片同色的方角底板，View work 是满宽的方角色块按钮 */
	body.nav-c .mnav-bar { border: 0; border-radius: 0; background: var(--card); top: 0; margin: 0 calc(var(--gap) * -1); padding: 12px var(--gap) 10px; }
	body.nav-c .mnav-links { border-top-color: var(--bg); }
	body.nav-c .mnav-cta {
		display: block; margin: 10px 0 18px; padding: 16px; text-align: center;
		border: 0; border-radius: 0; background: var(--text); color: var(--bg);
	}
}

/* D：A 的通栏细线 + B 的文字处理；logo 在上、名字在下，全部居中，菜单居中、不带编号 */
@media (max-width: 760px) {
	body.nav-d .mnav { padding-top: 0; }
	body.nav-d .mnav-bar {
		top: 0; margin: 0 calc(var(--gap) * -1);
		border: 0; border-radius: 0; border-bottom: 1px solid var(--muted);
		padding: 14px var(--gap) 10px;
	}
	body.nav-d .mnav-row { position: relative; justify-content: center; }
	body.nav-d .mnav-brand { flex-direction: column; gap: 6px; }
	body.nav-d .mnav-brand svg { width: 26px; }
	body.nav-d .mnav-row .toggles { position: absolute; right: 0; top: 0; }
	body.nav-d .mnav-links {
		justify-content: center; gap: 28px;
		border-top: 1px solid var(--muted); margin-top: 12px; padding-top: 10px;
	}
	body.nav-d .mnav-cta {
		display: table; margin: 16px auto 20px; padding: 0 0 2px;
		border: 0; border-radius: 0; border-bottom: 1px solid currentColor;
	}
}

/* 手机首页大图：幻灯片 */
@media (max-width: 760px) {
	.mnav-hero { position: relative; }
	.mnav-hero img {
		position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
		opacity: 0; transition: opacity .9s ease;
	}
	.mnav-hero img.on { opacity: 1; }
	.mnav-cap {
		position: absolute; left: 12px; bottom: 12px; z-index: 2;
		padding: 4px 8px; background: var(--bg); color: var(--text);
		font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
	}
	.mnav-dots { position: absolute; right: 12px; bottom: 16px; z-index: 2; display: flex; gap: 4px; }
	.mnav-dots i { width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .45; }
	.mnav-dots i.on { opacity: 1; }
}
