/* =========================================================
   食光 SHIGUANG KITCHEN
   A warm, hand-drawn kitchen for everyday cooking.
   ========================================================= */

:root {
  --paper: #f6f0e4;
  --paper-light: #fdf9f0;
  --paper-deep: #eee4d2;
  --ink: #29241e;
  --ink-soft: #5a5146;
  --muted: #796d5d;
  --line: rgba(41, 36, 30, 0.12);
  --line-soft: rgba(41, 36, 30, 0.07);
  --tomato: #d9543a;
  --tomato-deep: #b53e2a;
  --tomato-soft: #f2d5ca;
  --sage: #5d7459;
  --sage-deep: #33432f;
  --gold: #e4b45a;
  --cream: #fff9ec;
  --white: #fffdf8;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 14px 40px rgba(67, 48, 29, 0.08);
  --shadow-card: 0 24px 60px rgba(67, 48, 29, 0.12);
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.page-transition.is-covering {
  opacity: 1;
  transition: none;
}

#view.page-enter {
  animation: pageContentIn 0.7s 0.1s var(--ease) both;
  will-change: opacity, transform;
}

.nav-ribbon-piece {
  position: fixed;
  z-index: 9999;
  width: 5px;
  height: 13px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  animation: navRibbonFall 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes navRibbonFall {
  0% {
    opacity: 0;
    transform: translate(-50%, -4px) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), 130px) rotate(var(--r));
  }
}

@keyframes pageContentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: titleCharIn 0.55s var(--ease) forwards;
  animation-delay: calc(0.08s + var(--char-index, 0) * 0.035s);
}

@keyframes titleCharIn {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-afternote {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
}

.category-afternote span {
  color: var(--gold);
  margin: 0 8px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 55% at 8% 0%, rgba(228, 180, 90, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgba(217, 84, 58, 0.07), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: var(--cream);
  background: var(--tomato);
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 86px 0;
}

.center {
  text-align: center;
}

/* ---------- 文字与通用元素 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow.center {
  justify-content: center;
}

.eyebrow.light {
  color: rgba(255, 249, 236, 0.62);
}

.eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  color: var(--cream);
  background: var(--tomato);
  box-shadow: 0 12px 28px rgba(217, 84, 58, 0.24);
}

.btn-primary:hover {
  background: var(--tomato-deep);
  box-shadow: 0 16px 34px rgba(217, 84, 58, 0.32);
}

.btn-dark {
  color: var(--cream);
  background: var(--ink);
}

.btn-dark:hover {
  background: #14110e;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.btn-ghost:hover {
  border-color: rgba(41, 36, 30, 0.28);
  background: var(--white);
}

.btn-outline {
  color: var(--ink);
  border-color: rgba(41, 36, 30, 0.24);
  background: transparent;
}

.btn-outline:hover {
  color: var(--cream);
  border-color: var(--ink);
  background: var(--ink);
}

.btn-cream {
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.btn-cream:hover {
  background: #fff;
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
}

.btn .btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(41, 36, 30, 0.24);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--tomato);
  border-color: var(--tomato);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.inline-link {
  padding: 0;
  color: var(--tomato);
  border-bottom: 1px dashed rgba(217, 84, 58, 0.45);
  font-size: inherit;
  font-weight: 700;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--white);
  border-color: rgba(41, 36, 30, 0.24);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  background: rgba(246, 240, 228, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: height 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.site-header.is-scrolled {
  background: rgba(250, 246, 237, 0.94);
  border-color: var(--line-soft);
  box-shadow: 0 8px 30px rgba(58, 42, 24, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  width: min(var(--container), calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 12px rgba(181, 62, 42, 0.18));
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
  margin-left: 12px;
}

.main-nav > a,
.nav-drop-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-nav > a::after,
.nav-drop-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 21px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tomato);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: opacity 0.2s, transform 0.2s;
}

.main-nav > a:hover,
.nav-drop-trigger:hover,
.main-nav > a.is-active,
.nav-drop-trigger.is-active {
  color: var(--ink);
}

.main-nav > a.is-active::after,
.nav-drop-trigger.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-drop-trigger svg {
  width: 10px;
  height: 8px;
  opacity: 0.6;
  transition: transform 0.25s;
}

.nav-dropdown {
  position: relative;
  height: 100%;
}

.nav-dropdown.is-open .nav-drop-trigger svg {
  transform: rotate(180deg);
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  width: 248px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown.is-open .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-drop-panel a:hover {
  background: var(--paper);
}

.nav-drop-panel em {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.drop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.header-login svg {
  width: 16px;
  height: 16px;
}

.header-login:hover,
.header-login.is-active,
.header-login.is-authed {
  color: var(--tomato);
  background: var(--white);
  border-color: rgba(217, 84, 58, 0.26);
}

.search-trigger {
  width: auto;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
}

.search-trigger svg {
  width: 17px;
  height: 17px;
}

.search-hint {
  line-height: 1;
}

.fav-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.fav-count:hover {
  background: var(--white);
  border-color: rgba(41, 36, 30, 0.24);
  transform: translateY(-1px);
}

.fav-count svg {
  width: 18px;
  height: 18px;
}

.fav-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: var(--cream);
  background: var(--tomato);
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 52px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -140px;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(41, 36, 30, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -60px;
  width: 460px;
  height: 460px;
  border: 1px dashed rgba(217, 84, 58, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 38px;
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  padding: 20px 0 34px;
}

.hero-doodles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-doodle {
  position: absolute;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(75, 53, 30, 0.12));
  animation: doodleFloat 5.5s ease-in-out infinite;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.hero-doodle.is-dragging,
.heading-doodle.is-dragging {
  z-index: 8;
  cursor: grabbing;
  animation-play-state: paused;
  filter: drop-shadow(0 16px 25px rgba(75, 53, 30, 0.22));
}

.hero-doodle svg {
  display: block;
  width: 100%;
  height: auto;
}

.doodle-figure {
  position: relative;
  display: block;
  width: 100%;
  translate: var(--body-lag-x, 0px) var(--body-lag-y, 0px);
  will-change: transform, translate;
}

.doodle-figure > svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.limb {
  position: absolute;
  z-index: 0;
  width: 28%;
  height: 2.8px;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

.limb::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #5d4231;
  border-radius: 999px;
  transform-origin: inherit;
  animation: limbIdle 2.9s ease-in-out infinite;
}

.arm-l::before {
  animation-delay: -0.4s;
  animation-duration: 2.6s;
}

.arm-r::before {
  animation-delay: -1.3s;
  animation-duration: 3.1s;
}

.leg-l::before {
  animation-delay: -1.8s;
  animation-duration: 3.3s;
}

.leg-r::before {
  animation-delay: -0.9s;
  animation-duration: 2.75s;
}

.hero-doodle.is-dragging .limb::before,
.heading-doodle.is-dragging .limb::before {
  animation-play-state: paused;
}

@keyframes limbIdle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(18deg) translateY(-2px); }
  50% { transform: rotate(-14deg) translateY(0); }
  75% { transform: rotate(12deg) translateY(2px); }
}

.hero-doodle.has-moved,
.heading-doodle.has-moved,
.hero-doodle.is-walking,
.heading-doodle.is-walking {
  animation-play-state: paused;
}

.hero-doodle.is-walking,
.heading-doodle.is-walking {
  z-index: 12;
  filter: drop-shadow(0 6px 8px rgba(75, 53, 30, 0.16));
}

.is-walking .doodle-figure {
  animation: doodleWalk 1.15s ease-in-out infinite;
}

.is-walking .arm-l::before {
  animation: armWalkA 0.58s ease-in-out infinite;
}

.is-walking .arm-r::before {
  animation: armWalkB 0.58s ease-in-out infinite;
}

.is-walking .leg-l::before {
  animation: legWalkA 0.46s ease-in-out infinite;
}

.is-walking .leg-r::before {
  animation: legWalkB 0.46s ease-in-out infinite;
}

@keyframes doodleWalk {
  0%, 100% { transform: translateX(-5px) rotate(-2deg); }
  50% { transform: translateX(5px) rotate(2deg); }
}

@keyframes armWalkA {
  0%, 100% { transform: rotate(-24deg); }
  50% { transform: rotate(24deg); }
}

@keyframes armWalkB {
  0%, 100% { transform: rotate(24deg); }
  50% { transform: rotate(-24deg); }
}

@keyframes legWalkA {
  0%, 100% { transform: rotate(-26deg); }
  50% { transform: rotate(18deg); }
}

@keyframes legWalkB {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(-26deg); }
}

.arm-l {
  top: 53%;
  left: -9%;
  transform-origin: right center;
  transform: rotate(calc(-18deg + var(--arm-swing, 0deg))) translateY(var(--limb-lift, 0px));
}

.arm-r {
  top: 53%;
  right: -9%;
  transform-origin: left center;
  transform: rotate(calc(18deg + var(--arm-swing, 0deg))) translateY(var(--limb-lift, 0px));
}

.leg-l {
  bottom: -2px;
  left: 33%;
  width: 19%;
  transform-origin: top center;
  transform: rotate(calc(-14deg + var(--leg-swing, 0deg))) translateY(var(--limb-lift, 0px));
}

.leg-r {
  right: 33%;
  bottom: -2px;
  width: 19%;
  transform-origin: top center;
  transform: rotate(calc(14deg + var(--leg-swing, 0deg))) translateY(var(--limb-lift, 0px));
}

.hero-slot-1 {
  top: 39px;
  right: 8%;
  width: 52px;
}

.hero-slot-1 .doodle-figure {
  rotate: 8deg;
}

.hero-slot-2 {
  top: 91px;
  right: 47%;
  width: 39px;
  animation-delay: -2.2s;
}

.hero-slot-2 .doodle-figure {
  rotate: -8deg;
}

.hero-slot-3 {
  top: 27px;
  right: 33%;
  width: 43px;
  animation-delay: -3.1s;
}

.hero-slot-3 .doodle-figure {
  rotate: 12deg;
}

.hero-slot-4 {
  top: 252px;
  right: 1%;
  width: 65px;
  animation-delay: -1.6s;
}

.hero-slot-4 .doodle-figure {
  rotate: -8deg;
}

.hero-slot-5 {
  top: 65px;
  right: 20%;
  width: 48px;
  animation-delay: -4s;
}

.hero-slot-5 .doodle-figure {
  rotate: 6deg;
}

.hero-doodle-star {
  top: 172px;
  right: 4%;
  color: var(--gold);
  font-size: 23px;
  animation: starTwinkle 3s ease-in-out infinite;
}

.hero-title,
.hero-eyebrow,
.hero-lead,
.hero-search,
.hero-quick,
.hero-actions,
.hero-stats {
  position: relative;
  z-index: 1;
}

@keyframes doodleFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.3; scale: 0.8; rotate: 0deg; }
  50% { opacity: 1; scale: 1.1; rotate: 18deg; }
}

/* 列表 / 分类 / 收藏页大标题旁的可爱图案 */
.list-hero-content > div:first-child,
.category-hero-copy,
.favorites-hero-inner > div:first-child {
  position: relative;
}

.heading-doodles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.heading-doodle {
  position: absolute;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(75, 53, 30, 0.1));
  animation: doodleFloat 5.5s ease-in-out infinite;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.heading-doodle svg {
  display: block;
  width: 100%;
  height: auto;
}

.hd-slot-1 {
  top: -30px;
  right: 8%;
  width: 42px;
}

.hd-slot-1 .doodle-figure {
  rotate: 8deg;
}

.hd-slot-2 {
  top: 38px;
  right: -62px;
  width: 48px;
  animation-delay: -1.5s;
}

.hd-slot-2 .doodle-figure {
  rotate: -7deg;
}

.hd-slot-3 {
  top: 38%;
  left: -34px;
  width: 32px;
  animation-delay: -3s;
}

.hd-slot-3 .doodle-figure {
  rotate: -12deg;
}

.category-hero-copy .hd-slot-3 {
  display: none;
}

.hd-slot-4 {
  top: -50px;
  right: 31%;
  width: 33px;
  rotate: -10deg;
  animation-delay: -2.4s;
}

.hd-slot-5 {
  top: 92px;
  right: -96px;
  width: 34px;
  rotate: 11deg;
  animation-delay: -3.7s;
}

.category-hero-copy .hd-slot-2 {
  top: -44px;
  right: 42%;
}

.category-hero-copy .hd-slot-5 {
  top: 84px;
  right: 20%;
}

.author-hero-copy .hd-slot-2 {
  right: -22px;
}

.author-hero-copy .hd-slot-5 {
  right: -14px;
}

.hd-star {
  top: 3px;
  right: 22%;
  color: var(--gold);
  font-size: 17px;
  animation: starTwinkle 3.2s ease-in-out infinite;
}

.list-hero-content h1,
.list-hero-content .eyebrow,
.list-hero-desc,
.category-hero-copy h1,
.category-hero-copy .eyebrow,
.category-hero-copy > p,
.favorites-hero-inner h1,
.favorites-hero-inner .eyebrow,
.favorites-hero-inner p {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin-bottom: 26px;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-title {
  max-width: 680px;
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 82px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line > span {
  display: inline-block;
  animation: heroLine 1s var(--ease) both;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.hero-title em {
  position: relative;
  color: var(--tomato);
  font-style: normal;
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 0;
  bottom: 0.02em;
  height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 20' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 13C52 4 105 3 151 8c54 6 96 8 146-2' stroke='%23d9543a' stroke-width='4' stroke-linecap='round' fill='none' opacity='.34'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero-lead {
  max-width: 470px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
  animation: fadeUp 0.9s 0.22s var(--ease) both;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 560px;
  margin-top: 27px;
  padding: 6px 7px 6px 18px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(41, 36, 30, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(67, 48, 29, 0.07);
  animation: fadeUp 0.9s 0.28s var(--ease) both;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search:focus-within {
  border-color: rgba(217, 84, 58, 0.42);
  box-shadow: 0 14px 36px rgba(217, 84, 58, 0.1);
}

.hero-search > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12.5px;
}

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

.hero-search .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 11px;
  white-space: nowrap;
}

.hero-search .btn svg {
  width: 15px;
  height: 15px;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
  animation: fadeUp 0.9s 0.32s var(--ease) both;
}

.hero-quick button {
  padding: 3px 9px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hero-quick button:hover {
  color: var(--tomato);
  background: var(--white);
  border-color: rgba(217, 84, 58, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  animation: fadeUp 0.9s 0.36s var(--ease) both;
}

.hero-stats {
  display: flex;
  gap: 42px;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 520px;
  animation: fadeUp 0.9s 0.42s var(--ease) both;
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-stats strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  animation: heroScene 1.1s 0.1s var(--ease) both;
}

.hero-visual-inner {
  position: relative;
  width: min(100%, 650px);
  transform: translate(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 12px));
  transition: transform 0.6s var(--ease);
}

.hero-blob {
  position: absolute;
  inset: 6% 2% 8% 4%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 253, 246, 0.95), rgba(243, 218, 164, 0.45) 60%, transparent 72%),
    var(--paper-deep);
  border-radius: 48% 52% 43% 57% / 55% 44% 56% 45%;
  transform: rotate(-7deg);
  opacity: 0.7;
  filter: blur(0.3px);
}

.hero-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-steam path {
  animation: steamRise 3.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom center;
}

.wok-food-layer {
  display: none;
}

.wok-food {
  transform-box: fill-box;
  transform-origin: center;
  animation: wokToss 2.9s ease-in-out infinite;
  will-change: transform;
}

.wok-tomato-1 {
  animation-delay: -0.25s;
  animation-duration: 2.8s;
}

.wok-tomato-2 {
  animation-delay: -1.35s;
  animation-duration: 3.15s;
}

.wok-egg {
  animation-delay: -2s;
  animation-duration: 3.4s;
}

.wok-greens {
  animation-delay: -0.8s;
  animation-duration: 2.6s;
}

.wok-bits {
  animation-delay: -1.7s;
  animation-duration: 2.35s;
}

@keyframes wokToss {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  18% { transform: translate(-3px, -13px) rotate(-6deg); }
  36% { transform: translate(2px, 3px) rotate(3deg); }
  55% { transform: translate(4px, -9px) rotate(6deg); }
  74% { transform: translate(-2px, 2px) rotate(-3deg); }
}

.hero-steam path:nth-child(2) {
  animation-delay: 0.7s;
}

.hero-steam path:nth-child(3) {
  animation-delay: 1.3s;
}

.float-ingredient {
  animation: ingredientFloat 5.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.ingredient-egg {
  animation-delay: -1.8s;
  animation-duration: 6.2s;
}

.ingredient-chili {
  animation-delay: -3.1s;
  animation-duration: 4.8s;
}

.ingredient-herb {
  animation-delay: -2.2s;
  animation-duration: 6.6s;
}

.hero-note {
  animation: noteFloat 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-badge {
  animation: badgeFloat 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-dish-photo {
  position: absolute;
  top: 53%;
  left: 52%;
  z-index: 2;
  display: block;
  width: 300px;
  height: 175px;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s var(--ease), transform 0.35s var(--ease);
}

.hero-dish-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scale(1.14);
  animation: dishSizzle 4.2s ease-in-out infinite;
}

.hero-dish-photo:hover {
  transform: translate(-50%, -50%) scale(1.035) rotate(-1deg);
}

.hero-dish-photo:focus-visible {
  outline: 3px solid rgba(217, 84, 58, 0.55);
  outline-offset: 4px;
}

.hero-dish-photo.is-changing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

@keyframes dishSizzle {
  0%, 100% { transform: scale(1.14) translateY(0); }
  50% { transform: scale(1.17) translateY(-2px); }
}

.hero-caption {
  position: absolute;
  left: -14px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(300px, 70%);
  padding: 14px 16px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(75, 53, 30, 0.16);
  backdrop-filter: blur(10px);
}

.hero-caption-index {
  align-self: flex-start;
  color: var(--tomato);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.hero-caption div {
  min-width: 0;
}

.hero-caption-copy {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.hero-caption-index {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.hero-caption.is-changing .hero-caption-copy,
.hero-caption.is-changing .hero-caption-index {
  opacity: 0;
  transform: translateY(5px);
}

.hero-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.hero-caption small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.hero-caption-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  color: var(--cream);
  background: var(--tomato);
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform 0.2s, background 0.2s;
}

.hero-caption-link svg {
  width: 15px;
  height: 15px;
}

.hero-caption-link:hover {
  background: var(--tomato-deep);
  transform: rotate(-12deg);
}

.hero-dice {
  position: absolute;
  right: 18px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.7);
  border: 1px dashed rgba(41, 36, 30, 0.23);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.hero-dice svg {
  width: 15px;
  height: 15px;
  color: var(--tomato);
}

.hero-dice:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-2px) rotate(-1deg);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
  transform: translateX(-50%);
}

.hero-scroll i {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--muted), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* ---------- Ticker ---------- */
.ticker-wrap {
  overflow: hidden;
  padding: 10px 0;
}

.ticker-wrap.page-ticker {
  margin-top: 26px;
  padding: 14px 0 10px;
}

.ticker {
  overflow: hidden;
  padding: 15px 0;
  color: var(--cream);
  background: var(--ink);
  transform: none;
  width: 100%;
  margin-left: 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: tickerMove 42s linear infinite;
}

.ticker-track span {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker-track i {
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(31px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

.section-head h2 em {
  color: var(--tomato);
  font-style: normal;
}

.section-desc {
  max-width: 530px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.section-action {
  flex: 0 0 auto;
  padding-bottom: 7px;
}

/* ---------- Category cards ---------- */
.category-section {
  padding-bottom: 52px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 24px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(41, 36, 30, 0.09);
  border-radius: var(--radius-lg);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s;
}

.category-card {
  grid-column: span 1;
  min-height: 220px;
}

.category-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 170px;
  height: 170px;
  background: var(--soft);
  border-radius: 50%;
  opacity: 0.65;
  transition: transform 0.5s var(--ease);
}

.category-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 58px;
  height: 1px;
  background: var(--accent);
  opacity: 0.12;
}

.category-card:hover {
  z-index: 1;
  border-color: rgba(41, 36, 30, 0.18);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px) rotate(-0.25deg);
}

.category-card:hover::before {
  transform: scale(1.12) translate(-5px, 5px);
}

.category-num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  opacity: 0.55;
}

.category-icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  background: rgba(255, 253, 247, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(70, 49, 26, 0.07);
  transition: transform 0.4s var(--ease);
}

.category-card:hover .category-icon-wrap {
  transform: rotate(-7deg) translateY(-2px);
}

.cat-icon {
  width: 46px;
  height: 46px;
}

.category-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.category-copy em {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.category-copy strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.category-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.5;
  opacity: 0.85;
}

.category-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.round-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--cream);
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.round-arrow svg {
  width: 14px;
  height: 14px;
}

.category-card:hover .round-arrow {
  transform: rotate(-35deg);
}

/* ---------- Recipe cards ---------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.recipe-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: 0 3px 14px rgba(67, 48, 29, 0.025);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.3s;
}

.recipe-card:hover {
  border-color: rgba(41, 36, 30, 0.13);
  box-shadow: var(--shadow-card);
  transform: translateY(-7px);
}

.card-art {
  position: relative;
  display: block;
  aspect-ratio: 600 / 430;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-art .food-art-svg,
.card-art .recipe-photo {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.card-art .recipe-photo {
  display: block;
  object-fit: cover;
}

.recipe-card:hover .card-art .food-art-svg,
.recipe-card:hover .card-art .recipe-photo {
  transform: scale(1.035) rotate(0.25deg);
}

.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 36, 30, 0.04), transparent 30%, transparent 70%, rgba(41, 36, 30, 0.14));
  pointer-events: none;
}

.card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(6px);
}

.card-cat::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--cat);
  border-radius: 50%;
}

.card-time {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.82);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.card-time svg {
  width: 12px;
  height: 12px;
}

.card-view {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.card-view svg {
  width: 14px;
  height: 14px;
}

.recipe-card:hover .card-view {
  opacity: 1;
  transform: translateY(0);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 21px 17px;
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.card-kicker i {
  width: 2px;
  height: 2px;
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.7;
}

.card-content h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.card-content h3 a {
  background-image: linear-gradient(var(--tomato), var(--tomato));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}

.recipe-card:hover .card-content h3 a {
  color: var(--tomato-deep);
  background-size: 100% 1px;
}

.card-sub {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.card-rating svg {
  width: 11px;
  height: 11px;
  color: var(--gold);
}

.card-rating strong {
  color: var(--ink);
  font-size: 11px;
}

.card-rating em {
  margin: 0 1px;
  font-style: normal;
  opacity: 0.5;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.act-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}

.act-btn:hover {
  color: var(--tomato);
  background: rgba(217, 84, 58, 0.07);
}

.act-btn:active svg {
  transform: scale(0.82);
}

.act-btn.is-active {
  color: var(--tomato);
}

.act-btn.is-active.like-btn svg,
.act-btn.is-active.fav-btn svg {
  fill: currentColor;
}

.act-count {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fav-btn.is-active {
  color: var(--gold);
}

.more-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Learning ---------- */
.learning-section {
  padding-top: 66px;
}

.learning-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  padding: 58px 56px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 85% 0%, rgba(228, 180, 90, 0.16), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(217, 84, 58, 0.18), transparent 38%),
    var(--sage-deep);
  border-radius: var(--radius-xl);
}

.learning-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 249, 236, 0.1);
  border-radius: 50%;
}

.learning-card::after {
  content: "01  /  KITCHEN NOTES";
  position: absolute;
  right: 36px;
  bottom: 24px;
  color: rgba(255, 249, 236, 0.18);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.learning-copy {
  position: relative;
  z-index: 1;
}

.learning-copy h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

.learning-copy > p:not(.eyebrow) {
  max-width: 380px;
  margin-top: 20px;
  color: rgba(255, 249, 236, 0.65);
  font-size: 13px;
  line-height: 1.9;
}

.learning-copy .btn {
  margin-top: 28px;
}

.learning-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
}

.learning-step {
  padding: 8px 22px 16px;
  border-left: 1px solid rgba(255, 249, 236, 0.13);
}

.learning-step:first-child {
  border-left: 0;
}

.step-no {
  display: block;
  color: rgba(255, 249, 236, 0.33);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: 26px;
  color: var(--gold);
  border: 1px solid rgba(228, 180, 90, 0.28);
  border-radius: 15px;
  background: rgba(255, 249, 236, 0.04);
}

.step-icon svg {
  width: 23px;
  height: 23px;
}

.learning-step h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.learning-step p {
  margin-top: 8px;
  color: rgba(255, 249, 236, 0.55);
  font-size: 11.5px;
  line-height: 1.8;
}

/* ---------- Inspiration / UAPI ---------- */
.inspiration-section {
  padding-top: 66px;
}

.inspiration-card {
  position: relative;
  padding: 54px 56px 42px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 84, 58, 0.22), transparent 40%),
    radial-gradient(circle at 2% 100%, rgba(228, 180, 90, 0.12), transparent 36%),
    #29241e;
  border-radius: var(--radius-xl);
}

