* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fafafa;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1220px, 94vw); margin: 0 auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #ededed;
}
.xf-topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: #f36b3c;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.search-wrap {
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 88px;
}
.search-wrap input {
  height: 40px;
  border: 1px solid #ddd;
  border-right: none;
  outline: none;
  padding: 0 12px;
  font-size: 15px;
}
.search-wrap button {
  border: 1px solid #cf3e1d;
  background: #cf3e1d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.nav {
  display: flex;
  gap: 18px;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nav a.active, .nav a:hover { color: #cf3e1d; }

.xf-main {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 260px;
  gap: 18px;
}

.left-menu {
  background: #fff;
  border: 1px solid #ececec;
  padding: 12px 10px;
  align-self: start;
}
.left-menu h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #888;
}
.left-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.left-menu li {
  font-size: 14px;
  color: #4b4b4b;
}
.cat-filter-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #4b4b4b;
  text-align: left;
  cursor: pointer;
}
.cat-filter-btn:hover {
  color: #cf3e1d;
}
.all-cat-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  font-weight: 700;
}
.all-cat-link:hover { color: #cf3e1d; }

.center-feed { min-width: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.hero-main, .hero-side article, .recipe-card, .card, .recipe-main, .recipe-sidebar {
  background: #fff;
  border: 1px solid #ececec;
}
.hero-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.hero-body { padding: 12px 14px 14px; }
.hero-body h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
}
.meta { margin: 0; color: #8a8a8a; font-size: 13px; }
.summary { margin: 7px 0 0; color: #555; line-height: 1.55; }

.hero-side { display: grid; gap: 16px; }
.side-item {
  display: grid;
  grid-template-columns: 120px 1fr;
}
.side-item img {
  width: 100%;
  height: 108px;
  object-fit: cover;
}
.side-item .info { padding: 8px 9px; }
.side-item .info h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.3;
}

.block { margin-top: 18px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 27px;
  color: #333;
}
.section-head a {
  font-size: 13px;
  color: #cf3e1d;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.card-body { padding: 10px; }
.card-body h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
}

.right-panel {
  align-self: start;
  display: grid;
  gap: 14px;
}
.panel { padding: 12px; }
.panel h3 {
  margin: 0 0 10px;
  font-size: 19px;
}
.panel p {
  margin: 0;
  color: #666;
  line-height: 1.55;
  font-size: 14px;
}
.panel button {
  margin-top: 12px;
  height: 36px;
  width: 100%;
  border: none;
  background: #cf3e1d;
  color: #fff;
  font-weight: 700;
}
#hot-keywords {
  margin: 0;
  padding-left: 19px;
  color: #555;
  line-height: 1.8;
}
#hot-keywords li {
  margin-bottom: 2px;
}
.hot-keyword-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: #555;
  font-size: 24px;
  line-height: 1.4;
  cursor: pointer;
}
.hot-keyword-btn:hover {
  color: #cf3e1d;
}

.recipe-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}
.recipe-main { padding: 16px; }
.breadcrumb {
  font-size: 14px;
  color: #a7a7a7;
  margin: 0 0 10px;
}
.recipe-main h1 {
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1.1;
}
.recipe-cover {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  margin: 10px 0 14px;
}
.intro {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.8;
}
.content-title {
  margin: 14px 0 8px;
  color: #8b7d44;
  font-size: 35px;
}
.ingredient-list, .step-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  line-height: 1.9;
}
.recipe-sidebar { padding: 13px; }
.recipe-sidebar h3 {
  margin: 0 0 10px;
  color: #b7ab80;
  font-size: 28px;
}
.mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin-bottom: 11px;
}
.mini-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .xf-main { grid-template-columns: 1fr; }
  .left-menu, .right-panel { order: 2; }
  .center-feed { order: 1; }
}
@media (max-width: 900px) {
  .xf-topbar { grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
  .search-wrap { max-width: none; }
  .hero-grid, .recipe-layout { grid-template-columns: 1fr; }
  .card-row, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .card-row, .card-grid { grid-template-columns: 1fr; }
  .hero-body h1 { font-size: 24px; }
  .recipe-main h1 { font-size: 34px; }
  .content-title { font-size: 28px; }
}

.site-footer {
  margin-top: 22px;
  background: #fff;
  border-top: 1px solid #ededed;
}
.footer-row {
  padding: 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.footer-note {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.55;
  max-width: 860px;
}
.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 800;
  color: #444;
  white-space: nowrap;
}
.footer-links a:hover { color: #cf3e1d; }

.simple-page {
  margin: 18px auto 50px;
  background: #fff;
  border: 1px solid #ededed;
  padding: 16px;
}
.simple-page h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.15; }
.simple-page h2 { margin: 18px 0 8px; font-size: 18px; }
.simple-page p, .simple-page li { color: #333; line-height: 1.85; font-size: 15px; }
.simple-page .muted { color: #777; font-size: 13px; }
.simple-page label { font-weight: 800; display: block; margin: 10px 0 6px; }
.simple-page input, .simple-page textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.simple-page textarea { min-height: 120px; resize: vertical; }
.simple-page button {
  margin-top: 12px;
  background: #cf3e1d;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.simple-page button:hover { filter: brightness(0.95); }

@media (max-width: 900px) {
  .footer-row { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}
