/* ============================================================
   今天吃什么 — Alison Roman 风格（编辑感 / 杂志感）
   设计稿来源：docs/design/meal-planner-draft/（TRAE solo-design）
   全部样式手写静态 CSS，无 CDN 依赖（离线可双击打开）
   ============================================================ */

:root {
	/* ---- 设计 token（来自 colors_and_type-draft.css） ---- */
	--brand-bg: #faf8f3;
	--brand-surface: #ffffff;
	--brand-surface-2: #f2efe8;
	--brand-surface-3: #e8e4db;
	--brand-ink: #1a1a1a;
	--brand-ink-2: #4a4540;
	--brand-ink-3: #8a8379;
	--brand-line: #d9d4ca;
	--brand-line-soft: #ece8e0;
	--brand-primary: #1a1a1a;
	--brand-primary-foreground: #faf8f3;

	/* 圆角：硬朗编辑感，全部 0 */
	--radius-sm: 0px;
	--radius-md: 0px;
	--radius-lg: 0px;

	/* 字体：中文衬线标题 + 无衬线正文 */
	--font-sans:
		"PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
	--font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;

	/* 阴影：极淡 */
	--shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
	--shadow-float: 0 8px 24px rgba(26, 26, 26, 0.08);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family: var(--font-sans);
	background-color: var(--brand-bg);
	color: var(--brand-ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

button {
	font-family: inherit;
	cursor: pointer;
}

/* ============ 顶栏 ============ */
.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	height: 64px;
	border-bottom: 1px solid var(--brand-line);
	background: rgba(250, 248, 243, 0.95);
	backdrop-filter: blur(8px);
}

.topbar-inner {
	max-width: 1152px;
	margin: 0 auto;
	height: 100%;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.topbar-brand {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.18em;
}

.topbar-icon {
	background: none;
	border: none;
	color: var(--brand-ink-3);
	padding: 8px;
	display: inline-flex;
	transition: color 0.15s;
}
.topbar-icon:hover {
	color: var(--brand-ink);
}

/* ============ Hero ============ */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: 420px;
}

.hero-bg {
	position: absolute;
	inset: 0;
}

.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 轮播：多层叠放 + opacity 过渡 */
.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
}
.hero-slide.active {
	opacity: 1;
}

/* 无障碍：用户偏好减少动效时停用自动轮播，固定首图 */
@media (prefers-reduced-motion: reduce) {
	.hero-slide {
		transition: none;
	}
	.hero-slide.active {
		opacity: 1;
	}
	.hero-slide:not(.active) {
		opacity: 0;
	}
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.4),
		rgba(0, 0, 0, 0.3),
		rgba(0, 0, 0, 0.5)
	);
}

.hero-content {
	position: relative;
	z-index: 10;
	max-width: 896px;
	margin: 0 auto;
	padding: 96px 24px;
	text-align: center;
	color: #fff;
}

.hero-title {
	font-family: var(--font-display);
	font-size: 3rem;
	line-height: 1.15;
	font-weight: 700;
	text-wrap: balance;
}

.hero-sub {
	margin-top: 16px;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.85);
}

.btn-hero {
	display: inline-block;
	margin-top: 32px;
	padding: 12px 28px;
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	background: #fff;
	color: var(--brand-ink);
	border: none;
	text-decoration: none;
	transition: all 0.15s;
}
.btn-hero:hover {
	background: var(--brand-ink);
	color: #fff;
}

/* ============ 通用区段 ============ */
.section {
	padding: 64px 24px;
	border-bottom: 1px solid var(--brand-line);
}
.section[hidden] {
	display: none;
}
.section-surface {
	background: var(--brand-surface);
}
.section-bg {
	background: var(--brand-bg);
}

.section-inner {
	max-width: 1152px;
	margin: 0 auto;
}

.section-label {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brand-ink-3);
}

.section-title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 700;
	margin-top: 12px;
}

.section-desc {
	margin-top: 8px;
	color: var(--brand-ink-2);
}