.inspiration-card::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 38px;
  width: 110px;
  height: 110px;
  border: 1px dashed rgba(255, 249, 236, 0.16);
  border-radius: 50%;
}

.inspiration-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 50px;
  align-items: end;
}

.inspiration-head h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.inspiration-desc {
  padding-bottom: 5px;
}

.inspiration-desc p {
  max-width: 390px;
  color: rgba(255, 249, 236, 0.6);
  font-size: 12.5px;
  line-height: 1.9;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 4px 11px;
  color: rgba(255, 249, 236, 0.58);
  border: 1px solid rgba(255, 249, 236, 0.16);
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.live-pill i {
  width: 5px;
  height: 5px;
  background: #8fba7d;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(143, 186, 125, 0.12);
  animation: livePulse 2s infinite;
}

.uapi-search-form {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 7px 8px 7px 22px;
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}

.uapi-search-form:focus-within {
  background: rgba(255, 253, 247, 0.12);
  border-color: rgba(255, 253, 247, 0.4);
}

.uapi-search-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  color: var(--cream);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.uapi-search-form input::placeholder {
  color: rgba(255, 249, 236, 0.38);
}

.uapi-search-form .btn {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 22px;
  font-size: 12px;
}

.uapi-search-form .btn svg {
  width: 16px;
  height: 16px;
}

.uapi-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: rgba(255, 249, 236, 0.35);
  font-size: 9.5px;
}

.uapi-hot button {
  padding: 3px 10px;
  color: rgba(255, 249, 236, 0.6);
  border: 1px solid rgba(255, 249, 236, 0.14);
  border-radius: 999px;
  font-size: 9.5px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.uapi-hot button:hover {
  color: var(--cream);
  background: rgba(255, 253, 247, 0.08);
  border-color: rgba(255, 253, 247, 0.3);
}

.uapi-results {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.uapi-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 88px;
  color: rgba(255, 249, 236, 0.33);
  border: 1px dashed rgba(255, 249, 236, 0.14);
  border-radius: 18px;
  font-size: 12px;
}

.uapi-placeholder svg {
  width: 22px;
  height: 22px;
}

.uapi-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: rgba(255, 249, 236, 0.28);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.uapi-loading {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.skeleton-card {
  height: 145px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.06) 25%, rgba(255, 253, 247, 0.12) 50%, rgba(255, 253, 247, 0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

.uapi-loading p {
  grid-column: 1 / -1;
  color: rgba(255, 249, 236, 0.4);
  font-size: 11px;
  text-align: center;
}

.uapi-result-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: rgba(255, 249, 236, 0.55);
  font-size: 10px;
}

.uapi-source {
  color: #9dbb8f;
}

.uapi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.uapi-grid.local {
  grid-template-columns: repeat(4, 1fr);
}

.uapi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  cursor: pointer;
  border-radius: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.uapi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.uapi-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line-soft);
}

.uapi-card-actions .act-btn {
  height: 30px;
  padding: 0 9px;
}

.uapi-action-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.uapi-card:focus-visible {
  outline: 2px solid rgba(217, 84, 58, 0.5);
  outline-offset: 2px;
}

.web-fav-meta {
  margin-top: 34px;
}

.web-fav-grid {
  margin-top: 14px;
}

.uapi-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}

.uapi-cover img,
.uapi-cover .food-art-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.uapi-card:hover .uapi-cover img,
.uapi-card:hover .uapi-cover .food-art-svg {
  transform: scale(1.04);
}

.uapi-cover img.img-error {
  display: none;
}

.uapi-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  background: var(--paper);
}

.uapi-cover-fallback svg {
  width: 28px;
  height: 28px;
}

.uapi-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px 12px;
}

.uapi-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.uapi-card-body small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.uapi-card-body small svg {
  width: 12px;
  height: 12px;
}

.uapi-card-meta {
  color: var(--tomato) !important;
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.uapi-card-desc {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.uapi-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 5px;
  color: var(--tomato);
  font-size: 8.5px;
  font-weight: 700;
}

.uapi-card-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
}

.uapi-card:hover .uapi-card-link svg {
  transform: translateX(3px);
}

