* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #f97316;
  --orange-light: #fff7ed;
  --orange-dark: #ea580c;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-600: #525252;
  --gray-800: #262626;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 1.3rem; font-weight: 700; color: var(--orange); text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  text-decoration: none; color: var(--gray-600); font-size: .95rem;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); border-bottom-color: var(--orange); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 50%, #f97316 100%);
  color: var(--white); text-align: center; padding: 64px 20px;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.hero p { font-size: 1.05rem; opacity: .9; margin-bottom: 24px; }
.hero-search { display: flex; justify-content: center; gap: 8px; }
.hero-search input {
  width: 360px; max-width: 70vw; padding: 12px 16px; border: none; border-radius: 8px;
  font-size: 1rem; outline: none;
}
.hero-search button {
  padding: 12px 24px; background: var(--gray-800); color: white;
  border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background .2s;
}
.hero-search button:hover { background: #000; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; }
.section { margin-bottom: 48px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 { font-size: 1.35rem; }
.section-header a { color: var(--orange); text-decoration: none; font-size: .9rem; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-img {
  height: 180px; background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--gray-600); margin-bottom: 6px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 2px 10px; background: var(--orange-light);
  color: var(--orange); border-radius: 999px; font-size: .78rem;
}
.stars { color: #f59e0b; }
.price { color: var(--orange-dark); font-weight: 600; }

/* Cuisine Grid */
.cuisine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.cuisine-card {
  background: var(--white); border-radius: var(--radius); padding: 24px 16px;
  text-align: center; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit;
  display: block;
}
.cuisine-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cuisine-icon { font-size: 2.5rem; margin-bottom: 8px; }
.cuisine-name { font-weight: 600; font-size: .95rem; }
.cuisine-count { font-size: .8rem; color: var(--gray-600); margin-top: 2px; }

/* Breadcrumb */
.breadcrumb { padding: 16px 20px; max-width: 1200px; margin: 0 auto; font-size: .9rem; color: var(--gray-600); }
.breadcrumb a { color: var(--orange); text-decoration: none; }

/* Category Page */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.category-tab {
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--gray-200);
  background: var(--white); cursor: pointer; font-size: .9rem; transition: all .2s;
}
.category-tab:hover, .category-tab.active { background: var(--orange); color: white; border-color: var(--orange); }

/* Detail Page */
.detail-hero {
  height: 320px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.detail-hero-overlay {
  width: 100%; padding: 32px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: white; max-width: 1200px; margin: 0 auto;
}
.detail-hero-overlay h1 { font-size: 2rem; }
.detail-content { max-width: 1200px; margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 768px) { .detail-content { grid-template-columns: 1fr; } }
.detail-main h2 { font-size: 1.2rem; margin-bottom: 12px; }
.menu-list { list-style: none; }
.menu-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.menu-item-name { font-weight: 500; }
.menu-item-price { color: var(--orange-dark); font-weight: 600; }
.menu-item-desc { font-size: .85rem; color: var(--gray-600); margin-top: 2px; }
.detail-sidebar .info-card {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.info-card h3 { font-size: 1rem; margin-bottom: 12px; }
.info-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--gray-100); }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--gray-600); }
.rating-big { font-size: 2.5rem; font-weight: 700; color: var(--orange); text-align: center; }
.rating-stars { text-align: center; font-size: 1.2rem; margin-bottom: 4px; }

/* Search Page */
.search-header { padding: 24px 20px; max-width: 1200px; margin: 0 auto; }
.search-header input {
  width: 100%; padding: 14px 20px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-size: 1.1rem; outline: none; transition: border-color .2s;
}
.search-header input:focus { border-color: var(--orange); }
.search-results-info { padding: 0 20px; max-width: 1200px; margin: 0 auto 20px; color: var(--gray-600); }

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gray-600); text-decoration: none; font-size: .9rem;
  margin-bottom: 16px; transition: color .2s;
}
.back-btn:hover { color: var(--orange); }

/* Footer */
.footer { text-align: center; padding: 32px 20px; color: var(--gray-600); font-size: .85rem; border-top: 1px solid var(--gray-200); }
