:root {
  --paper: #fdf9f2;
  --card: #ffffff;
  --ink: #2b2b2b;
  --muted: #77705f;
  --accent: #a63d2f;
  --line: #e8ddc9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 0;
}
.brand { display: flex; align-items: center; gap: 32px; }
.brand-logo img { width: 88px; height: 88px; display: block; }
@media (max-width: 640px) { .brand-logo img { width: 76px; height: 76px; } }
.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand-h1 { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.brand-h1 .brand-sub { display: block; }
.brand-name { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif; font-size: 36px; font-weight: 700; color: var(--ink); letter-spacing: 2px; line-height: 1.25; }
.brand-name:hover { text-decoration: none; color: var(--accent); }
@media (max-width: 640px) { .brand-name { font-size: 28px; letter-spacing: 1px; } }
.brand-sub { color: var(--muted); font-size: 15.5px; letter-spacing: 1px; margin-top: 5px; }
.main-nav { max-width: 1080px; margin: 0 auto; padding: 10px 16px 12px; display: flex; column-gap: 22px; row-gap: 9px; flex-wrap: wrap; font-size: 16px; align-items: center; }
.main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.lang-toggle { background: none; border: 1px solid var(--accent); border-radius: 999px; padding: 1px 12px; font: inherit; color: var(--accent); cursor: pointer; margin-left: auto; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-list a, .pill-list .zero-tag { font-size: 14px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.drawer-tags .zero-tag { color: var(--muted); }
main { max-width: 1080px; margin: 0 auto; padding: 16px; }
.hero { text-align: center; padding: 12px 0 20px; }
.hero h1 { font-size: 30px; margin: 8px 0; }
.stats { color: var(--muted); font-size: 15px; margin: 4px 0; }
.stats-n { font-size: 20px; font-weight: 700; color: var(--ink); }
#searchBox {
  width: 100%;
  max-width: 520px;
  font-size: 16px;
  padding: 10px 14px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.search-info { color: var(--muted); font-size: 14px; min-height: 1.4em; }
.no-result { text-align: center; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 12px;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card h2 { font-size: 18px; margin: 10px 14px 4px; }
.card h2 a, .card a { color: var(--ink); }
.badge {
  display: inline-block;
  margin: 0 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.card-tags a {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
}
.recipe .cover { width: 100%; max-width: 720px; border-radius: 12px; display: block; }
.recipe h2 { margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.recipe h3 { margin-top: 20px; }
.ingredients li, .steps li { margin: 4px 0; }
.notes { background: #fff8e7; border-left: 4px solid var(--accent); padding: 12px 16px; }
.tag-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.tag-list li { margin: 6px 0; }
.page { max-width: 720px; }
.site-footer { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px; border-top: 1px solid var(--line); }
.ad-slot { min-height: 0; margin: 0; padding: 0; }
.ad-slot:empty { display: none; }