.uapi-fallback-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  color: rgba(255, 249, 236, 0.6);
  background: rgba(255, 253, 247, 0.05);
  border: 1px dashed rgba(255, 253, 247, 0.14);
  border-radius: 13px;
  font-size: 11px;
}

.uapi-fallback-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--gold);
}

.uapi-disclaimer {
  margin-top: 14px;
  color: rgba(255, 249, 236, 0.25);
  font-size: 8px;
}

/* ---------- Quote ---------- */
.quote-section {
  padding-top: 50px;
  padding-bottom: 96px;
}

.quote-card {
  position: relative;
  padding: 72px 30px 66px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 253, 247, 0.9), transparent 65%),
    #f0e5d1;
  border: 1px solid rgba(41, 36, 30, 0.07);
  border-radius: var(--radius-xl);
}

.quote-card::before,
.quote-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(41, 36, 30, 0.08);
  border-radius: 50%;
}

.quote-card::before {
  top: -150px;
  left: -80px;
}

.quote-card::after {
  right: -90px;
  bottom: -170px;
}

.quote-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--tomato);
  opacity: 0.5;
}

.quote-mark svg {
  width: 32px;
  height: 32px;
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.5;
  text-wrap: balance;
}

.quote-card p {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.quote-card .btn {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.quote-sparkle {
  position: absolute;
  color: var(--tomato);
  font-size: 16px;
  opacity: 0.35;
}

.quote-sparkle.s1 {
  top: 24%;
  left: 15%;
}

.quote-sparkle.s2 {
  top: 30%;
  right: 13%;
  font-size: 11px;
}

.quote-sparkle.s3 {
  bottom: 22%;
  left: 24%;
  font-size: 9px;
}

/* ---------- Page hero & list ---------- */
.page-hero {
  position: relative;
  padding: 42px 0 58px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -140px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(41, 36, 30, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 10px;
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--tomato);
}

.breadcrumb span:last-child {
  color: var(--ink-soft);
}

.list-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.list-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
  text-wrap: balance;
}

.list-hero-content h1 em {
  color: var(--tomato);
  font-style: normal;
}

.list-hero-desc {
  max-width: 380px;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.list-section {
  padding-top: 12px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 15px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter-tab span {
  color: var(--muted);
  font-size: 9px;
}

.filter-tab:hover {
  background: rgba(255, 253, 248, 0.8);
  border-color: var(--line);
}

.filter-tab.is-active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.filter-tab.is-active span {
  color: rgba(255, 249, 236, 0.5);
}

.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  height: 42px;
  padding: 0 15px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}

.inline-search:focus-within {
  background: var(--white);
  border-color: rgba(41, 36, 30, 0.25);
}

.inline-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.inline-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

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

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 11px;
}

.list-meta-note {
  color: var(--muted);
  font-size: 10px;
}

.advanced-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: -10px 0 24px;
  color: var(--muted);
  font-size: 10px;
}

.advanced-search-row > span {
  margin-right: 2px;
  color: var(--ink-soft);
  font-weight: 700;
}

.advanced-search-row button {
  padding: 5px 11px;
  color: var(--tomato);
  background: var(--white);
  border: 1px solid rgba(217, 84, 58, 0.18);
  border-radius: 999px;
  font-size: 9px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.advanced-search-row button:hover {
  color: var(--cream);
  background: var(--tomato);
  border-color: var(--tomato);
}

.advanced-search-row em {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

@media (max-width: 600px) {
  .advanced-search-row em {
    width: 100%;
    margin-left: 0;
  }
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 24px 60px;
  text-align: center;
}

.empty-art {
  width: min(260px, 70%);
  height: auto;
  margin-bottom: 10px;
}

.empty-state h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 800;
}

.empty-state p {
  max-width: 380px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.empty-state .btn {
  margin-top: 22px;
}

/* ---------- Category page ---------- */
.category-page-hero {
  background:
    radial-gradient(circle at 88% 0%, var(--soft), transparent 50%),
    linear-gradient(160deg, var(--paper) 0%, var(--paper) 60%, var(--soft) 100%);
  border-bottom: 1px solid rgba(41, 36, 30, 0.07);
}

.category-page-hero::before {
  border-color: rgba(41, 36, 30, 0.08);
}

.category-hero-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.category-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: rgba(255, 253, 247, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.category-hero-icon .cat-icon {
  width: 74px;
  height: 74px;
}

.category-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 5.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.category-hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.9;
}

.category-hero-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  color: var(--accent);
  border: 1px dashed currentColor;
  border-radius: 50%;
  transform: rotate(8deg);
  opacity: 0.8;
}

.category-hero-stamp span {
  font-size: 8px;
  letter-spacing: 0.16em;
}

.category-hero-stamp strong {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.category-hero-stamp small {
  font-size: 8px;
}

.other-cats {
  margin-top: 68px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.other-cats-title {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.other-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mini-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: background 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.mini-cat:hover {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.mini-cat > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--soft);
  border-radius: 13px;
}

.mini-cat .cat-icon {
  width: 32px;
  height: 32px;
}

.mini-cat strong {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.mini-cat small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.mini-cat > svg {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 15px;
  height: 15px;
  color: var(--accent);
  transition: transform 0.3s;
}

.mini-cat:hover > svg {
  transform: translateX(3px);
}

/* ---------- Search page ---------- */
.search-results-section {
  padding-top: 20px;
}

.live-search-panel {
  position: relative;
  margin-bottom: 46px;
  padding: 32px 34px 24px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 92% 8%, rgba(217, 84, 58, 0.24), transparent 36%),
    radial-gradient(circle at 4% 100%, rgba(228, 180, 90, 0.12), transparent 34%),
    #29241e;
  border-radius: 26px;
}

.live-search-panel::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(255, 249, 236, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.live-search-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.live-search-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.live-search-head p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 7px;
  color: rgba(255, 249, 236, 0.48);
  font-size: 10.5px;
  line-height: 1.7;
}

.live-search-head .live-pill {
  flex: 0 0 auto;
  margin-top: 3px;
}

.live-search-panel .uapi-note {
  margin-top: 12px;
}

.live-search-panel .uapi-grid {
  grid-template-columns: repeat(4, 1fr);
}

.live-search-panel .uapi-card {
  background: #fffdf8;
}

.uapi-retry {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 9px;
  color: var(--gold);
  border: 1px solid rgba(228, 180, 90, 0.3);
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.uapi-retry:hover {
  color: var(--cream);
  border-color: rgba(255, 249, 236, 0.4);
}

.search-local-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.search-local-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.search-local-head > span {
  color: var(--muted);
  font-size: 10px;
}

.search-cuisine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.search-page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
  text-wrap: balance;
}

.search-page-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.page-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  height: 54px;
  margin-top: 26px;
  padding: 0 7px 0 18px;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-search-form > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}

.page-search-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

/* ---------- Detail ---------- */
.detail-page {
  padding-bottom: 10px;
}

.detail-breadcrumb {
  margin-top: 4px;
  margin-bottom: 32px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 58px;
  padding-bottom: 64px;
}

.detail-art-wrap {
  position: relative;
}

.detail-art {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid rgba(41, 36, 30, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.detail-art .food-art-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 440;
}

.detail-art-stamp {
  position: absolute;
  right: -18px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: var(--accent, var(--tomato));
  background: var(--paper);
  border: 1px dashed currentColor;
  border-radius: 50%;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: 0 8px 24px rgba(67, 48, 29, 0.11);
}

.detail-art-note {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.86);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.detail-art-note svg {
  width: 13px;
  height: 13px;
  color: var(--tomato);
}

.detail-info h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  text-wrap: balance;
}

.detail-subtitle {
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.detail-desc {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 26px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.detail-meta svg {
  width: 17px;
  height: 17px;
  color: var(--accent, var(--tomato));
  flex: 0 0 auto;
}

.detail-meta span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.detail-meta strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 4px 9px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8.5px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
}

.round-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 52px;
  padding: 0 17px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.round-action svg {
  width: 18px;
  height: 18px;
}

.round-action:hover {
  color: var(--tomato);
  background: var(--white);
  border-color: rgba(217, 84, 58, 0.3);
}

.round-action.is-active {
  color: var(--tomato);
  background: rgba(217, 84, 58, 0.06);
  border-color: rgba(217, 84, 58, 0.22);
}

.round-action.is-active svg {
  fill: currentColor;
}

.round-action.fav-btn.is-active {
  color: #a97824;
  background: rgba(228, 180, 90, 0.1);
  border-color: rgba(228, 180, 90, 0.35);
}

/* Cook layout */
.cook-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 54px 0 20px;
  border-top: 1px solid var(--line);
}

.ingredients-panel {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  padding: 27px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.panel-eyebrow {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.panel-top h2,
.steps-head h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.serving-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.serving-stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background 0.2s;
}

.serving-stepper button:hover:not(:disabled) {
  background: var(--white);
}

.serving-stepper button svg {
  width: 14px;
  height: 14px;
}

.serving-stepper span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 8.5px;
  white-space: nowrap;
}

.serving-stepper strong {
  color: var(--ink);
  font-size: 11px;
}

.panel-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.ingredient-list {
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.ingredient-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  text-align: left;
  transition: color 0.2s;
}

.ingredient-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: transparent;
  border: 1.5px solid rgba(41, 36, 30, 0.22);
  border-radius: 6px;
  flex: 0 0 auto;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ingredient-check svg {
  width: 11px;
  height: 11px;
}

.ingredient-name {
  font-size: 12px;
}

.ingredient-amount {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.ingredient-row:hover {
  color: var(--tomato);
}

.ingredient-row.is-done .ingredient-check {
  color: var(--cream);
  background: var(--sage);
  border-color: var(--sage);
}

.ingredient-row.is-done .ingredient-name {
  color: var(--muted);
}

.panel-progress {
  margin-top: 18px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.progress-label strong {
  color: var(--ink);
  font-weight: 700;
}

.progress-track {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 99px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), #8aa47f);
  border-radius: inherit;
  transition: width 0.4s var(--ease);
}

.progress-track.small {
  width: 160px;
  margin-top: 7px;
}

.panel-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding: 12px;
  background: #f0f3e9;
  border-radius: 12px;
}

.panel-tip svg {
  width: 16px;
  height: 16px;
  color: var(--sage);
  flex: 0 0 auto;
}

.panel-tip p {
  color: #6a7a60;
  font-size: 9px;
  line-height: 1.65;
}

.prep-gate {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  padding: 17px 19px;
  background: #fbf1dd;
  border: 1px solid rgba(201, 122, 37, 0.18);
  border-radius: 18px;
}

.prep-gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #a66b27;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid rgba(201, 122, 37, 0.18);
  border-radius: 13px;
  flex: 0 0 auto;
}

.prep-gate-icon svg {
  width: 20px;
  height: 20px;
}

.prep-gate-copy {
  min-width: 0;
}

.prep-gate-copy h3 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.prep-gate-copy p:not(.panel-eyebrow) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.prep-gate-copy strong {
  color: var(--tomato);
  font-weight: 800;
}

.prep-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 9px 13px;
  color: var(--cream);
  background: #b98239;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.prep-gate-btn:hover {
  background: #9e6825;
  transform: translateY(-1px);
}

.prep-gate-btn svg {
  width: 13px;
  height: 13px;
}

.steps-panel.is-locked .steps-list {
  opacity: 0.38;
  filter: blur(1.2px);
  pointer-events: none;
  user-select: none;
}

.steps-panel.is-locked .step-toggle {
  cursor: not-allowed;
}

.step-toggle:disabled {
  cursor: not-allowed;
}

.prep-start-btn.is-prep-locked {
  background: #9a8e7d;
  box-shadow: none;
}

.prep-start-btn.is-prep-locked:hover {
  background: #887b69;
}

.start-cook-inline[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
}

.panel-progress.is-ready .progress-label span {
  color: var(--sage);
  font-weight: 700;
}

.panel-progress.is-ready .progress-track span {
  background: linear-gradient(90deg, var(--sage), #9ab084);
}

.steps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.steps-head h2 em {
  color: var(--tomato);
  font-style: normal;
}

.steps-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.progress-track.small {
  width: 150px;
}

.reset-btn {
  margin-top: 2px;
  padding: 0;
  color: var(--muted);
  border-bottom: 1px dashed currentColor;
  font-size: 8.5px;
  transition: color 0.2s;
}

.reset-btn:hover {
  color: var(--tomato);
}

.start-cook-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 0;
  color: var(--tomato);
  border-bottom: 1px dashed rgba(217, 84, 58, 0.4);
  font-size: 8.5px;
  font-weight: 700;
}

.start-cook-inline svg {
  width: 12px;
  height: 12px;
}

.start-cook-inline:hover {
  color: var(--tomato-deep);
}

.steps-list {
  margin-top: 8px;
}

.step-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: opacity 0.25s;
}

.step-item.is-done {
  opacity: 0.55;
}

.step-toggle {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--tomato);
  background: rgba(217, 84, 58, 0.055);
  border: 1px solid rgba(217, 84, 58, 0.18);
  border-radius: 16px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.step-toggle:hover {
  background: rgba(217, 84, 58, 0.12);
  transform: scale(1.04);
}

.step-index {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.step-index svg {
  width: 19px;
  height: 19px;
}

.step-item.is-done .step-toggle {
  color: var(--cream);
  background: var(--sage);
  border-color: var(--sage);
}

.step-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.step-body p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
}

.step-media,
.cook-step-media {
  position: relative;
  max-width: 560px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
}

.step-media img,
.cook-step-media img {
  width: 100%;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
}

.step-media figcaption,
.cook-step-media figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.9);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.step-media figcaption span:last-child,
.cook-step-media figcaption span:last-child {
  color: var(--ink-soft);
  font-weight: 700;
}

.cook-step-media {
  max-width: 620px;
  margin-top: 18px;
}

.cook-step-media img {
  max-height: 215px;
}

.tips-card {
  margin-top: 32px;
  padding: 24px 26px;
  background: #f0f3e9;
  border: 1px solid rgba(93, 116, 89, 0.12);
  border-radius: 20px;
}

.tips-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep);
}

.tips-head svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
}

.tips-head h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.tips-card ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.tips-card li {
  position: relative;
  padding-left: 15px;
  color: #69755f;
  font-size: 11px;
  line-height: 1.8;
}

.tips-card li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0.55;
}

.detail-end-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 27px 30px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 24px;
}

.detail-end-actions p {
  color: rgba(255, 249, 236, 0.45);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.detail-end-actions h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.detail-end-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-end-actions .btn {
  white-space: nowrap;
}

.detail-end-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 11px;
}

