:root {
	--bg: #f6f6f7;
	--card: #ffffff;
	--line: #e7e7ea;
	--text: #1d1d1f;
	--dim: #6e6e73;
	--mute: #a1a1a6;
	--main: #1d1d1f;
	--radius: 14px;
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 14px/1.6 -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
	-webkit-font-smoothing: antialiased;
}
body.lock {
	overflow: hidden;
}
.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
button {
	font: inherit;
}

/* 頂部 */
.top {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--line);
}
.top-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
}
.brand-mark {
	display: grid;
	place-items: center;
	min-width: 30px;
	height: 30px;
	padding: 0 6px;
	border-radius: 8px;
	background: var(--main);
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.5px;
}
.top-meta {
	font-size: 13px;
	color: var(--dim);
}

/* 標題 */
.hero {
	padding: 56px 0 32px;
}
.hero h1 {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -0.2px;
}
.hero p {
	margin: 0;
	font-size: 15px;
	color: var(--dim);
}

/* 卡片 */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	padding-bottom: 48px;
}
.card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: rise 0.5s ease both;
}
.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}
.stage {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 28px 0 0;
	height: 420px;
	overflow: hidden;
	background: var(--tint, #f1f1f3);
	cursor: pointer;
}
.stage::after {
	content: '查看全部画面';
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translate(-50%, 8px);
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(29, 29, 31, 0.82);
	color: #fff;
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.card:hover .stage::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* 手機框 */
.phone {
	flex: none;
	width: 236px;
	padding: 4px;
	border-radius: 18px;
	background: #1d1d1f;
	box-shadow: 0 0 0 1px #3a3a3c inset, 0 18px 40px rgba(0, 0, 0, 0.18);
}
.phone .screen {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 600 / 1022;
	background: #000;
}
.phone img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.stage .phone {
	transition: transform 0.35s ease;
}
.card:hover .stage .phone {
	transform: translateY(-6px);
}

.info {
	padding: 18px 20px 20px;
}
.row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.name {
	font-size: 17px;
	font-weight: 600;
}
.badge {
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fdecec;
	color: #b3141d;
	font-size: 11px;
	font-weight: 500;
	vertical-align: 2px;
}
.dots {
	display: flex;
	gap: 5px;
}
.dots i {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset;
}
.desc {
	margin: 6px 0 12px;
	color: var(--dim);
	font-size: 13px;
}
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}
.tags span {
	padding: 2px 9px;
	border-radius: 6px;
	background: #f2f2f4;
	color: var(--dim);
	font-size: 12px;
}
.acts {
	display: flex;
	gap: 8px;
}

/* 按鈕 */
.btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--text);
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
	background: #f5f5f7;
	border-color: #d2d2d7;
}
.btn-main {
	background: var(--main);
	border-color: var(--main);
	color: #fff;
}
.btn-main:hover {
	background: #3a3a3c;
	border-color: #3a3a3c;
}
.btn svg {
	width: 16px;
	height: 16px;
}
.icon-btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f2f2f4;
	color: var(--dim);
	cursor: pointer;
}
.icon-btn:hover {
	background: #e8e8ed;
	color: var(--text);
}

/* 遮罩 / 詳情 */
.mask {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.42);
	animation: fade 0.2s ease both;
}
.mask[hidden] {
	display: none;
}
@keyframes fade {
	from {
		opacity: 0;
	}
}
.sheet {
	display: flex;
	flex-direction: column;
	width: min(1180px, 100%);
	max-height: 100%;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
@keyframes pop {
	from {
		opacity: 0;
		transform: scale(0.97) translateY(8px);
	}
}
.sheet-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line);
}
.sheet-title {
	font-size: 20px;
	font-weight: 600;
}
.sheet-desc {
	margin-top: 2px;
	color: var(--dim);
	font-size: 13px;
}
.sheet-body {
	display: flex;
	gap: 24px;
	padding: 24px;
	overflow: auto;
}
.shots {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding: 24px;
	border-radius: 14px;
	background: var(--tint, #f1f1f3);
}
.shots figure {
	margin: 0;
	text-align: center;
}
.shots .phone {
	width: 100%;
	padding: 3px;
	border-radius: 13px;
}
.shots .phone .screen {
	border-radius: 10px;
}
.shots figcaption {
	margin-top: 10px;
	font-size: 13px;
	color: var(--dim);
}
.side {
	flex: none;
	width: 220px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.side .btn {
	flex: none;
	width: 100%;
}
.qr-box {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	text-align: center;
}
.qr {
	display: grid;
	place-items: center;
}
.qr svg {
	display: block;
	width: 168px;
	height: 168px;
}
.qr-tip {
	margin-top: 8px;
	font-size: 12px;
	color: var(--dim);
}
.side-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.side-tags span {
	padding: 2px 9px;
	border-radius: 6px;
	background: #f2f2f4;
	color: var(--dim);
	font-size: 12px;
}

/* 掃碼小窗 */
.pop {
	width: 280px;
	padding: 24px 22px 18px;
	border-radius: 18px;
	background: #fff;
	text-align: center;
	animation: pop 0.25s ease both;
}
.pop-title {
	margin-bottom: 14px;
	font-size: 16px;
	font-weight: 600;
}
.pop .qr-tip {
	margin-bottom: 16px;
}
.pop .btn {
	width: 100%;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	z-index: 30;
	transform: translateX(-50%);
	padding: 9px 18px;
	border-radius: 999px;
	background: rgba(29, 29, 31, 0.9);
	color: #fff;
	font-size: 13px;
}

.foot {
	padding-bottom: 36px;
	color: var(--mute);
	font-size: 12px;
}

@media (max-width: 900px) {
	.sheet-body {
		flex-direction: column;
	}
	.shots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.side {
		width: 100%;
	}
}
@media (max-width: 560px) {
	.wrap {
		padding: 0 16px;
	}
	.hero {
		padding: 32px 0 20px;
	}
	.hero h1 {
		font-size: 22px;
	}
	.grid {
		grid-template-columns: 1fr;
	}
	.mask {
		padding: 0;
		align-items: flex-end;
	}
	.sheet {
		border-radius: 18px 18px 0 0;
		max-height: 92%;
	}
	.sheet-body,
	.shots {
		padding: 16px;
	}
}
