:root {
  --ink: #221b16;
  --muted: #786b61;
  --paper: #f5f0e8;
  --card: #fffdf9;
  --red: #b83a2b;
  --red-dark: #86271d;
  --line: rgba(61, 44, 31, .13);
  --shadow: 0 18px 50px rgba(69, 47, 30, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.hero { min-height: 610px; padding: 0 6vw 84px; color: #fffaf4; background:
  radial-gradient(circle at 78% 22%, rgba(255, 191, 116, .20), transparent 28%),
  linear-gradient(128deg, #321612 0%, #6f2119 50%, #9f3023 100%); position: relative; overflow: hidden; }
.hero::after { content: "味"; position: absolute; right: 4vw; bottom: -15vw; font-family: SimSun, serif; font-size: min(43vw, 620px); color: rgba(255,255,255,.035); line-height: 1; pointer-events: none; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.16); position: relative; z-index: 1; }
.brand { font-family: SimSun, serif; font-size: 24px; letter-spacing: .18em; }
.brand span { display: inline-block; margin-right: 8px; padding: 8px 7px 7px 10px; color: white; background: #d74934; border-radius: 2px; }
.nav-links { display: flex; gap: 34px; font-size: 14px; letter-spacing: .12em; }
.nav-links a { opacity: .82; }
.nav-links a:hover { opacity: 1; }
.hero-copy { max-width: 760px; padding-top: 78px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: #c87561; font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.hero .eyebrow { color: #f0a18d; }
h1, h2 { font-family: SimSun, "Songti SC", serif; font-weight: 700; margin: 0; }
h1 { font-size: clamp(62px, 8vw, 112px); line-height: .94; letter-spacing: -.055em; }
h1 em { color: #ffb39b; font-style: normal; }
.intro { max-width: 630px; margin: 32px 0 36px; color: rgba(255,250,244,.76); font-size: 17px; line-height: 1.85; }
.stats { display: flex; gap: 46px; }
.stats div { display: grid; gap: 5px; }
.stats strong { font-family: Georgia, serif; font-size: 28px; }
.stats span { color: rgba(255,250,244,.58); font-size: 12px; letter-spacing: .12em; }
main { width: min(1500px, 100%); margin: auto; }
.gallery-section { padding: 82px 5vw 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
h2 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.04em; }
.search { width: min(430px, 100%); display: grid; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: .15em; }
.search input { width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: rgba(255,255,255,.65); color: var(--ink); font: inherit; }
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(184,58,43,.1); }
.category-bar { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; }
.category-bar button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; transition: .2s; }
.category-bar button:hover, .category-bar button.active { color: white; border-color: var(--red); background: var(--red); }
.result-line { min-height: 24px; margin: 13px 0 21px; color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.dish-card { margin: 0; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 4px 16px rgba(71,46,31,.035); transition: transform .22s, box-shadow .22s; }
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: white; }
.dish-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 16px 17px; }
.dish-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.dish-card span { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.empty { padding: 80px 20px; text-align: center; color: var(--muted); }
.api-section { margin: 0 5vw 95px; padding: 62px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; color: #f9f2e9; background: #251d18; border-radius: 8px; }
.api-copy p:not(.eyebrow) { color: rgba(249,242,233,.65); line-height: 1.8; }
.api-button { display: inline-block; margin-top: 16px; padding: 13px 20px; color: white; background: var(--red); border-radius: 3px; }
.api-button:hover { background: #d14937; }
.code-list { display: grid; align-content: center; }
.code-list article { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.code-list span { display: block; margin-bottom: 8px; color: #d8b8a8; font-size: 12px; }
.code-list code { display: block; overflow-x: auto; color: #fff; font-size: 13px; white-space: nowrap; }
footer { display: flex; justify-content: space-between; padding: 30px 5vw; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; }
@media (max-width: 1150px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 850px) { .gallery { grid-template-columns: repeat(3, 1fr); } .api-section { grid-template-columns: 1fr; padding: 42px; } }
@media (max-width: 620px) {
  .hero { min-height: 560px; padding-inline: 22px; }
  .topbar { height: 72px; }
  .nav-links { gap: 18px; }
  .hero-copy { padding-top: 70px; }
  .intro { font-size: 15px; }
  .stats { gap: 24px; }
  .stats strong { font-size: 22px; }
  .gallery-section { padding: 60px 16px 76px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dish-card figcaption { align-items: start; flex-direction: column; padding: 12px; }
  .api-section { margin: 0 16px 68px; padding: 30px 22px; }
  footer { padding-inline: 16px; }
}