.detail-end-actions .btn-outline {
  color: var(--cream);
  border-color: rgba(255, 249, 236, 0.25);
}

.detail-end-actions .btn-outline:hover {
  color: var(--ink);
  background: var(--cream);
}

.detail-end-actions .btn-ghost {
  color: rgba(255, 249, 236, 0.65);
  border-color: rgba(255, 249, 236, 0.14);
  background: transparent;
}

.detail-end-actions .btn-ghost:hover {
  color: var(--cream);
  background: rgba(255, 249, 236, 0.08);
}

.detail-end-actions .like-btn.is-active {
  color: var(--tomato);
  background: rgba(217, 84, 58, 0.12);
  border-color: rgba(217, 84, 58, 0.3);
}

.related-section {
  padding: 72px 0 86px;
  border-top: 1px solid var(--line);
}

/* ---------- Favorites ---------- */
.favorites-hero {
  padding-bottom: 46px;
}

.favorites-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.favorites-hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
  text-wrap: balance;
}

.favorites-hero p:not(.eyebrow) {
  max-width: 480px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.favorites-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  color: var(--tomato);
  border: 1px dashed rgba(217, 84, 58, 0.45);
  border-radius: 50%;
  transform: rotate(6deg);
  flex: 0 0 auto;
}

.favorites-count strong {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.favorites-count span {
  margin-top: 5px;
  font-size: 8px;
}

.favorites-empty {
  padding-top: 12px;
  padding-bottom: 80px;
}

.favorites-empty-quote {
  position: relative;
  max-width: 860px;
  min-height: 230px;
  margin: 8px auto 0;
  padding: 30px 36px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(228, 180, 90, 0.1), transparent 30%),
    radial-gradient(circle at 84% 74%, rgba(217, 84, 58, 0.07), transparent 32%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.favorites-empty-quote .eyebrow {
  justify-content: center;
  margin-bottom: 12px;
}

.favorites-empty-quote blockquote {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.65;
  text-wrap: pretty;
}

.favorites-empty-quote blockquote em {
  color: var(--tomato);
  font-style: normal;
}

.fq-1 {
  top: 18%;
  left: 4%;
  width: 62px;
}

.fq-2 {
  top: 48%;
  right: 4%;
  width: 52px;
  animation-delay: -2.3s;
}

.fq-3 {
  bottom: 10%;
  left: 15%;
  width: 46px;
  animation-delay: -3.5s;
}

/* ---------- Meal Builder ---------- */
.builder-hero .list-hero-desc {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
  text-wrap: pretty;
}

.builder-hero .list-hero-desc::before {
  content: "✦";
  margin-right: 8px;
  color: var(--gold);
  font-size: 13px;
}

.builder-card {
  padding: 34px 38px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.builder-head h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.builder-count {
  flex: none;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 10.5px;
}

.builder-count strong {
  color: var(--tomato);
  font-size: 13px;
}

.builder-groups {
  display: grid;
  gap: 17px;
  padding: 22px 0 18px;
}

.builder-group {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.builder-label {
  flex: 0 0 116px;
  padding-top: 6px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.builder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.builder-chip {
  padding: 7px 13px;
  color: var(--ink-soft);
  background: var(--paper-light);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 11px;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.builder-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 84, 58, 0.25);
}

.builder-chip.is-active {
  color: var(--cream);
  background: var(--tomato);
  border-color: var(--tomato);
}

.builder-custom {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 0 18px;
  border-top: 1px dashed var(--line-soft);
}

.builder-custom-input {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.builder-custom-input input {
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  outline: none;
}

.builder-custom-input input:focus {
  border-color: rgba(217, 84, 58, 0.5);
  box-shadow: 0 0 0 3px rgba(217, 84, 58, 0.07);
}

.builder-custom-input button {
  padding: 0 13px;
  color: var(--tomato);
  background: var(--white);
  border: 1px solid rgba(217, 84, 58, 0.22);
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 700;
}

.builder-custom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.builder-custom-tag {
  padding: 6px 10px;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.builder-actions > span {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
}

.kitchen-emoji-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 11px 15px;
  color: var(--ink-soft);
  background: linear-gradient(100deg, rgba(255, 249, 236, 0.9), rgba(246, 232, 206, 0.55));
  border: 1px dashed rgba(201, 150, 70, 0.38);
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 12.5px;
}

.kitchen-emoji-guide strong {
  margin-right: 4px;
  color: var(--ink);
  font-size: 13px;
}

.kitchen-emoji-guide i {
  color: var(--gold);
  font-style: normal;
}

.kitchen-emoji-guide span {
  white-space: nowrap;
}

.cook-finish-emoji {
  margin: 6px 0 12px;
  font-size: 24px;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.finish-food-note {
  position: relative;
  max-width: 540px;
  margin: 28px auto 0;
  padding: 22px 28px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 15%, rgba(228, 180, 90, 0.12), transparent 34%),
    rgba(255, 253, 248, 0.58);
  border: 1px dashed rgba(201, 150, 70, 0.32);
  border-radius: 16px;
}

.finish-food-mark {
  display: block;
  height: 18px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.finish-food-note p {
  margin: 4px auto 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.finish-food-note small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.finish-food-note .finish-food-en {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.7;
  opacity: 0.82;
}

.finish-food-sign {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 11px;
}

.builder-strict {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.builder-strict.is-active {
  color: var(--sage);
  background: rgba(93, 116, 89, 0.08);
  border-color: rgba(93, 116, 89, 0.3);
}

.builder-strict svg {
  width: 11px;
  height: 11px;
}

.builder-results {
  margin-top: 36px;
}

.builder-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 30px;
  color: var(--muted);
  background: var(--paper-light);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.builder-empty > svg {
  width: 23px;
  height: 23px;
  color: var(--gold);
}

.builder-empty p {
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.builder-result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
}

.builder-result-head span:first-child {
  color: var(--ink-soft);
  font-weight: 700;
}

.builder-result-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.builder-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.builder-result:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.builder-result > img,
.builder-result-fallback {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  object-fit: cover;
  overflow: hidden;
  border-radius: 11px;
}

.builder-result-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}

.builder-result-fallback .cat-icon {
  width: 48px;
  height: 48px;
}

.builder-result-copy {
  min-width: 0;
}

.builder-result-copy em {
  display: block;
  color: var(--tomato);
  font-size: 9px;
  font-style: normal;
}

.builder-result-copy strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
}

.builder-result-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-result .round-arrow {
  flex: none;
  margin-left: auto;
}

.builder-web-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.builder-web-card {
  min-width: 0;
}

.builder-search-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--tomato);
  font-size: 10px;
  font-weight: 700;
}

.builder-search-link svg {
  width: 12px;
  height: 12px;
}

/* ---------- Login ---------- */
body.login-page-mode .main-nav,
body.login-page-mode .header-actions,
body.login-page-mode .menu-toggle {
  display: none !important;
}

body.login-page-mode .site-header .header-inner {
  justify-content: flex-start;
}

.login-page {
  padding: 64px 0 100px;
  background:
    radial-gradient(circle at 82% 14%, rgba(228, 180, 90, 0.12), transparent 32%),
    radial-gradient(circle at 8% 82%, rgba(217, 84, 58, 0.06), transparent 34%);
}

.register-verified {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: rgba(122, 142, 101, 0.09);
  border: 1px solid rgba(122, 142, 101, 0.2);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
}

.register-verified strong {
  color: var(--sage);
}

.phone-login-form input.is-error {
  border: 2px solid #c94f36 !important;
  padding: 0 44px 0 12px;
  background: rgba(201, 79, 54, 0.045) !important;
  box-shadow: 0 0 0 3px rgba(201, 79, 54, 0.11) !important;
}

.phone-login-form input.is-error:focus {
  border: 2px solid #b8442f !important;
  box-shadow: 0 0 0 3px rgba(201, 79, 54, 0.16) !important;
}

.login-page.is-tab-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.17s ease, transform 0.17s ease;
}

.login-page.is-tab-entering {
  animation: loginTabIn 0.42s var(--ease) both;
}

@keyframes loginTabIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 74px;
  align-items: center;
  max-width: 1120px;
}

.login-intro {
  position: relative;
}

.login-intro h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 77px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.login-intro h1 em {
  color: var(--tomato);
  font-style: normal;
}

.login-intro-lead {
  max-width: 460px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.login-doodle {
  width: 86px;
  margin-top: 34px;
  transform: rotate(-7deg);
  animation: doodleFloat 5.5s ease-in-out infinite;
}

.free-doodle {
  position: absolute;
  display: block;
  width: 58px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 3;
  animation: doodleFloat 5.4s ease-in-out infinite;
}

.free-doodle svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.free-doodle .doodle-figure {
  rotate: var(--rot, 0deg);
}

.free-doodle.is-dragging {
  z-index: 9;
  cursor: grabbing;
  animation-play-state: paused;
  filter: drop-shadow(0 16px 25px rgba(75, 53, 30, 0.22));
}

.free-doodle.has-moved {
  animation-play-state: paused;
}

.login-garden {
  position: relative;
  width: min(480px, 100%);
  height: 210px;
  margin-top: 24px;
}

.login-garden-quote {
  position: absolute;
  top: 50%;
  right: 0;
  left: 43%;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
  transform: translateY(-50%);
  text-wrap: pretty;
}

.login-garden-quote em {
  color: var(--tomato);
  font-style: normal;
}

.login-free-1 {
  top: 62px;
  left: 0;
  width: 64px;
}

.login-free-2 {
  top: 8px;
  left: 22%;
  width: 48px;
  animation-delay: -2.1s;
}

.login-free-3 {
  bottom: 0;
  left: 5%;
  width: 46px;
  animation-delay: -3.4s;
}

.login-free-4 {
  top: 18px;
  right: 0;
  width: 62px;
  animation-delay: -1.5s;
}

.login-bottom-quote {
  margin-top: 46px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-align: center;
}

.login-bottom-quote span {
  margin: 0 9px;
  color: var(--gold);
}

.login-doodle svg {
  display: block;
  width: 100%;
  height: auto;
}

.login-card {
  padding: 36px 34px 32px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(71, 47, 25, 0.07);
}

.login-card h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.login-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.login-tabs {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 18px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.login-tab {
  padding: 6px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.login-tab.is-active {
  color: var(--tomato);
  background: var(--white);
  box-shadow: 0 3px 9px rgba(71, 47, 25, 0.07);
}

.login-switch {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.login-switch button {
  padding: 0;
  color: var(--tomato);
  background: transparent;
  border: 0;
  font-size: inherit;
  font-weight: 700;
}

.phone-login-form > label:first-child {
  margin-top: 16px;
}

.phone-login-form > label + label {
  margin-top: 12px;
}

.social-login {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 24px;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 8px 11px;
  color: var(--ink-soft);
  background: var(--paper-light);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  font-size: 10px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 84, 58, 0.24);
  box-shadow: 0 10px 22px rgba(71, 47, 25, 0.08);
}

.social-logo {
  display: block;
  width: 29px;
  height: 29px;
}

.social-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 9px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.phone-login-form label {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.phone-login-form input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 6px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 12px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-login-form input:focus,
.phone-login-form input:focus-visible {
  outline: none;
}

/* 去掉移动端点击时的系统蓝色高亮和自动填充蓝色底 */
html,
body,
a,
button,
input,
textarea,
select,
label {
  -webkit-tap-highlight-color: transparent;
}

.phone-login-form input:-webkit-autofill,
.phone-login-form input:-webkit-autofill:hover,
.phone-login-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--paper-light) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}

.password-field {
  position: relative;
  display: block;
  margin-top: 6px;
}

.password-field input {
  margin-top: 0;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  transform: translateY(-50%);
  transition: color 0.2s, background 0.2s;
}

.password-toggle:hover {
  color: var(--tomato);
  background: rgba(217, 84, 58, 0.07);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(217, 84, 58, 0.45);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle.is-visible {
  color: var(--tomato);
}

/* 隐藏浏览器自带的密码显示/密码管理器图标，避免和自定义眼睛重复 */
.phone-login-form input[type="password"]::-ms-reveal,
.phone-login-form input[type="password"]::-ms-clear {
  display: none !important;
}

.phone-login-form input[type="password"]::-webkit-credentials-auto-fill-button,
.phone-login-form input[type="password"]::-webkit-contacts-auto-fill-button,
.phone-login-form input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.phone-login-form input:focus {
  border-color: rgba(217, 84, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 84, 58, 0.08);
}

.code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.code-btn {
  height: 42px;
  padding: 0 12px;
  color: var(--tomato);
  background: var(--white);
  border: 1px solid rgba(217, 84, 58, 0.22);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.code-btn:disabled {
  color: var(--muted);
  border-color: var(--line-soft);
  cursor: default;
}

.login-submit {
  width: 100%;
  margin-top: 18px;
}

.login-demo {
  margin-top: 13px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}

.code-hint {
  margin-top: 9px;
  padding: 7px 9px;
  color: var(--tomato);
  background: rgba(217, 84, 58, 0.06);
  border: 1px solid rgba(217, 84, 58, 0.14);
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.6;
}

body.signup-open {
  overflow: hidden;
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.signup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 19, 0.55);
  backdrop-filter: blur(5px);
}

.signup-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 28px 26px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(30, 20, 12, 0.28);
  animation: modalIn 0.35s var(--ease) both;
}

.signup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: var(--paper);
  border: 0;
  border-radius: 50%;
}

.signup-close svg {
  width: 14px;
  height: 14px;
}

.signup-panel h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.signup-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.signup-panel .phone-login-form {
  margin-top: 18px;
}

.save-password-prompt {
  position: fixed;
  top: 82px;
  left: 50%;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(430px, calc(100% - 28px));
  padding: 11px 13px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  box-shadow: 0 16px 40px rgba(35, 24, 16, 0.18);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.save-password-prompt.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.save-password-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--sage);
  background: rgba(93, 116, 89, 0.1);
  border-radius: 9px;
}

.save-password-icon svg {
  width: 16px;
  height: 16px;
}

.save-password-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.save-password-copy strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.save-password-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-password-actions {
  display: flex;
  flex: none;
  gap: 5px;
  margin-left: auto;
}

.save-password-actions button {
  padding: 6px 10px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.save-password-actions button[data-action="save-password"] {
  color: var(--cream);
  background: var(--tomato);
}

.save-password-actions button[data-action="dismiss-save-password"] {
  color: var(--muted);
}

.logged-in-card {
  text-align: center;
}

.login-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  color: var(--cream);
  background: var(--sage);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 800;
  box-shadow: 0 0 0 9px rgba(93, 116, 89, 0.08);
}

.logged-in-card > p:not(.panel-eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.logged-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 24px;
}

.logged-actions .btn {
  width: 100%;
}

/* ---------- Author ---------- */
.author-hero {
  padding-bottom: 36px;
}

.author-hero-inner {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  padding: 20px;
  background: #f5e6ce;
  border: 1px solid rgba(201, 122, 37, 0.16);
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-4deg);
}

.author-avatar svg {
  width: 100%;
  height: auto;
}

.author-hero-copy {
  position: relative;
}

.author-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(45px, 5.4vw, 74px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
  text-wrap: balance;
}

.author-hero-copy h1 em {
  color: var(--tomato);
  font-style: normal;
}

.author-heading-second {
  display: inline-block;
  margin-left: 0.55em;
}

.author-dash {
  margin-right: 0.16em;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.12em;
}

.author-hero-copy > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.author-hero-copy h1,
.author-hero-copy .eyebrow {
  position: relative;
  z-index: 1;
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 48px;
  align-items: stretch;
}

.author-card,
.wechat-card {
  height: 100%;
}

.author-card {
  padding: 38px 40px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.author-card h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.author-card p:not(.panel-eyebrow) {
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
}

.author-notes {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.author-notes-title {
  margin: 0 0 11px !important;
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 10.5px !important;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.author-notes > div {
  display: flex;
  gap: 12px;
  padding: 9px 0;
}

.author-notes > div + div {
  border-top: 1px dashed var(--line-soft);
}

.author-notes > div > span {
  color: var(--tomato);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.author-notes > div > p {
  margin: 0 !important;
  color: var(--ink-soft);
  font-size: 11px !important;
  line-height: 1.8 !important;
}

.author-notes strong {
  color: var(--ink);
  font-weight: 700;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.author-tags span {
  padding: 5px 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 9px;
}

.wechat-card {
  position: relative;
  padding: 27px;
  background: #f1e5d2;
  border: 1px solid rgba(154, 99, 56, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
}

.wechat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.wechat-card-head h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wechat-badge {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wechat-qr-wrap {
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 20px auto 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(154, 99, 56, 0.12);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(88, 61, 33, 0.08);
}

.wechat-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-card > p {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.wechat-card > small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
}

.wechat-card code {
  padding: 1px 4px;
  background: rgba(255, 253, 248, 0.7);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 8px;
}

.wechat-greet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
  padding: 8px 15px;
  color: var(--tomato);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(217, 84, 58, 0.2);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.wechat-greet svg {
  width: 12px;
  height: 12px;
}

.wechat-greet:hover {
  color: var(--cream);
  background: var(--tomato);
  transform: translateY(-1px);
}

.click-spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.author-blessing {
  padding: 12px 0 92px;
}

.author-blessing-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  padding: 50px 64px 44px;
  background:
    radial-gradient(circle at 100% 0%, rgba(228, 180, 90, 0.14), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(217, 84, 58, 0.08), transparent 40%),
    #f8efe1;
  border: 1px solid rgba(154, 99, 56, 0.12);
  border-radius: var(--radius-lg);
  text-align: center;
}

.author-blessing-mark {
  position: absolute;
  top: -20px;
  left: 28px;
  color: rgba(217, 84, 58, 0.13);
  font-family: var(--serif);
  font-size: 130px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.author-blessing-card .eyebrow {
  position: relative;
  z-index: 1;
  justify-content: center;
  color: var(--muted);
}

.author-blessing-text {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 31px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.95;
}

.author-blessing-text em {
  color: var(--tomato);
  font-style: normal;
}

.author-blessing-sign {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
}

/* ---------- About ---------- */
.about-hero {
  padding-bottom: 30px;
}

.about-hero h1 {
  max-width: 820px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.22;
  text-wrap: balance;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 90px;
  padding-top: 24px;
}

.about-copy {
  max-width: 680px;
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}

.about-copy .about-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.7;
}

.about-signature {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.about-signature span {
  margin-left: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-stat {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.about-stat strong {
  min-width: 72px;
  color: var(--tomato);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.about-stat span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.about-note {
  margin-top: 32px;
  padding: 20px;
  color: var(--ink-soft);
  background: #f0e5d2;
  border-radius: 16px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  transform: rotate(-1.5deg);
}

/* ---------- Not found ---------- */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.not-found > .container > p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.not-found .btn {
  margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  color: var(--cream);
  background: var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 70px;
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  padding: 66px 0 50px;
}

.brand-footer .brand-text strong {
  color: var(--cream);
}

.brand-footer .brand-text small {
  color: rgba(255, 249, 236, 0.38);
}

.footer-brand > p {
  max-width: 380px;
  margin-top: 22px;
  color: rgba(255, 249, 236, 0.48);
  font-size: 12px;
  line-height: 1.9;
}

.footer-stamp {
  display: inline-block;
  margin-top: 24px;
  padding: 9px 14px;
  color: rgba(255, 249, 236, 0.5);
  border: 1px dashed rgba(255, 249, 236, 0.22);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  transform: rotate(-2deg);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-links h4 {
  margin-bottom: 14px;
  color: rgba(255, 249, 236, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 249, 236, 0.72);
  font-size: 11.5px;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: var(--cream);
  transform: translateX(3px);
}

.footer-links p {
  color: rgba(255, 249, 236, 0.58);
  font-size: 12.5px;
  line-height: 1.9;
}

.footer-credit {
  margin-top: 12px;
}

.footer-credit span {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  padding: 18px 0;
  color: rgba(255, 249, 236, 0.25);
  border-top: 1px solid rgba(255, 249, 236, 0.08);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid rgba(255, 249, 236, 0.12);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(41, 36, 30, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--tomato);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  padding: 10vh 20px 30px;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 27, 21, 0.55);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease both;
}

.search-panel {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  max-height: 82vh;
  padding: 28px;
  overflow: auto;
  background: var(--paper-light);
  border-radius: 26px;
  box-shadow: 0 40px 100px rgba(20, 15, 9, 0.3);
  animation: modalIn 0.35s var(--ease) both;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-head h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 7px 7px 7px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s;
}

.search-form:focus-within {
  border-color: rgba(217, 84, 58, 0.4);
}

.search-form > svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
  flex: 0 0 auto;
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-form .btn {
  min-height: 42px;
  padding: 0 20px;
}

.search-body {
  margin-top: 22px;
}

.search-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.search-hot > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.search-hot button {
  padding: 4px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.search-hot button:hover {
  color: var(--tomato);
  border-color: rgba(217, 84, 58, 0.25);
  background: rgba(217, 84, 58, 0.04);
}

.search-result-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.search-results {
  min-height: 120px;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-top: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: background 0.2s;
}

.search-result-row:hover {
  background: rgba(255, 253, 248, 0.8);
}

.search-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--soft);
  border-radius: 12px;
  flex: 0 0 auto;
}

.search-result-icon .cat-icon {
  width: 32px;
  height: 32px;
}

.search-result-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-copy strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.search-result-copy small {
  color: var(--muted);
  font-size: 9.5px;
}

.search-result-arrow {
  margin-left: auto;
  color: var(--muted);
}

.search-result-arrow svg {
  width: 17px;
  height: 17px;
}

.search-empty {
  padding: 26px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.search-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 8.5px;
  text-align: center;
}

.search-foot kbd {
  padding: 1px 5px;
  background: var(--paper-deep);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 8px;
}

/* ---------- API modal ---------- */
.api-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5vh 20px;
  overflow: auto;
}

.api-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 27, 21, 0.64);
  backdrop-filter: blur(9px);
  animation: fadeIn 0.2s ease both;
}

.api-modal-panel {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper-light);
  border-radius: 26px;
  box-shadow: 0 40px 120px rgba(20, 15, 9, 0.35);
  animation: modalIn 0.35s var(--ease) both;
}

.api-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.api-modal-close:hover {
  background: var(--white);
  transform: rotate(90deg);
}

.api-modal-close svg {
  width: 18px;
  height: 18px;
}

.api-detail-loading,
.api-detail-error {
  padding: 56px;
}

.api-detail-loading h2,
.api-detail-error h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
}

.api-loading-line {
  height: 11px;
  margin-top: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--paper-deep) 25%, #f7f0e2 50%, var(--paper-deep) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

.api-loading-line.short {
  width: 60%;
}

.api-detail-error p:not(.panel-eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.api-detail-error .btn {
  margin-top: 24px;
}

.api-recipe-cover {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 26px 26px 0 0;
}

.api-recipe-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.api-recipe-cover .api-cover-fallback {
  height: 100%;
}

.api-recipe-cover > span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  padding: 5px 11px;
  color: var(--cream);
  background: rgba(41, 36, 30, 0.68);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.api-recipe-head {
  padding: 30px 40px 0;
}

.api-recipe-head h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.api-recipe-desc {
  max-width: 720px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
}

.api-desc-empty {
  color: var(--muted);
  font-style: italic;
}

.api-recipe-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  padding: 28px 40px 20px;
}

.api-ingredients {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  align-self: start;
}

.api-ingredients h3,
.api-steps h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.api-ingredients h3 span,
.api-steps h3 span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
}

.api-ingredients li {
  padding: 9px 0;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line-soft);
  font-size: 11px;
  line-height: 1.6;
}

.api-steps ol {
  margin-top: 4px;
}

.api-steps li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.api-step-copy {
  display: flex;
  gap: 12px;
}

.api-step-copy strong {
  color: var(--tomato);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}

.api-step-copy p {
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.85;
}

.api-step-img {
  width: 100%;
  max-width: 400px;
  margin: 10px 0 0 27px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 12px;
}

.api-step-img img {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.api-step-img figcaption {
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.9);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.api-step-noimg {
  display: inline-block;
  margin: 8px 0 0 27px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.api-recipe .api-disclaimer {
  margin: 0 40px;
  padding: 18px 0 26px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 8px;
}

/* UAPI 菜谱：备料 + 逐步做菜 */
.api-cook-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 38px;
  padding: 26px 40px 28px;
  align-items: start;
}

.api-cook-ingredients {
  position: sticky;
  top: 10px;
  z-index: 4;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.api-cook-ing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.api-cook-ing-head h3 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.api-cook-ing-head > span {
  color: var(--tomato);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.api-cook-ing-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.api-cook-ingredients ul {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.api-cook-ing {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
  transition: color 0.2s;
}

.api-cook-ing:hover {
  color: var(--tomato);
}

.api-cook-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: transparent;
  border: 1.4px solid rgba(41, 36, 30, 0.22);
  border-radius: 5px;
  flex: 0 0 auto;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.api-cook-check svg {
  width: 10px;
  height: 10px;
}

.api-cook-ing.is-done .api-cook-check {
  color: var(--cream);
  background: var(--sage);
  border-color: var(--sage);
}

.api-cook-ing.is-done > span:last-child {
  color: var(--muted);
}

.api-cook-ing-empty {
  padding: 12px 0;
  color: var(--muted);
  font-size: 10px;
}

.api-cook-ing-progress {
  height: 4px;
  margin-top: 15px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 99px;
}

.api-cook-ing-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), #9ab084);
  transition: width 0.35s var(--ease);
}

.api-cook-main {
  min-width: 0;
  padding: 4px 0;
}

.api-cook-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
  min-height: 58px;
  padding: 8px 0 10px;
  background: rgba(253, 249, 240, 0.96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  overflow-anchor: none;
}

.api-cook-toolbar > span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-cook-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.api-cook-toolbar .api-cook-prev,
.api-cook-toolbar .api-cook-next {
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 11.5px;
  line-height: 1;
}

.api-cook-toolbar .api-cook-prev {
  min-width: 92px;
}

.api-cook-toolbar .api-cook-next {
  min-width: 168px;
}

.api-cook-toolbar .api-cook-next {
  margin-left: 0;
  padding: 0 14px;
}

.api-step-pager {
  position: relative;
  min-height: 340px;
  padding-top: 6px;
  overflow-anchor: none;
}

.api-step-page {
  display: none;
  padding: 17px 0 4px;
}

.api-step-page.is-active {
  display: block;
}

.api-step-page.just-arrived {
  animation: apiPageRise 0.58s var(--ease) both;
}

.api-step-pager.is-leaving {
  animation: apiStageLeave 0.17s ease both;
}

@keyframes apiStageLeave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(7px); }
}

@keyframes apiPageRise {
  from { opacity: 0; transform: translateY(18px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.api-step-page-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.api-step-page-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.api-step-page-status.is-done {
  color: var(--sage);
}

.api-step-page-status svg {
  width: 11px;
  height: 11px;
}

.api-step-page-text {
  margin-top: 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.65;
}

.api-step-page-img {
  width: min(420px, 100%);
  margin-top: 18px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 14px;
}

.api-step-page-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

.api-step-page-img figcaption {
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.92);
  font-size: 8px;
}

.api-step-page-img.is-image-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.api-step-page-img.is-image-error img {
  display: none;
}

.api-step-page-img.is-image-error::after {
  content: "这一步图片暂时加载失败，可以继续下一步";
  padding: 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.api-step-page-img.is-image-error figcaption {
  display: none;
}

.api-step-guide {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(420px, 100%);
  margin-top: 18px;
  padding: 17px 18px;
  background:
    radial-gradient(circle at 8% 10%, rgba(228, 180, 90, 0.13), transparent 40%),
    rgba(255, 253, 248, 0.7);
  border: 1px dashed rgba(201, 150, 70, 0.4);
  border-radius: 14px;
}

.api-step-guide-art {
  position: relative;
  display: flex;
  flex: 0 0 82px;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  font-size: 34px;
  background: var(--white);
  border: 1px solid rgba(201, 150, 70, 0.18);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(88, 61, 33, 0.06);
}

.api-step-guide-art i {
  position: absolute;
  right: -10px;
  bottom: -5px;
  padding: 3px 7px;
  color: var(--cream);
  background: var(--tomato);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.api-step-guide-copy {
  min-width: 0;
}

.api-step-guide-copy strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
}

.api-step-guide-copy span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.api-step-guide-copy em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .api-step-guide {
    gap: 12px;
    padding: 14px;
  }

  .api-step-guide-art {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .api-step-guide-copy strong {
    font-size: 15px;
  }

  .api-step-guide-copy span {
    font-size: 11.5px;
  }
}

.api-step-strip {
  display: flex;
  gap: 6px;
  padding: 13px 0 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.api-step-thumb {
  position: relative;
  flex: 0 0 76px;
  height: 58px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 2px solid transparent;
  border-radius: 9px;
  opacity: 0.58;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.api-step-thumb:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.api-step-thumb.is-active {
  border-color: var(--tomato);
  opacity: 1;
}

.api-step-thumb.is-done {
  opacity: 0.85;
}

.api-step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.api-step-thumb-none {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 8px;
}

.api-step-thumb em {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 15px;
  padding: 0 4px;
  color: var(--cream);
  background: rgba(41, 36, 30, 0.68);
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
  backdrop-filter: blur(4px);
}

.api-step-thumb.is-active em {
  background: var(--tomato);
}

.api-real-steps {
  padding: 0 0 9px;
}

.api-real-step {
  padding: 21px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 58px;
}

.api-real-step:last-child {
  border-bottom: 0;
}

.api-real-step.is-active {
  padding-right: 12px;
  padding-left: 12px;
  margin-right: -12px;
  margin-left: -12px;
  background: rgba(217, 84, 58, 0.028);
  border-radius: 12px;
}

.api-real-step.just-arrived {
  animation: apiStepArrive 0.5s var(--ease) both;
}

@keyframes apiStepArrive {
  from { opacity: 0.55; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.api-real-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.api-real-step-head > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.api-real-step-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.25s;
}

.api-real-step-status.is-done,
.api-real-step-done {
  color: var(--sage);
}

.api-real-step-status svg,
.api-real-step-done svg {
  width: 11px;
  height: 11px;
}

.api-real-step-text {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.8;
}

.api-real-step-img {
  width: min(440px, 100%);
  margin-top: 12px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 12px;
}

.api-real-step-img img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
}

.api-real-step-img figcaption {
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.92);
  font-size: 8px;
}

.api-cook-gate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 290px;
  padding: 36px 6px;
}

.api-cook-gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  color: #a66b27;
  background: #fbf1dd;
  border: 1px solid rgba(201, 122, 37, 0.2);
  border-radius: 16px;
}

.api-cook-gate-icon svg {
  width: 24px;
  height: 24px;
}

.api-cook-gate h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.api-cook-gate > p:not(.panel-eyebrow) {
  max-width: 470px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.api-cook-gate strong {
  color: var(--tomato);
}

.api-cook-step-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.api-cook-step-text {
  margin-top: 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.6;
}

.api-cook-step-img {
  width: min(540px, 100%);
  margin-top: 20px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 15px;
}

.api-cook-step-img img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.api-cook-step-img figcaption {
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.92);
  font-size: 8px;
}

.api-cook-noimg {
  margin-left: 0;
  margin-top: 12px;
}

.api-cook-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.api-cook-prev,
.api-cook-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.api-cook-prev {
  padding: 0 14px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.api-cook-prev:hover:not(:disabled) {
  background: var(--white);
}

.api-cook-prev:disabled {
  opacity: 0.35;
}

.api-cook-prev svg,
.api-cook-next svg {
  width: 14px;
  height: 14px;
}

.api-cook-next {
  margin-left: auto;
  padding: 0 18px;
  color: var(--cream);
  background: var(--tomato);
  box-shadow: 0 8px 20px rgba(217, 84, 58, 0.2);
}

.api-cook-next:hover {
  background: var(--tomato-deep);
  transform: translateY(-1px);
}

.api-cook-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.api-cook-dots i {
  width: 5px;
  height: 5px;
  background: var(--line);
  border-radius: 50%;
}

.api-cook-dots i.is-current {
  width: 14px;
  background: var(--tomato);
  border-radius: 99px;
}

.api-cook-dots i.is-done {
  background: var(--sage);
}

.api-cook-finish {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 24px;
  overflow: hidden;
  text-align: center;
}

.api-cook-finish::before {
  content: "";
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 0;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(228, 180, 90, 0.16), rgba(217, 84, 58, 0.04) 42%, transparent 68%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: celebrationGlow 3.2s ease-in-out infinite;
}

.api-cook-finish .cook-confetti {
  z-index: 2;
}

@keyframes celebrationGlow {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.api-cook-finish-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--cream);
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(93, 116, 89, 0.08), 0 16px 36px rgba(74, 96, 70, 0.16);
  animation: finishPop 0.7s var(--ease) both;
}

.api-cook-finish-icon::after {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed rgba(93, 116, 89, 0.32);
  border-radius: 50%;
  animation: finishRing 3s linear infinite;
}

.api-cook-finish-icon svg {
  width: 27px;
  height: 27px;
}

.api-cook-finish h3 {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.15;
  animation: finishPop 0.7s 0.08s var(--ease) both;
}

.api-cook-finish > p,
.api-cook-finish-actions {
  position: relative;
  z-index: 1;
}

.api-cook-congrats {
  margin-top: 10px !important;
  color: var(--tomato) !important;
  font-family: var(--serif);
  font-size: 17px !important;
  font-weight: 700;
  animation: fadeUp 0.6s 0.18s var(--ease) both;
}

.api-finish-sparkle {
  position: absolute;
  z-index: 0;
  color: var(--gold);
  font-size: 21px;
  animation: sparkleTwinkle 1.9s ease-in-out infinite;
}

.api-finish-sparkle.s1 {
  top: 18%;
  left: 27%;
  font-size: 25px;
}

.api-finish-sparkle.s2 {
  top: 26%;
  right: 27%;
  font-size: 17px;
  animation-delay: 0.35s;
}

.api-finish-sparkle.s3 {
  bottom: 26%;
  left: 33%;
  color: var(--tomato);
  font-size: 13px;
  animation-delay: 0.7s;
}

.api-finish-sparkle.s4 {
  top: 38%;
  right: 34%;
  color: var(--tomato);
  font-size: 11px;
  animation-delay: 0.95s;
}

.api-finish-sparkle.s5 {
  bottom: 22%;
  right: 27%;
  font-size: 19px;
  animation-delay: 1.15s;
}

.api-finish-sparkle.s6 {
  top: 56%;
  left: 24%;
  font-size: 10px;
  animation-delay: 0.5s;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.65) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1.18) rotate(18deg); }
}

@keyframes finishRing {
  from { transform: rotate(0deg) scale(0.92); opacity: 0.7; }
  to { transform: rotate(360deg) scale(0.92); opacity: 0.2; }
}

.api-cook-finish > p:not(.panel-eyebrow) {
  max-width: 420px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.api-cook-finish-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.api-cook-finish-actions .btn {
  min-height: 43px;
  padding: 0 17px;
  font-size: 10px;
}

/* ---------- Cook mode ---------- */
.cook-mode {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.cook-mode-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 16, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.25s ease both;
}

.cook-mode-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1160px, 100%);
  height: min(830px, calc(100vh - 56px));
  overflow: hidden;
  background: var(--paper-light);
  border-radius: 30px;
  box-shadow: 0 45px 120px rgba(15, 10, 6, 0.42);
  animation: modalIn 0.4s var(--ease) both;
}

#cookContent {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.cook-topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 25px;
  border-bottom: 1px solid var(--line-soft);
}

