/* ===========================================================
   首页布局 —— 按 03-ui/home-ui-desktop.png 的分区预算落位
   1440 基准：header 80 / hero 400 / cats 300 / featured 450
              steam 296 / tech 195 / bottom 270 / footer 250
   =========================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.75 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* 素材与稿不同源：统一压一点饱和度/亮度，贴近暖米调 */
.dish-card__media img,
.cat-item__media img,
.pantry__list img,
.steam__media img,
.hero__media img { filter: saturate(.8) brightness(1.06); }

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

main { display: block; }

/* ---------------- M1 hero ---------------- */
.hero {
  position: relative;
  min-height: var(--h-hero);
  overflow: hidden;
  background: linear-gradient(104deg, #e6d2ba 0%, #e9d8c3 30%, #eddcca 52%, #f3e5d3 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
  display: block;
  opacity: .92;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(228, 209, 186, .95) 0%, rgba(231, 213, 191, .92) 24%, rgba(236, 220, 200, .74) 40%, rgba(240, 226, 208, .34) 56%, rgba(240, 226, 208, 0) 68%),
    linear-gradient(180deg, rgba(236, 220, 200, .18) 0%, rgba(236, 220, 200, 0) 22%, rgba(238, 223, 205, 0) 78%, rgba(240, 228, 212, .5) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: var(--h-hero);
  padding-block: 16px;
}
.hero__text { max-width: 620px; }
.hero__title {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 37px;
  line-height: 1.36;
  letter-spacing: .01em;
  color: var(--accent);
}
.hero__lead {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero__actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__stats {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 11.5px;
  color: var(--muted);
}
.hero__stats strong {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--accent);
  margin-right: 2px;
}

/* ---------------- M2 分类索引（7 列单排，按稿） ---------------- */
.cats {
  min-height: var(--h-cats);
  background: var(--bg-warm);
  padding: 10px 0 6px;
}
.cats .section-head { margin-bottom: 12px; }
.cats .eyebrow { margin-bottom: 0; }
.cats .section-head__sub { margin-top: 9px; font-size: 13px; }
.cat-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.cat-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}
.cat-item__media {
  display: block;
  aspect-ratio: 183 / 104;
  overflow: hidden;
  background: #e3d2c2;
  margin-bottom: 8px;
}
.cat-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.cat-item a:hover .cat-item__media img { transform: scale(1.04); }
.cat-item__no {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
}
.cat-item__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.cat-item__desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}
.cat-foot {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ---------------- M3 精选（4 列 × 2 行，宽幅卡图） ---------------- */
.featured {
  min-height: var(--h-featured);
  background: var(--bg-featured);
  padding: 8px 0 10px;
}
.featured .section-head { margin-bottom: 8px; }
.featured .eyebrow { margin-bottom: 0; }
.featured .section-head__sub { margin-top: 10px; font-size: 13px; }
.dish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
}
.dish-card__media {
  display: block;
  aspect-ratio: 318 / 78;
  overflow: hidden;
  background: var(--bg-warm);
  border-radius: var(--radius);
}
.dish-card__body { display: block; padding-top: 4px; line-height: 1.2; }
.dish-card__head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: nowrap;
  overflow: hidden;
  line-height: 1.2;
}
.dish-card__no { font-size: 10px; line-height: 1.3; }
.dish-card__title { font-size: 15.5px; line-height: 1.28; white-space: nowrap; }
.dish-card__meta {
  margin-top: 0;
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dish-card__note {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-card { border: 0; background: transparent; }
.dish-card__body { padding-inline: 0; }
.dish-extra {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 30px;
}
.dish-extra__item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11.5px;
  min-width: 0;
}
.dish-extra__item .dish-card__title { font-size: 13.5px; }
.dish-extra__item .dish-card__note {
  flex: 0 1 auto;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  -webkit-line-clamp: unset;
}
.dish-extra__item:hover .dish-card__title { color: var(--accent); }

/* ---------------- M4 无菜不蒸 ---------------- */
.steam {
  position: relative;
  min-height: var(--h-steam);
  background: var(--bg-steam);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.steam__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100% - 1440px) / 2));
  width: 750px;
  max-width: 56%;
  overflow: hidden;
}
.steam__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 46%;
}
.steam__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-steam) 0%, rgba(236, 220, 205, .92) 14%, rgba(236, 220, 205, .3) 40%, rgba(236, 220, 205, 0) 55%);
}
.steam__inner {
  position: relative;
  z-index: 2;
  min-height: var(--h-steam);
  display: flex;
  align-items: center;
  padding-block: 14px;
}
.steam__text { max-width: 600px; }
.steam__title {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
.steam__body {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------------- M5 三个技法 ---------------- */
.tech {
  min-height: var(--h-tech);
  background: var(--bg-tech);
  border-top: 1px solid var(--line-soft);
  padding: 16px 0 18px;
}
.tech .section-head { margin-bottom: 14px; }
.tech-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.tech__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--accent);
}
.tech__desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------------- M6/M7/M8 三栏 ---------------- */
.bottom {
  min-height: var(--h-bottom);
  background: var(--bg-bottom);
  border-top: 1px solid var(--line-soft);
  padding: 14px 0 12px;
}
.bottom__grid {
  display: grid;
  grid-template-columns: minmax(0, 616px) minmax(0, 276px) minmax(0, 339px);
  gap: 16px 60px;
  align-items: start;
}
.pantry__list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.pantry__list li { min-width: 0; }
.pantry__list img {
  display: block;
  width: 100%;
  aspect-ratio: 110 / 90;
  object-fit: cover;
  margin-bottom: 7px;
}
.pantry__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.pantry__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.faq { min-width: 0; }
.faq .eyebrow { margin-bottom: 6px; }
.faq-item summary { padding: 8px 0; font-size: 12.5px; }
.faq-item p { font-size: 11.5px; line-height: 1.7; margin-bottom: 9px; }
.scope { min-width: 0; }
.scope__body {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ---------------- 页脚高度 ---------------- */
.site-footer { min-height: var(--h-footer); }
.site-footer__inner { padding-bottom: 20px; }
.site-footer__bottom { padding: 12px 0 14px; }

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 1279px) {
  :root { --gutter: 32px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bottom__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 24px; }
  .pantry { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .hero__media, .steam__media { width: 56%; max-width: 56%; }
  .hero__text, .steam__text { max-width: 60%; }
  .hero__title { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bottom__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .site-header { height: auto; }
  .site-header__inner { flex-wrap: wrap; height: auto; padding: 12px 0 10px; gap: 8px; }
  .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    width: 100%;
    background: none;
    border-bottom: 0;
    padding: 0;
    box-shadow: none;
  }
  .site-nav > a, .site-nav__drop > a { width: auto; padding: 6px 0; border-bottom: 0; font-size: 13px; }
  .site-nav__menu { left: 0; min-width: 160px; max-height: 50vh; }
  .site-nav__menu a { width: auto; padding: 8px 14px; border-bottom: 0; font-size: 12.5px; }
  .brand__tag { display: none; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .hero { min-height: auto; padding-bottom: 22px; background: var(--bg); }
  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    height: 210px;
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(246, 235, 222, .1) 0%, rgba(250, 243, 239, .55) 62%, var(--bg) 100%);
  }
  .hero__inner { min-height: 0; margin-top: -40px; padding-block: 0; }
  .hero__text { max-width: 100%; }
  .hero__title { font-size: 25px; line-height: 1.4; }
  .hero__lead { font-size: 13px; margin-top: 12px; }
  .hero__stats { gap: 4px 16px; font-size: 11px; }
  .steam__media {
    position: relative;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: 180px;
  }
  .steam__media::after { background: linear-gradient(180deg, rgba(245, 235, 227, 0) 45%, var(--bg-warm-deep) 100%); }
  .steam__inner { min-height: 0; margin-top: -26px; }
  .steam__text { max-width: 100%; }
  .steam__title { font-size: 21px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dish-card__media { aspect-ratio: 16 / 10; }
  .dish-extra { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dish-extra__item .dish-card__note { max-width: 100%; white-space: normal; }
  .tech-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pantry__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__inner { flex-direction: column; gap: 22px; }
  .site-footer__col { flex: 0 0 auto; width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 22px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-grid { grid-template-columns: minmax(0, 1fr); }
  .section-title { font-size: 22px; }
  .tech__name { font-size: 23px; }
  .hero__actions .btn { flex: 1 1 auto; }
}


/* ===========================================================
   分类页（原 category.css）
   =========================================================== */


.page-hero {
  background: linear-gradient(112deg, #efe1d0 0%, #f6ece1 54%, #f2e4d5 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 34px 0 40px;
}
.page-hero .crumbs { margin-bottom: 20px; }
.page-hero__title {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--accent);
}
.page-hero__lead {
  margin: 16px 0 0;
  max-width: 660px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.page-hero__meta {
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 筛选与排序 ---------- */
.toolbar-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 30;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 13px;
}
.toolbar__group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar__label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  cursor: default;
}
.chip {
  height: 30px;
  padding: 0 15px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fdf6f1;
}
.toolbar__group--right { position: relative; }
.toolbar__group--right::after {
  content: "";
  position: absolute;
  right: 46px;
  top: 50%;
  margin-top: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--accent);
  pointer-events: none;
}
.sort {
  height: 30px;
  padding: 0 26px 0 12px;
  font: 12.5px/1 var(--font-sans);
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  appearance: none;
  cursor: pointer;
}
.toolbar__count {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- 菜卡网格 ---------- */
.grid-wrap { padding: 26px 0 34px; }
.grid-note {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.dish-grid--list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
}
.dish-grid--list .dish-card__media { aspect-ratio: 320 / 200; }
.dish-grid--list .dish-card__head { gap: 8px; }
.dish-grid--list .dish-card__title { font-size: 16.5px; }
.dish-grid--list .dish-card__meta { font-size: 11px; }
.dish-grid--list .dish-card__note {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.7;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.dish-grid--list .dish-card__body { padding-top: 9px; }
.grid-empty {
  margin: 24px 0 0;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--line);
}

/* ---------- 常做搭配 ---------- */
.related-wrap {
  background: var(--bg-warm);
  border-top: 1px solid var(--line-soft);
  padding: 24px 0 28px;
}
.related {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title arrow" "desc arrow";
  align-items: center;
  gap: 2px 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  background: #fdf8f4;
  border: 1px solid var(--line-soft);
  transition: border-color .18s;
}
.related a:hover { border-color: var(--accent-soft); }
.related__title {
  grid-area: title;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.related__desc {
  grid-area: desc;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}
.related a::after {
  content: "→";
  grid-area: arrow;
  font-size: 15px;
  color: var(--accent);
  justify-self: end;
}

/* ---------- 分类说明 ---------- */
.desc-wrap { padding: 30px 0 44px; }
.desc { max-width: 760px; }
.desc__body {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-soft);
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 34px;
}
.pager a, .pager span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fdf8f4;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: #fdf6f1; }
.pager .is-gap { border: 0; background: none; color: var(--muted); }

@media (max-width: 1023px) {
  .related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .page-hero { padding: 24px 0 30px; }
  .page-hero__title { font-size: 32px; }
  .dish-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .dish-grid--list .dish-card__media { aspect-ratio: 16 / 10; }
  .toolbar { padding-block: 10px; }
  .toolbar__group--right { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .dish-grid--list { grid-template-columns: minmax(0, 1fr); }
}


/* ===========================================================
   详情页（原 detail.css）
   =========================================================== */


.article-head {
  background: linear-gradient(112deg, #eff0e8 0%, #f6efe4 52%, #f3e6d6 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 30px 0 36px;
}
.article-head .crumbs { margin-bottom: 18px; }
.article-head__tags {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  font-weight: 600;
}
.article-head__title {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: .02em;
}
.article-head__lead {
  margin: 14px 0 0;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.article-head__meta {
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.article-head__meta > div {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}
.article-head__meta > div:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.article-head__meta dt {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.article-head__meta dd {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 正文 + 侧栏目录 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  padding: 40px 0 56px;
}
.toc {
  position: sticky;
  top: 24px;
}
.toc__label {
  display: block;
  margin: 0 0 10px;
}
.toc__toggle { display: none; cursor: pointer; }
.toc__list {
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
  counter-reset: toc;
  border-left: 1px solid var(--line);
}
.toc__list li { counter-increment: toc; }
.toc__list a {
  display: block;
  position: relative;
  padding: 7px 0 7px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s;
}
.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 7px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--line);
}
.toc__list a:hover { color: var(--accent); }
.toc__list a.is-active {
  color: var(--accent);
  font-weight: 600;
}
.toc__list a.is-active::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
}

.article-body { min-width: 0; }
.article-body figure {
  margin: 20px 0 24px;
}
.article-body figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.9) brightness(1.03);
}
.article-body figure figcaption {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.article-lead {
  margin: 0 0 26px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
}
.article-body h2 {
  margin: 38px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  scroll-margin-top: 24px;
}
.article-body h2:first-of-type { margin-top: 30px; }
.article-body p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--ink-soft);
}

/* ---------- 上一篇 / 下一篇 ---------- */
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 30px 0 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.article-nav a {
  flex: 1 1 240px;
  min-width: 0;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  transition: border-color .18s, color .18s;
}
.article-nav a:hover { color: var(--accent); border-color: var(--accent-soft); }

/* ---------- 相关做法 ---------- */
.related-dishes {
  background: var(--bg-warm);
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 30px;
}
.related-three {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-three a {
  display: block;
  padding: 15px 16px;
  background: #fdf8f4;
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s;
}
.related-three a:hover { border-color: var(--accent-soft); }
.related-three__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.related-three__desc {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 1199px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 26px 0 44px; }
  .toc { position: static; margin-bottom: 22px; }
  .toc__label { display: none; }
  .toc__toggle {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    text-align: left;
    font: 600 13px/1 var(--font-sans);
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
  }
  .toc__toggle::after { content: " ▾"; }
  .toc.is-open .toc__toggle::after { content: " ▴"; }
  .toc__list {
    display: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }
  .toc.is-open .toc__list { display: block; }
  .toc__list a { padding-block: 9px; }
}
@media (max-width: 767px) {
  .article-head { padding: 22px 0 26px; }
  .article-head__title { font-size: 34px; }
  .article-head__lead { font-size: 14px; }
  .article-head__meta > div { padding-right: 18px; margin-right: 18px; }
  .article-body h2 { font-size: 20px; margin-top: 30px; }
  .article-body p { font-size: 14px; line-height: 1.95; }
  .related-three { grid-template-columns: minmax(0, 1fr); }
}

/* 列表卡：语义用 <article>，链接在内层（QA 要求列表页有 >=8 个 article） */
.dish-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.dish-card--article { padding: 0; }