/* ============ 菜数选择 ============ */
.menu-form-inner {
	max-width: 768px;
	margin: 0 auto;
	text-align: center;
}

.menu-form-row {
	margin-top: 40px;
}
.menu-form-field {
	max-width: 360px;
	margin: 0 auto;
	text-align: left;
}

.field-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--brand-ink-2);
	margin-bottom: 8px;
}

/* 编辑感输入控件 */
.input-editorial {
	width: 100%;
	padding: 12px 14px;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--brand-ink);
	background: var(--brand-surface);
	border: 1px solid var(--brand-input, var(--brand-line));
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s;
}
.input-editorial:focus {
	outline: none;
	border-color: var(--brand-ink);
}

.select-wrap {
	position: relative;
}
.select-wrap::after {
	content: "▾";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--brand-ink-3);
	font-size: 0.85rem;
}

/* 主按钮 */
.btn-editorial-primary {
	padding: 13px 32px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--brand-primary-foreground);
	background: var(--brand-primary);
	border: 1px solid var(--brand-primary);
	transition: all 0.15s;
	white-space: nowrap;
}
.btn-editorial-primary:hover {
	background: transparent;
	color: var(--brand-ink);
}

/* ============ 配置区 ============ */
.prefs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}
@media (min-width: 768px) {
	.prefs-grid {
		grid-template-columns: 4fr 9fr;
		gap: 48px;
	}
}

.prefs-aside {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.prefs-aside .btn-generate {
	margin-top: 24px;
}

@media (max-width: 767px) {
	/* 移动端：配置字段在前，生成按钮随 aside 沉到底部 */
	.prefs-grid {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}
	.prefs-aside {
		order: 2;
	}
	.prefs-fields {
		order: 1;
	}
	/* 移动端 aside 只留按钮，隐藏标题与描述 */
	.prefs-aside .section-label,
	.prefs-aside .section-title,
	.prefs-aside .section-desc {
		display: none;
	}
	.prefs-aside .btn-generate {
		margin-top: 0;
		width: 100%;
	}
}

@media (min-width: 768px) {
	.prefs-aside {
		position: sticky;
		top: 96px;
		height: 100%;
	}
	.prefs-aside .btn-generate {
		margin-top: auto;
	}
}

.prefs-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}
@media (min-width: 768px) {
	.prefs-fields {
		grid-template-columns: 1fr 1fr;
	}
}

.prefs-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 人数行 */
.people-row {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.people-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--brand-ink-2);
}

.num-input {
	width: 64px;
	padding: 10px 8px;
	text-align: center;
	font-size: 1rem;
	font-family: inherit;
	border: 1px solid var(--brand-line);
	border-radius: 0;
	background: var(--brand-surface);
	color: var(--brand-ink);
	appearance: none;
	-webkit-appearance: none;
}
.num-input:focus {
	outline: none;
	border-color: var(--brand-ink);
}

/* chips */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	padding: 8px 14px;
	font-size: 0.88rem;
	font-family: inherit;
	color: var(--brand-ink-2);
	background: transparent;
	border: 1px solid var(--brand-line);
	border-radius: 0;
	transition: all 0.12s;
}
.chip:hover {
	border-color: var(--brand-ink);
	color: var(--brand-ink);
}
.chip.active {
	background: var(--brand-ink);
	border-color: var(--brand-ink);
	color: var(--brand-primary-foreground);
	font-weight: 600;
}

/* 提示文字 */
.hint {
	font-size: 0.8rem;
	color: var(--brand-ink-3);
	margin-top: 6px;
}
.hint.warn {
	color: #9a6b1f;
}
.error-area {
	background: #fdf3f2;
	color: #a33;
	border: 1px solid #e8c8c4;
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 0.9rem;
}
.error-area[hidden] {
	display: none;
}

/* ============ 结果区 ============ */
.result-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 48px;
}
@media (min-width: 768px) {
	.result-head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

.result-warn {
	max-width: 320px;
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--brand-ink-3);
}