.cook-top-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.cook-exit,
.cook-side-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: 0 0 auto;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.cook-exit:hover,
.cook-side-close:hover {
  color: var(--cream);
  background: var(--tomato);
  border-color: var(--tomato);
  transform: rotate(90deg);
}

.cook-exit svg,
.cook-side-close svg {
  width: 17px;
  height: 17px;
}

.cook-brandline {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.cook-brandline span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.cook-brandline strong {
  margin-top: 2px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cook-top-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
}

.cook-step-count {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cook-step-count strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.cook-step-count i {
  margin: 0 4px;
  color: var(--muted);
  font-style: normal;
  opacity: 0.5;
}

.cook-ing-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.cook-ing-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--sage);
}

.cook-progress {
  flex: 0 0 auto;
  height: 4px;
  overflow: hidden;
  background: var(--paper-deep);
}

.cook-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tomato), var(--gold));
  transition: width 0.5s var(--ease);
}

.cook-body {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 0;
}

.cook-side {
  padding: 26px 23px;
  overflow-y: auto;
  background: rgba(255, 253, 248, 0.52);
  border-right: 1px solid var(--line-soft);
}

.cook-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cook-side-head p {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cook-side-head h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.cook-side-close {
  display: none;
  width: 32px;
  height: 32px;
}

.cook-side-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.cook-ing-list {
  margin-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.cook-ing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  text-align: left;
  font-size: 11px;
  transition: color 0.2s;
}

.cook-ing-row:hover {
  color: var(--tomato);
}

.cook-ing-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  color: transparent;
  border: 1.4px solid rgba(41, 36, 30, 0.22);
  border-radius: 5px;
  flex: 0 0 auto;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cook-ing-check svg {
  width: 10px;
  height: 10px;
}

.cook-ing-row em {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.cook-ing-row.is-done .cook-ing-check {
  color: var(--cream);
  background: var(--sage);
  border-color: var(--sage);
}

.cook-ing-row.is-done > span:nth-child(2) {
  color: var(--muted);
}

/* 食材备齐后，只在食材文字上画一条柔和斜杠 */
.ingredient-name,
.api-cook-ing > span:nth-child(2),
.cook-ing-row > span:nth-child(2) {
  position: relative;
  display: inline-block;
}

.ingredient-name::after,
.api-cook-ing > span:nth-child(2)::after,
.cook-ing-row > span:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1.8px),
    rgba(0, 0, 0, 0.82) calc(50% - 0.9px),
    rgba(0, 0, 0, 0.82) calc(50% + 0.9px),
    transparent calc(50% + 1.8px)
  );
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ingredient-row.is-done .ingredient-name::after,
.api-cook-ing.is-done > span:nth-child(2)::after,
.cook-ing-row.is-done > span:nth-child(2)::after {
  clip-path: inset(0 0 0 0);
}

