/* 第4套 · cn · 厨房配方卡 */
:root {
  --bg: #f6efe6;
  --card: #fffaf3;
  --terracotta: #c45c26;
  --terracotta-deep: #9a4318;
  --herb: #3d6b4f;
  --herb-deep: #2b4d39;
  --ink: #2b2118;
  --muted: #6a5848;
  --line: #e4d3c0;
  --dash: #d7c2ab;
  --paper: #fffdf8;
  --clip: #8a6a4a;
  --shadow: 0 16px 32px rgba(43, 33, 24, 0.08);
  --max: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(196, 92, 38, 0.06) 0.9px, transparent 1px),
    linear-gradient(180deg, #efe4d4 0, var(--bg) 220px);
  background-size: 16px 16px, 100% 220px;
  min-height: 100px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--terracotta-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--herb-deep);
}

p {
  margin: 0 0 0.85rem;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  margin: 0.35rem 0 0.85rem;
}

h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.48rem);
  margin: 0 0 0.7rem;
  color: var(--terracotta-deep);
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--herb-deep);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--card);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
}

.wall {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2.4rem;
}

.kitchen-bar {
  text-align: center;
  padding: 1.35rem 0 0.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 700;
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--terracotta);
}

.brand:hover {
  color: var(--terracotta-deep);
  text-decoration: none;
}

.clip-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.95rem;
  border-bottom: 2px solid #e8d5c1;
}

.clip-nav a {
  position: relative;
  display: inline-block;
  padding: 0.48rem 1.15rem 0.62rem;
  background: #f3e6d6;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 3px 0 var(--clip);
}

.clip-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 10px;
  height: 6px;
  margin-left: -5px;
  border-radius: 0 0 4px 4px;
  background: #6d5340;
}

.clip-nav a:hover,
.clip-nav a.is-on {
  background: var(--card);
  color: var(--terracotta-deep);
  text-decoration: none;
}

.clip-nav a.is-on {
  box-shadow: inset 0 3px 0 var(--terracotta);
}

.deck {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.recipe-card {
  position: relative;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 36px, rgba(196, 92, 38, 0.08) 36px, rgba(196, 92, 38, 0.08) 37px, transparent 37px),
    repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(61, 107, 79, 0.05) 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow), 8px 10px 0 rgba(196, 92, 38, 0.05);
  padding: 1.55rem 1.45rem 1.5rem 1.55rem;
}

.recipe-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed var(--dash);
  border-radius: 14px;
  pointer-events: none;
}

.recipe-card > * {
  position: relative;
  z-index: 1;
}

.recipe-card.stack {
  margin-bottom: 0.35rem;
}

.recipe-card.stack::after {
  content: "";
  position: absolute;
  inset: 14px -9px -11px 11px;
  background: #f2e4d2;
  border: 1px solid #e5d2bc;
  border-radius: 18px;
  z-index: 0;
}

.tilt-l {
  transform: rotate(-0.85deg);
}

.tilt-r {
  transform: rotate(0.95deg);
}

.drop {
  margin-top: 1.15rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: start;
}

.clip-pin {
  width: 34px;
  height: 26px;
  margin: -0.35rem auto 0.55rem;
  color: var(--clip);
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--herb);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0.85rem 0 1.05rem;
}

.meta-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.meta-box span {
  display: block;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.58rem 1.1rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fffaf3;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--terracotta);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  background: var(--terracotta-deep);
  color: #fff;
  text-decoration: none;
}

.btn-herb {
  background: var(--herb);
  border-color: var(--herb);
}

.btn-herb:hover {
  background: var(--herb-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--herb-deep);
  border-color: var(--herb);
}

.btn-ghost:hover {
  background: #e8f0ea;
  color: var(--herb-deep);
}

.quote {
  background: var(--paper);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 0.9rem;
  margin: 0 0 0.8rem;
}

.quote cite {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.8rem;
}

.chip {
  background: #f3e6d6;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.16rem 0.7rem;
  font-size: 0.8rem;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.5rem 0 0.85rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--herb-deep);
}

.steps {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

.steps li {
  margin: 0 0 0.7rem;
}

.stat {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.faq dt {
  color: var(--terracotta-deep);
  font-weight: 700;
  margin: 0.85rem 0 0.25rem;
}

.faq dd {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.kitchen-foot {
  margin-top: 1.6rem;
  padding: 1.1rem 0 0.4rem;
  border-top: 2px solid #e8d5c1;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.kitchen-foot p {
  margin: 0.35rem 0;
}

@media (max-width: 820px) {
  .pair,
  .meta-row {
    grid-template-columns: 1fr;
  }

  .tilt-l,
  .tilt-r,
  .drop {
    transform: none;
    margin-top: 0;
  }

  .recipe-card.stack::after {
    display: none;
  }

  .recipe-card {
    background-image: none;
  }
}