/* 桌面端：提示区占满标题右侧全部剩余空间，尽量不换行 */
@media (min-width: 768px) {
	.result-head {
		gap: 32px;
	}
	.result-warn {
		max-width: none;
		flex: 1 1 0;
		min-width: 0;
		text-align: right;
	}
}

.dish-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}
@media (min-width: 768px) {
	.dish-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 1024px) {
	.dish-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* ============ 菜品卡片 ============ */
.dish-card {
	background: var(--brand-bg);
}

.dish-image,
.dish-img-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--brand-surface-2);
	transition: transform 0.7s ease;
}
.dish-card:hover .dish-image {
	transform: scale(1.03);
}
.dish-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.5rem;
	font-family: var(--font-display);
	color: var(--brand-ink-3);
}

.dish-body {
	padding: 24px 14px 6px;
}

.dish-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.dish-label {
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brand-ink-2);
}

.dish-name {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: 4px;
	line-height: 1.3;
}

.dish-meta {
	margin-top: 8px;
	font-size: 0.85rem;
	color: var(--brand-ink-2);
}

/* 营养行（做法下方，估算值） */
.dish-nutrition {
	font-size: 0.8rem;
	color: var(--brand-ink-3);
}

/* 营养 + 视频区（做法下分隔线，上下留白与各区块一致） */
.dish-nutrition-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	border-top: 1px solid var(--brand-line);
	padding-top: 20px;
	padding-bottom: 20px;
	margin-top: 20px;
}
.dish-nutrition-bar .dish-video-btn {
	margin-left: auto;
}

.dish-toggle {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 0;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	color: var(--brand-ink-2);
	background: none;
	border: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s;
}
.dish-toggle:hover {
	color: var(--brand-ink);
	border-bottom-color: var(--brand-line);
}
.dish-toggle .chev {
	font-size: 0.7rem;
	transition: transform 0.2s;
}

/* 视频做法搜索按钮（图标，折叠区内做法下方） */
.dish-video-btn {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	font-size: 0.9rem;
	line-height: 1;
	color: var(--brand-ink-2);
	background: var(--brand-surface-2);
	border: 1px solid var(--brand-line);
	transition: all 0.15s;
	min-width: 34px;
	min-height: 34px;
}
.dish-video-btn:hover {
	color: var(--brand-ink);
	border-color: var(--brand-ink);
}

/* 零延迟 tooltip（仅对有 data-tip 的元素显示；无提示的元素不生成伪元素） */
.dish-video-btn[data-tip]::after,
.video-pop-btn[data-tip]::after {
	content: attr(data-tip);
	position: absolute;
	z-index: 70;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--brand-ink);
	color: #fff;
	padding: 4px 10px;
	font-size: 0.72rem;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.1s;
}
.dish-video-btn[data-tip]:hover::after,
.video-pop-btn[data-tip]:hover::after {
	opacity: 1;
}

.dish-collapsible {
	margin-top: 16px;
}

.dish-block {
	border-top: 1px solid var(--brand-line);
	padding-top: 20px;
	margin-top: 20px;
}

.dish-block-label {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-ink-3);
	margin-bottom: 12px;
}