.ingredient-row.just-checked .ingredient-name::after,
.api-cook-ing.is-done.just-checked > span:nth-child(2)::after,
.cook-ing-row.just-checked > span:nth-child(2)::after {
  animation: drawDiagonalSlash 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes drawDiagonalSlash {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.cook-side-progress {
  margin-top: 17px;
}

.cook-side-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8.5px;
}

.cook-side-progress strong {
  color: var(--ink);
  font-size: 9px;
}

.cook-side-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 18px;
  padding: 10px;
  background: #f0f3e9;
  border-radius: 10px;
}

.cook-side-tip svg {
  width: 14px;
  height: 14px;
  color: var(--sage);
  flex: 0 0 auto;
}

.cook-side-tip p {
  color: #6a7a60;
  font-size: 8.5px;
  line-height: 1.6;
}

.cook-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 28px 44px 22px;
  overflow: hidden;
}

.cook-step-watermark {
  position: absolute;
  right: 22px;
  bottom: -34px;
  z-index: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 230px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.035;
  pointer-events: none;
}

.cook-step-meta,
.cook-step-scroll,
.cook-controls {
  position: relative;
  z-index: 1;
}

.cook-step-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cook-step-meta > span:last-child {
  color: var(--muted);
}

.cook-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  color: var(--sage-deep);
  background: #eaf0e2;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.02em;
}

.cook-done-badge svg {
  width: 11px;
  height: 11px;
}

.cook-step-scroll {
  flex: 1;
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
}

.cook-step-scroll h2 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.22;
  text-wrap: balance;
  outline: none;
}

.cook-step-text {
  max-width: 720px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
}

.cook-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin-top: 28px;
  padding: 15px 17px;
  background: #f5eee0;
  border: 1px solid transparent;
  border-radius: 17px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.cook-timer.is-active {
  background: #fbf0e8;
  border-color: rgba(217, 84, 58, 0.17);
}

.cook-timer.is-running {
  box-shadow: 0 0 0 3px rgba(217, 84, 58, 0.06);
}

.cook-timer.is-static {
  background: transparent;
  border: 1px dashed var(--line);
}

.cook-timer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--tomato);
  background: rgba(255, 253, 248, 0.7);
  border-radius: 13px;
  flex: 0 0 auto;
}

.cook-timer-icon svg {
  width: 21px;
  height: 21px;
}

.cook-timer-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.cook-timer-copy span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.cook-timer-copy strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1;
}

.cook-timer-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.cook-timer.is-static .cook-timer-copy strong {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.cook-timer-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.cook-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--cream);
  background: var(--tomato);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.cook-timer-btn:hover {
  background: var(--tomato-deep);
  transform: translateY(-1px);
}

.cook-timer-btn svg {
  width: 12px;
  height: 12px;
}

.cook-timer-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.cook-timer-reset:hover {
  color: var(--tomato);
  border-color: rgba(217, 84, 58, 0.35);
}

.cook-timer-reset svg {
  width: 13px;
  height: 13px;
}

.cook-use {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 20px;
}

.cook-use-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cook-use-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cook-use-chips span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 9px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 9px;
}

.cook-use-chips em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.cook-step-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 620px;
  margin-top: 23px;
  padding-top: 15px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.cook-step-note svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex: 0 0 auto;
}

.cook-step-note p {
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
}

.cook-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}

.cook-prev,
.cook-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 47px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}

.cook-prev {
  padding: 0 17px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.cook-prev:hover:not(:disabled) {
  background: var(--white);
}

.cook-prev:disabled {
  opacity: 0.35;
}

.cook-prev svg {
  width: 15px;
  height: 15px;
}

.cook-next {
  min-width: 156px;
  margin-left: auto;
  padding: 0 21px;
  color: var(--cream);
  background: var(--tomato);
  box-shadow: 0 10px 24px rgba(217, 84, 58, 0.22);
}

.cook-next:hover {
  background: var(--tomato-deep);
  transform: translateY(-2px);
}

.cook-next svg {
  width: 15px;
  height: 15px;
}

.cook-key-hint {
  color: var(--muted);
  font-size: 8px;
  opacity: 0.7;
}

/* Cook finish */
.cook-finish {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 45px 28px;
  overflow: hidden;
  text-align: center;
}

.cook-finish-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  color: var(--cream);
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(93, 116, 89, 0.08), 0 18px 40px rgba(74, 96, 70, 0.18);
  animation: finishPop 0.7s var(--ease) both;
}

.cook-finish-mark svg {
  width: 35px;
  height: 35px;
}

.cook-finish-eyebrow {
  margin-top: 25px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.cook-finish h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(55px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
  outline: none;
}

.cook-finish-desc {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.cook-finish-stats {
  display: flex;
  gap: 36px;
  margin-top: 26px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cook-finish-stats div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.cook-finish-stats strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.cook-finish-stats span {
  color: var(--muted);
  font-size: 9px;
}

.cook-finish-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.cook-finish-actions .btn {
  min-height: 46px;
  padding: 0 20px;
  font-size: 11px;
}

.cook-finish-actions .fav-btn.is-active {
  color: var(--tomato);
  border-color: rgba(217, 84, 58, 0.3);
  background: rgba(217, 84, 58, 0.05);
}

.cook-finish-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
}

.cook-finish-note svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.cook-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cook-confetti i {
  position: absolute;
  top: 68%;
  z-index: 2;
  width: 7px;
  height: 15px;
  background: var(--c);
  border-radius: 2px;
  opacity: 0;
  animation: confettiRise var(--du, 2.8s) var(--ease) forwards;
  animation-delay: calc(var(--d) + 0.2s);
}

@keyframes confettiRise {
  0% { opacity: 0; transform: translate(0, 22px) rotate(0deg); }
  12% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), -290px) rotate(var(--r)); }
}