.dish-ingredients {
	list-style: none;
	font-size: 0.9rem;
	color: var(--brand-ink-2);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.dish-ingredients li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.dish-ingredients .qty {
	color: var(--brand-ink-3);
	white-space: nowrap;
}

.dish-steps {
	list-style: none;
	font-size: 0.9rem;
	color: var(--brand-ink-2);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.dish-steps li {
	padding-left: 0;
	text-indent: 0;
}

/* 桌面端：全部展开、隐藏按钮 */
@media (min-width: 641px) {
	.dish-toggle {
		display: none;
	}
}

/* 移动端：默认折叠（第一张展开），按钮显示 */
@media (max-width: 640px) {
	.dish-collapsible {
		display: none;
	}
	.dish-card.expanded .dish-collapsible {
		display: block;
	}
}

/* ============ 页脚 ============ */
.app-footer {
	padding: 40px 24px;
	text-align: center;
	font-size: 0.8rem;
	color: var(--brand-ink-3);
}

.app-footer .icp-beian {
	margin: 0;
}

.app-footer .icp-beian a {
	color: inherit;
	text-decoration: none;
}

.app-footer .icp-beian a:hover {
	text-decoration: underline;
}

/* ============ 响应式微调 ============ */
@media (max-width: 640px) {
	.hero-title {
		font-size: 2.2rem;
	}
	.section {
		padding: 48px 20px;
	}
	.section-title {
		font-size: 1.6rem;
	}
}

/* ============ 搜索浮层（modal） ============ */
.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 24px 24px;
}
.modal[hidden] {
	display: none;
}
.modal-backdrop,
.drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.45);
	backdrop-filter: blur(2px);
}
.modal-panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	background: var(--brand-bg);
	border: 1px solid var(--brand-line);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-shadow: var(--shadow-float);
}
.modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.modal-title {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
}
.modal-close {
	background: none;
	border: none;
	font-size: 1rem;
	color: var(--brand-ink-3);
	padding: 6px;
	transition: color 0.15s;
}
.modal-close:hover {
	color: var(--brand-ink);
}

.search-results {
	display: flex;
	flex-direction: column;
	max-height: 50vh;
	overflow-y: auto;
}
.search-empty {
	padding: 24px 0;
	text-align: center;
	color: var(--brand-ink-3);
	font-size: 0.9rem;
}
.search-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-top: 1px solid var(--brand-line-soft);
	cursor: pointer;
	transition: background 0.1s;
}
.search-item:hover {
	background: var(--brand-surface-2);
}
.search-item-img {
	width: 56px;
	height: 42px;
	object-fit: cover;
	flex-shrink: 0;
}
.search-item-name {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	flex: 1;
}
.search-item-lock {
	flex-shrink: 0;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	padding: 3px 10px;
	border: 1px solid var(--brand-ink);
	color: var(--brand-ink);
	background: transparent;
	transition: all 0.12s;
}
.search-item-lock:hover {
	background: var(--brand-ink);
	color: var(--brand-primary-foreground);
}
.search-item-lock.locked {
	background: var(--brand-ink);
	color: var(--brand-primary-foreground);
}

/* ============ 关于抽屉（drawer） ============ */
.drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
}
.drawer[hidden] {
	display: none;
}
.drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 92vw);
	background: var(--brand-bg);
	border-left: 1px solid var(--brand-line);
	padding: 24px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-float);
	overflow-y: auto;
}
.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.drawer-title {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
}
.drawer-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 20px;
	font-size: 0.9rem;
	color: var(--brand-ink-2);
	line-height: 1.7;
}
.about-block {
	border-top: 1px solid var(--brand-line);
	padding-top: 16px;
}
.about-block-label {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-ink-3);
	margin-bottom: 8px;
}

/* 底部 GitHub 入口（推到底部居中；正常色，hover 主题色） */
.about-gh-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--brand-line);
	color: var(--brand-ink);
	transition: color 0.15s;
}
.about-gh-icon:hover {
	color: var(--brand-primary);
}
.about-rules {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.about-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.about-stat {
	flex: 1;
	min-width: 90px;
	border: 1px solid var(--brand-line);
	padding: 10px 12px;
	text-align: center;
}
.about-stat-num {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
	display: block;
}
.about-stat-label {
	font-size: 0.75rem;
	color: var(--brand-ink-3);
}

/* ============ 结果卡片：右上操作区（锁定徽标 + 折叠按钮同一行） ============ */
.dish-top-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.dish-lock-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--brand-ink);
	border: 1px solid var(--brand-ink);
	padding: 3px 10px;
	white-space: nowrap;
}
.dish-lock-badge button {
	background: none;
	border: none;
	color: inherit;
	font-size: 0.8rem;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
}