@keyframes finishPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Toast / heart burst ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 40px);
  padding: 11px 18px;
  color: var(--cream);
  background: rgba(41, 36, 30, 0.94);
  border: 1px solid rgba(255, 249, 236, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(20, 15, 9, 0.25);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  backdrop-filter: blur(8px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex: 0 0 auto;
}

.heart-burst {
  position: fixed;
  z-index: 210;
  color: var(--tomato);
  font-size: 13px;
  pointer-events: none;
  animation: heartBurst 0.8s ease-out forwards;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLine {
  from { opacity: 0; transform: translateY(100%) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes heroScene {
  from { opacity: 0; transform: scale(0.96) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes steamRise {
  0%, 100% { opacity: 0.25; translate: 0 6px; }
  40% { opacity: 0.85; translate: 0 -6px; }
  70% { opacity: 0.45; translate: 0 -10px; }
}

@keyframes ingredientFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -10px; rotate: 2deg; }
}

@keyframes noteFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -7px; rotate: -1deg; }
}

@keyframes badgeFloat {
  0%, 100% { translate: 0 0; rotate: -3deg; }
  50% { translate: 0 7px; rotate: 3deg; }
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(143, 186, 125, 0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 0 5px rgba(143, 186, 125, 0); }
}

@keyframes heartBurst {
  0% { opacity: 1; transform: translate(0, 0) scale(0.7); }
  100% { opacity: 0; transform: translate(var(--dx, 0), -46px) scale(1.2); }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-inner {
    gap: 20px;
  }
  .hero-title {
    font-size: clamp(46px, 5.4vw, 70px);
  }
  .hero-visual {
    min-height: 500px;
  }
  .hero-caption {
    left: -4px;
  }
  .hero-stats {
    gap: 28px;
  }
  .recipe-grid {
    gap: 20px;
  }
  .learning-card {
    padding: 48px 42px;
    gap: 32px;
  }
  .learning-steps {
    gap: 0;
  }
  .learning-step {
    padding: 8px 15px 14px;
  }
  .cook-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 1020px) {
  :root {
    --header-h: 76px;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 79;
    display: block;
    max-height: calc(100vh - var(--header-h));
    padding: 22px 32px 28px;
    overflow: auto;
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(41, 36, 30, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .mobile-menu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
  }
  .mobile-menu > a span {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.12em;
  }
  .mobile-menu-label {
    margin-top: 22px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
  }
  .mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
  }
  .mobile-cats a {
    padding: 7px 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
  }
  .mobile-menu-note {
    margin-top: 14px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 13px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero-copy {
    max-width: 700px;
    padding-bottom: 10px;
  }
  .hero-title {
    font-size: clamp(48px, 8vw, 78px);
  }
  .hero-slot-1 {
    right: 4%;
  }
  .hero-slot-2,
  .hero-slot-5 {
    display: none;
  }
  .hero-slot-4 {
    right: 0;
  }
  .heading-doodle.hd-slot-4,
  .heading-doodle.hd-slot-5 {
    display: none;
  }
  .hero-lead {
    max-width: 560px;
  }
  .hero-visual {
    width: min(650px, 100%);
    min-height: auto;
    margin: 0 auto;
  }
  .hero-scroll {
    display: none;
  }
  .hero-caption {
    left: 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card,
  .category-card:nth-child(1),
  .category-card:nth-child(2),
  .category-card:nth-child(3),
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    grid-column: span 1;
    min-height: 220px;
  }
  .category-card:last-child {
    grid-column: span 1;
    min-height: 220px;
  }

  .learning-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .learning-copy > p:not(.eyebrow) {
    max-width: 520px;
  }
  .learning-step {
    padding-left: 20px;
  }

  .inspiration-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .uapi-grid,
  .uapi-grid.local,
  .live-search-panel .uapi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .uapi-loading {
    grid-template-columns: repeat(3, 1fr);
  }
  .live-search-panel {
    padding: 26px 24px 20px;
  }
  .live-search-head {
    flex-direction: column;
    gap: 10px;
  }
  .live-search-head h2 {
    font-size: 26px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .detail-art-wrap {
    max-width: 720px;
  }
  .detail-info {
    max-width: 720px;
  }
  .cook-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .ingredients-panel {
    position: static;
  }
  .detail-end-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .related-section .recipe-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-hero-inner {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 24px;
  }
  .category-hero-icon {
    width: 90px;
    height: 90px;
  }
  .category-hero-icon .cat-icon {
    width: 58px;
    height: 58px;
  }
  .other-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-aside {
    max-width: 560px;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 44px);
  }
  .header-inner {
    width: calc(100% - 44px);
    gap: 14px;
  }
  .search-hint {
    display: none;
  }
  .search-trigger {
    width: 42px;
    padding: 0;
    border-radius: 50%;
  }
  .hero-inner {
    width: calc(100% - 44px);
  }
  .hero-title {
    font-size: clamp(44px, 10vw, 68px);
  }
  .recipe-grid,
  .recipe-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .related-section .recipe-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 30px;
  }
  .section-head h2 {
    font-size: 34px;
  }
  .list-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .list-hero-desc {
    max-width: 540px;
    padding-bottom: 0;
  }
  .list-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .inline-search {
    width: 100%;
  }
  .favorites-hero-inner {
    align-items: flex-start;
  }
  .favorites-count {
    width: 94px;
    height: 94px;
  }
  .favorites-count strong {
    font-size: 27px;
  }
  .footer-links {
    gap: 20px;
  }
  .category-hero-inner {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .category-hero-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }
  .category-hero-icon .cat-icon {
    width: 52px;
    height: 52px;
  }
  .category-hero-stamp {
    display: none;
  }
  .category-hero-copy h1 {
    font-size: 48px;
  }
  .inspiration-card {
    padding: 40px 32px 32px;
  }
  .learning-card {
    padding: 40px 32px;
  }
  .uapi-grid,
  .uapi-grid.local {
    grid-template-columns: repeat(2, 1fr);
  }
  .uapi-loading {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-overlay {
    padding-top: 6vh;
  }
  .api-recipe-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 26px 16px;
  }
  .api-cook-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 26px 20px;
  }
  .api-cook-main {
    padding: 0;
  }
  .api-cook-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
    height: auto;
    min-height: 0;
  }
  .api-cook-toolbar-actions {
    width: 100%;
  }
  .api-cook-toolbar .api-cook-prev,
  .api-cook-toolbar .api-cook-next {
    height: 44px;
    min-height: 44px;
  }
  .api-cook-toolbar .api-cook-next {
    flex: 1;
  }
  .api-step-thumb {
    flex-basis: 68px;
    height: 54px;
  }
  .api-step-page-text {
    font-size: 25px;
  }
  .api-step-page-img {
    max-width: 100%;
  }
  .api-real-step-text {
    font-size: 18px;
  }
  .api-cook-step-text {
    font-size: 23px;
  }
  .api-recipe-head {
    padding: 24px 26px 0;
  }
  .api-recipe .api-disclaimer {
    margin: 0 26px;
  }
  .api-recipe-cover {
    height: 240px;
  }
  .api-detail-loading,
  .api-detail-error {
    padding: 40px 26px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 68px;
    --radius-xl: 26px;
    --radius-lg: 22px;
  }
  body {
    font-size: 15px;
  }
  .container {
    width: calc(100% - 36px);
  }
  .header-inner {
    width: calc(100% - 36px);
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-text strong {
    font-size: 22px;
  }
  .brand-text small {
    font-size: 7px;
  }
  .fav-count {
    width: 38px;
    height: 38px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .search-trigger {
    width: 38px;
    height: 38px;
  }
  .mobile-menu {
    padding: 18px 18px 24px;
  }
  .hero {
    padding-top: 38px;
  }
  .hero-inner {
    width: calc(100% - 36px);
  }
  .hero-title {
    font-size: clamp(38px, 11.4vw, 56px);
    letter-spacing: -0.05em;
    line-height: 1.18;
  }
  .hero-slot-1 {
    top: 6px;
    right: -2px;
    width: 36px;
    opacity: 0.85;
  }
  .hero-slot-2,
  .hero-slot-4,
  .hero-slot-5 {
    display: none;
  }
  .hero-slot-3 {
    top: 4px;
    right: 25%;
    width: 31px;
    opacity: 0.8;
  }
  .hero-doodle-star {
    top: auto;
    right: 6%;
    bottom: 4px;
    font-size: 16px;
  }
  .hero-dish-photo {
    width: 210px;
    height: 130px;
  }
  .heading-doodle.hd-slot-1 {
    top: -16px;
    right: 2%;
    width: 32px;
  }
  .heading-doodle.hd-slot-2,
  .heading-doodle.hd-slot-3,
  .heading-doodle.hd-slot-4,
  .heading-doodle.hd-slot-5,
  .heading-doodle.hd-star {
    display: none;
  }
  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 9px;
  }
  .hero-lead {
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.85;
  }
  .hero-search {
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 8px;
    border-radius: 20px;
  }
  .hero-search > svg {
    margin-left: 5px;
  }
  .hero-search input {
    height: 38px;
    font-size: 11.5px;
  }
  .hero-search .btn {
    width: 100%;
    min-height: 43px;
  }
  .hero-quick {
    gap: 5px;
    margin-top: 9px;
  }
  .hero-actions {
    margin-top: 18px;
    gap: 9px;
  }
  .hero-actions .btn {
    min-height: 48px;
    padding: 0 20px;
    font-size: 12.5px;
  }
  .hero-stats {
    gap: 20px;
    margin-top: 32px;
    padding-top: 17px;
  }
  .hero-stats strong {
    font-size: 24px;
  }
  .hero-stats span {
    font-size: 9px;
  }
  .hero-visual {
    margin-top: 6px;
  }
  .hero-caption {
    left: 0;
    bottom: 18px;
    width: 78%;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 14px;
  }
  .hero-caption strong {
    font-size: 13px;
  }
  .hero-caption small {
    display: none;
  }
  .hero-caption-link {
    width: 28px;
    height: 28px;
  }
  .hero-dice {
    right: 0;
    bottom: -10px;
    padding: 7px 11px;
    font-size: 9.5px;
  }
  .ticker {
    padding: 11px 0;
  }
  .ticker-track span {
    font-size: 12px;
  }
  .section {
    padding: 52px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
  }
  .section-head h2 {
    font-size: 30px;
  }
  .section-desc {
    font-size: 12px;
  }
  .section-action {
    padding-bottom: 0;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-card,
  .category-card:last-child {
    grid-column: span 1;
    min-height: 180px;
    padding: 20px;
    border-radius: 20px;
  }
  .category-card::after {
    left: 20px;
    right: 20px;
    bottom: 52px;
  }
  .category-icon-wrap {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 16px;
  }
  .cat-icon {
    width: 38px;
    height: 38px;
  }
  .category-copy strong {
    font-size: 22px;
  }
  .category-foot {
    padding-top: 14px;
  }
  .recipe-grid,
  .recipe-grid.three,
  .related-section .recipe-grid.three {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .card-content {
    padding: 17px 18px 15px;
  }
  .card-content h3 {
    font-size: 22px;
  }
  .more-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    text-align: center;
  }
  .learning-section,
  .inspiration-section {
    padding-top: 44px;
  }
  .learning-card {
    padding: 32px 22px;
    border-radius: 24px;
  }
  .learning-copy h2 {
    font-size: 32px;
  }
  .learning-steps {
    grid-template-columns: 1fr;
  }
  .learning-step {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 249, 236, 0.12);
  }
  .learning-step:first-child {
    border-top: 0;
  }
  .step-icon {
    width: 40px;
    height: 40px;
    margin-top: 12px;
  }
  .learning-step h3 {
    margin-top: 12px;
  }
  .inspiration-card {
    padding: 30px 20px 24px;
    border-radius: 24px;
  }
  .inspiration-head h2 {
    font-size: 32px;
  }
  .uapi-search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 7px;
    border-radius: 20px;
  }
  .uapi-search-form input {
    height: 44px;
    padding: 0 12px;
  }
  .uapi-search-form .btn {
    width: 100%;
  }
  .uapi-hot {
    gap: 5px;
  }
  .uapi-grid,
  .uapi-grid.local {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .uapi-loading {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .uapi-card-body strong {
    font-size: 12.5px;
  }
  .uapi-placeholder {
    min-height: 76px;
    padding: 0 14px;
    text-align: center;
  }
  .uapi-placeholder p {
    font-size: 10px;
  }
  .quote-section {
    padding-top: 30px;
    padding-bottom: 60px;
  }
  .quote-card {
    padding: 46px 20px 44px;
    border-radius: 24px;
  }
  .quote-card blockquote {
    font-size: 26px;
  }
  .quote-sparkle {
    display: none;
  }
  .page-hero {
    padding-top: 30px;
    padding-bottom: 40px;
  }
  .breadcrumb {
    margin-bottom: 28px;
    font-size: 9px;
  }
  .list-hero-content h1 {
    font-size: 42px;
  }
  .list-toolbar {
    gap: 14px;
    margin-bottom: 18px;
  }
  .filter-tabs {
    gap: 5px;
  }
  .filter-tab {
    min-height: 34px;
    padding: 0 11px;
    font-size: 10.5px;
  }
  .inline-search {
    min-width: 0;
    height: 40px;
  }
  .list-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 16px;
  }
  .list-meta-note {
    font-size: 9px;
  }
  .category-page-hero .breadcrumb {
    margin-bottom: 24px;
  }
  .category-hero-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .category-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  .category-hero-icon .cat-icon {
    width: 42px;
    height: 42px;
  }
  .category-hero-copy h1 {
    font-size: 42px;
  }
  .category-hero-copy > p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 12px;
  }
  .other-cats {
    margin-top: 44px;
  }
  .other-cats-grid {
    grid-template-columns: 1fr;
  }
  .mini-cat {
    min-height: 130px;
  }
  .favorites-hero-inner {
    flex-direction: column;
    gap: 24px;
  }
  .favorites-count {
    width: 80px;
    height: 80px;
    transform: rotate(-4deg);
  }
  .favorites-count strong {
    font-size: 24px;
  }
  .favorites-hero h1 {
    font-size: 42px;
  }
  .detail-breadcrumb {
    margin-bottom: 20px;
  }
  .detail-art-stamp {
    right: 8px;
    bottom: 12px;
    width: 68px;
    height: 68px;
    font-size: 6px;
  }
  .detail-art-note {
    left: 12px;
    bottom: 12px;
    font-size: 8px;
  }
  .detail-info h1 {
    font-size: 48px;
  }
  .detail-subtitle {
    font-size: 16px;
  }
  .detail-desc {
    font-size: 12px;
  }
  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 8px;
  }
  .detail-actions .btn {
    width: 100%;
  }
  .round-action {
    flex: 1;
    justify-content: center;
  }
  .detail-hero {
    padding-bottom: 40px;
  }
  .cook-layout {
    padding-top: 36px;
  }
  .ingredients-panel {
    padding: 20px;
  }
  .panel-top h2,
  .steps-head h2 {
    font-size: 26px;
  }
  .serving-stepper span {
    padding: 0 3px;
  }
  .prep-gate {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 14px;
    border-radius: 15px;
  }
  .prep-gate-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .prep-gate-copy {
    flex: 1;
    min-width: calc(100% - 56px);
  }
  .prep-gate-copy h3 {
    font-size: 16px;
  }
  .prep-gate-btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .steps-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .steps-progress-wrap {
    align-items: flex-start;
  }
  .progress-track.small {
    width: 100%;
    max-width: 220px;
  }
  .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }
  .step-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .step-body h3 {
    font-size: 18px;
  }
  .step-body p {
    font-size: 12px;
  }
  .step-media,
  .cook-step-media {
    margin-top: 11px;
    border-radius: 12px;
  }
  .step-media img {
    aspect-ratio: 16 / 9;
  }
  .cook-step-media img {
    max-height: 165px;
  }
  .step-media figcaption,
  .cook-step-media figcaption {
    padding: 6px 9px;
    font-size: 7.5px;
  }
  .live-search-panel {
    margin-bottom: 34px;
    padding: 22px 16px 17px;
    border-radius: 20px;
  }
  .live-search-head h2 {
    font-size: 24px;
  }
  .live-search-head p:not(.eyebrow) {
    font-size: 9.5px;
  }
  .live-search-panel .uapi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .search-local-head h2 {
    font-size: 25px;
  }
  .search-cuisine-row {
    gap: 5px;
  }
  .detail-end-actions {
    padding: 22px;
  }
  .detail-end-actions h3 {
    font-size: 19px;
  }
  .detail-end-actions > div:last-child {
    flex-direction: column;
    width: 100%;
  }
  .detail-end-actions .btn {
    flex: none;
    width: 100%;
    justify-content: center;
  }
  .related-section {
    padding: 48px 0 60px;
  }
  .about-copy .about-lead {
    font-size: 21px;
  }
  .about-copy p {
    font-size: 13.5px;
  }
  .about-stat strong {
    font-size: 34px;
  }
  .footer-top {
    width: calc(100% - 36px);
    padding: 44px 0 36px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links > div:last-child {
    grid-column: span 2;
    margin-top: 6px;
  }
  .footer-bottom {
    width: calc(100% - 36px);
    flex-direction: column;
    gap: 6px;
    padding: 15px 0;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  .search-overlay {
    padding: 3vh 10px 16px;
  }
  .search-panel {
    padding: 20px;
    border-radius: 20px;
    max-height: 90vh;
  }
  .search-head h2 {
    font-size: 23px;
  }
  .search-form {
    padding-left: 13px;
  }
  .search-form .btn {
    padding: 0 14px;
    font-size: 11px;
  }
  .search-result-icon {
    width: 40px;
    height: 40px;
  }
  .api-modal {
    padding: 3vh 10px;
  }
  .api-modal-panel {
    border-radius: 20px;
    max-height: 92vh;
  }
  .api-recipe-cover {
    height: 190px;
    border-radius: 20px 20px 0 0;
  }
  .api-recipe-head {
    padding: 20px 20px 0;
  }
  .api-recipe-head h2 {
    font-size: 30px;
  }
  .api-recipe-grid {
    padding: 20px 20px 14px;
  }
  .api-cook-layout {
    gap: 16px;
    padding: 18px 20px 18px;
  }
  .api-cook-ingredients {
    position: static;
    padding: 16px;
    border-radius: 15px;
  }
  .api-cook-ing-head h3 {
    font-size: 21px;
  }
  .api-cook-gate {
    min-height: 0;
    padding: 24px 0 8px;
  }
  .api-cook-gate h3 {
    font-size: 24px;
  }
  .api-cook-step-text {
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.75;
  }
  .api-step-pager {
    min-height: 280px;
  }
  .api-step-page {
    padding-top: 13px;
  }
  .api-step-page-text {
    margin-top: 16px;
    font-size: 21px;
    line-height: 1.75;
  }
  .api-step-page-img {
    margin-top: 14px;
    border-radius: 11px;
  }
  .api-step-page-img img {
    height: auto;
  }
  .api-real-step {
    padding: 17px 0;
  }
  .api-real-step.is-active {
    padding-right: 8px;
    padding-left: 8px;
    margin-right: -8px;
    margin-left: -8px;
  }
  .api-real-step-text {
    font-size: 16.5px;
    line-height: 1.8;
  }
  .api-real-step-img {
    margin-top: 10px;
    border-radius: 10px;
  }
  .api-real-step-img img {
    max-height: 235px;
  }
  .api-step-strip {
    gap: 5px;
  }
  .api-step-thumb {
    flex-basis: 62px;
    height: 50px;
  }
  .api-cook-step-img {
    margin-top: 14px;
    border-radius: 12px;
  }
  .api-cook-step-img img {
    max-height: 250px;
  }
  .api-cook-nav {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
  }
  .api-cook-dots {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 2px;
  }
  .api-cook-next {
    flex: 1;
    margin-left: 0;
    padding: 0 12px;
  }
  .api-cook-prev {
    padding: 0 11px;
  }
  .api-cook-finish {
    min-height: 0;
    padding: 26px 0;
  }
  .api-cook-finish h3 {
    font-size: 42px;
  }
  .api-recipe .api-disclaimer {
    margin: 0 20px;
  }
  .toast {
    bottom: 20px;
    padding: 9px 14px;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .cook-mode {
    padding: 0;
  }
  .cook-mode-panel {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
  .cook-topbar {
    padding: 12px 16px;
  }
  .cook-brandline strong {
    font-size: 16px;
  }
  .cook-ing-toggle {
    display: inline-flex;
  }
  .cook-body {
    display: block;
  }
  .cook-side {
    display: none;
  }
  .cook-side.is-open {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    padding: 22px 20px;
    overflow-y: auto;
    background: var(--paper-light);
  }
  .cook-side-close {
    display: inline-flex;
  }
  .cook-main {
    height: 100%;
    padding: 20px 20px 14px;
  }
  .cook-step-scroll h2 {
    margin-top: 18px;
    font-size: 36px;
  }
  .cook-step-text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.95;
  }
  .cook-timer {
    margin-top: 22px;
    padding: 12px 14px;
  }
  .cook-timer-copy strong {
    font-size: 23px;
  }
  .cook-step-note {
    margin-top: 18px;
  }
  .cook-controls {
    padding-top: 15px;
  }
  .cook-key-hint {
    display: none;
  }
  .cook-next {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    font-size: 10px;
  }
  .cook-prev {
    padding: 0 13px;
    font-size: 10px;
  }
  .cook-finish {
    padding: 35px 20px;
  }
  .cook-finish-stats {
    gap: 22px;
  }
  .cook-finish-actions {
    flex-direction: column;
    width: min(360px, 100%);
  }
  .cook-finish-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cook-brandline span {
    font-size: 7px;
  }
  .cook-brandline strong {
    font-size: 15px;
  }
  .cook-step-count {
    font-size: 9px;
  }
  .cook-step-count strong {
    font-size: 17px;
  }
  .cook-step-meta {
    font-size: 7px;
  }
  .cook-timer-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .cook-timer-btn {
    padding: 0 10px;
  }
  .cook-timer-btn span {
    display: none;
  }
  .cook-timer-copy small {
    display: none;
  }
  .cook-finish-mark {
    width: 68px;
    height: 68px;
  }
  .cook-finish-mark svg {
    width: 28px;
    height: 28px;
  }
  .cook-finish h2 {
    font-size: 60px;
  }
  .cook-finish-stats {
    gap: 16px;
  }
  .cook-finish-stats strong {
    font-size: 21px;
  }
  .cook-finish-stats span {
    font-size: 8px;
  }
  .cook-finish-note {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .author-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .wechat-card {
    max-width: 520px;
  }
  .login-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .login-doodle {
    display: none;
  }
  .login-intro-lead {
    max-width: 560px;
  }
  .builder-result-list,
  .builder-web-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .builder-card {
    padding: 24px 18px;
  }
  .builder-head h2 {
    font-size: 25px;
  }
  .builder-group {
    flex-direction: column;
    gap: 8px;
  }
  .builder-label {
    flex-basis: auto;
    padding-top: 0;
  }
  .builder-custom {
    flex-direction: column;
    gap: 8px;
  }
  .builder-custom-input {
    width: 100%;
  }
  .builder-actions > span {
    width: 100%;
    margin-left: 0;
  }
  .builder-result-list,
  .builder-web-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-login {
    display: none;
  }
  .login-page {
    padding: 34px 0 62px;
  }
  .login-intro h1 {
    font-size: 42px;
  }
  .login-intro-lead {
    margin-top: 13px;
    font-size: 12px;
  }
  .login-card {
    padding: 25px 20px 23px;
    border-radius: 20px;
  }
  .login-card h2 {
    font-size: 27px;
  }
  .save-password-prompt {
    top: 72px;
    gap: 8px;
  }
  .save-password-actions button {
    padding: 6px 8px;
  }
  .social-btn {
    padding: 11px 5px 10px;
    border-radius: 11px;
  }
  .social-logo {
    width: 25px;
    height: 25px;
  }
  .code-btn {
    padding: 0 9px;
    font-size: 8px;
  }
}

@media (max-width: 600px) {
  .author-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .author-avatar {
    width: 96px;
    height: 96px;
    padding: 15px;
    border-radius: 28px;
  }
  .author-hero-copy h1 {
    font-size: 42px;
  }
  .author-hero-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .author-card {
    padding: 24px 20px;
  }
  .author-card h2 {
    font-size: 25px;
  }
  .wechat-card {
    padding: 20px;
  }
  .wechat-qr-wrap {
    width: min(230px, 100%);
  }
  .author-blessing {
    padding-bottom: 56px;
  }
  .author-blessing-card {
    padding: 34px 22px 30px;
  }
  .author-blessing-mark {
    left: 10px;
    font-size: 96px;
  }
  .author-blessing-text {
    font-size: 20px;
    line-height: 1.9;
  }
  .author-blessing-text br {
    display: none;
  }
}

/* Readability pass: slightly larger, softer small copy */
.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.panel-eyebrow {
  font-size: 9px;
}

.section-desc {
  font-size: 15px;
}

.list-hero-desc {
  font-size: 14.5px;
}

.card-kicker {
  font-size: 10px;
}

.card-sub {
  font-size: 12.5px;
}

.card-cat,
.card-time {
  font-size: 9.5px;
}

.card-view {
  font-size: 10px;
}

.filter-tab {
  font-size: 10.5px;
}

.hero-quick button,
.hero-quick > span,
.uapi-hot button,
.uapi-hot > span {
  font-size: 10px;
}

.hero-stats span {
  font-size: 11px;
}

.list-meta {
  font-size: 12px;
}

.list-meta-note {
  font-size: 11px;
}

.uapi-card-meta {
  font-size: 9.5px;
}

.uapi-card-desc {
  font-size: 10.5px;
}

.advanced-search-row {
  font-size: 11px;
}

.advanced-search-row button,
.advanced-search-row em {
  font-size: 10px;
}

.footer-brand > p {
  font-size: 13px;
}

.footer-links h4 {
  font-size: 10px;
}

.footer-links a {
  font-size: 12.5px;
}

.footer-links p {
  font-size: 11.5px;
}

.wechat-card > p {
  font-size: 12px;
}

.wechat-card > small {
  font-size: 9.5px;
}

.author-tags span {
  font-size: 10px;
}

.login-switch {
  font-size: 10px;
}

.login-demo {
  font-size: 9.5px;
}

/* Keep the smallest interface copy readable on lower-resolution screens */
.eyebrow,
.panel-eyebrow,
.card-kicker,
.card-cat,
.card-time,
.card-view,
.uapi-card-meta,
.uapi-card-desc,
.uapi-card-link,
.list-meta-note,
.advanced-search-row,
.advanced-search-row button,
.advanced-search-row em,
.footer-links h4,
.footer-links p,
.wechat-card > small,
.author-tags span,
.login-demo,
.login-switch,
.api-disclaimer,
.api-cook-ing-note,
.api-cook-count,
.api-step-page-meta,
.api-step-page-status,
.api-step-page-img figcaption,
.api-cook-toolbar .api-cook-prev,
.api-cook-toolbar .api-cook-next,
.api-cook-toolbar .api-cook-prev span,
.api-cook-toolbar .api-cook-next span,
.cook-side-note,
.cook-step-meta {
  font-size: 12px;
}

.hero-quick button,
.hero-quick > span,
.uapi-hot button,
.uapi-hot > span,
.filter-tab {
  font-size: 12px;
}

.footer-bottom {
  font-size: 11.5px;
}

.footer-links a {
  font-size: 13px;
}

@media (max-width: 900px) {
  .login-garden {
    height: 190px;
  }

  .login-garden-quote {
    left: 40%;
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .login-garden {
    height: 250px;
    margin-top: 18px;
  }

  .login-garden-quote {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    font-size: 16px;
    text-align: center;
    transform: none;
  }

  .login-free-1 {
    top: 72px;
    left: 2%;
    width: 54px;
  }

  .login-free-2 {
    top: 4px;
    left: 24%;
    width: 42px;
  }

  .login-free-3 {
    bottom: 78px;
    left: 4%;
    width: 42px;
  }

  .login-free-4 {
    top: 18px;
    right: 0;
    width: 52px;
  }

  .favorites-empty-quote {
    min-height: 330px;
    padding: 26px 16px 72px;
  }

  .favorites-empty-quote blockquote {
    font-size: 20px;
  }

  .fq-1 {
    top: 10px;
    left: 2%;
    width: 46px;
  }

  .fq-2 {
    top: 50%;
    right: 1%;
    width: 42px;
  }

  .fq-3 {
    bottom: 12px;
    left: 8%;
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .title-char {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