/* 视频搜索浮层 */
.video-pop {
	position: fixed;
	z-index: 60;
	font-size: 0.85rem;
}
.video-pop-panel {
	width: 200px;
	padding: 12px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-line);
	box-shadow: var(--shadow-float);
}
.video-pop-title {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--brand-ink-3);
	margin-bottom: 8px;
}
.video-pop-btns {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.video-pop-btn {
	position: relative;
	padding: 9px 12px;
	text-align: left;
	font-size: 0.85rem;
	font-family: inherit;
	color: var(--brand-ink);
	background: transparent;
	border: 1px solid var(--brand-line);
	transition: all 0.12s;
	min-height: 36px;
}
.video-pop-btn:hover {
	border-color: var(--brand-ink);
	color: var(--brand-ink);
	background: var(--brand-surface-2);
}

/* ============ 抽屉两级导航 ============ */
.drawer-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}
.drawer-nav-item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 14px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-line);
	text-align: left;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--brand-ink);
	transition: all 0.12s;
}
.drawer-nav-item:hover {
	border-color: var(--brand-ink);
}
.drawer-nav-icon {
	font-size: 1.2rem;
	flex-shrink: 0;
}
.drawer-nav-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 2px;
}
.drawer-nav-text small {
	color: var(--brand-ink-3);
	font-size: 0.75rem;
}
.drawer-nav-arrow {
	color: var(--brand-ink-3);
	font-size: 1.1rem;
}
.drawer-back {
	background: none;
	border: none;
	color: var(--brand-ink-2);
	font-size: 0.85rem;
	font-family: inherit;
	padding: 6px 0;
	cursor: pointer;
	transition: color 0.12s;
}
.drawer-back:hover {
	color: var(--brand-ink);
}

/* ============ 二级视图：全部菜谱 ============ */
.gallery-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
}
.gallery-head .drawer-back {
	align-self: flex-start;
}

.gallery-filters {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--brand-line);
}
.gallery-filter-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.gallery-filter-label {
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: var(--brand-ink-3);
	width: 32px;
	flex-shrink: 0;
}

/* 分类快捷按钮 */
.gallery-cat-btn {
	padding: 8px 16px;
	font-size: 0.88rem;
	font-family: inherit;
	background: transparent;
	border: 1px solid var(--brand-line);
	color: var(--brand-ink-2);
	cursor: pointer;
	transition: all 0.12s;
}
.gallery-cat-btn:hover {
	border-color: var(--brand-ink);
}
.gallery-cat-btn.active {
	background: var(--brand-ink);
	border-color: var(--brand-ink);
	color: var(--brand-primary-foreground);
	font-weight: 600;
}

/* 结果网格 */
.gallery-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
@media (min-width: 640px) {
	.gallery-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 1024px) {
	.gallery-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* 列表卡片（复用部分 dish 样式，加锁定按钮行） */
.gallery-card {
	background: var(--brand-bg);
}
.gallery-card .dish-image,
.gallery-card .dish-img-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--brand-surface-2);
}
.gallery-card .dish-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-family: var(--font-display);
	color: var(--brand-ink-3);
}
.gallery-card .dish-body {
	padding: 16px 0 0;
}
.gallery-card .dish-name {
	font-size: 1.2rem;
}
.gallery-card .gallery-lock-row {
	margin-top: 10px;
}
.gallery-lock-btn {
	padding: 6px 14px;
	font-size: 0.78rem;
	font-family: inherit;
	letter-spacing: 0.04em;
	background: transparent;
	border: 1px solid var(--brand-ink);
	color: var(--brand-ink);
	cursor: pointer;
	transition: all 0.12s;
}
.gallery-lock-btn:hover {
	background: var(--brand-ink);
	color: var(--brand-primary-foreground);
}
.gallery-lock-btn.locked {
	background: var(--brand-ink);
	color: var(--brand-primary-foreground);
}
