/* ============================================================
   拾味轩 · 私房菜 —— 暖色系设计系统
   深咖 #2c1a12 / 朱砂红 #c24b2f / 金棕 #d9a45b / 米白 #faf5ec
   ============================================================ */

:root {
  --brown-950: #2c1a12;
  --brown-900: #3a2418;
  --red: #c24b2f;
  --red-dark: #a83d24;
  --gold: #d9a45b;
  --cream: #faf5ec;
  --cream-dark: #f4ecdd;
  --ink: #33231a;
  --muted: #8a7565;
  --line: #e8dccb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(44, 26, 18, .08);
  --shadow-lg: 0 18px 50px rgba(44, 26, 18, .14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 245, 236, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(44, 26, 18, .07); }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; letter-spacing: 2px;
  box-shadow: 0 4px 12px rgba(194, 75, 47, .35);
}
.brand-text { font-weight: 800; font-size: 18px; color: var(--ink); line-height: 1.2; }
.brand-sub { display: block; font-size: 10px; letter-spacing: 3px; font-weight: 600; color: var(--muted); }

.menu { display: flex; align-items: center; gap: 30px; }
.menu a { font-weight: 600; font-size: 15px; color: var(--ink); transition: color .2s; }
.menu a:hover { color: var(--red); }
.menu-cta {
  background: var(--red); color: #fff !important;
  padding: 10px 22px; border-radius: 999px;
  transition: background .25s, transform .25s;
}
.menu-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44, 26, 18, .94) 0%, rgba(44, 26, 18, .42) 55%, rgba(44, 26, 18, .62) 100%);
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow { font-size: 14px; letter-spacing: 6px; color: var(--gold); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(42px, 6.5vw, 70px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: 2px;
}
.hero h1 .accent { color: var(--gold); }
.hero-desc { max-width: 560px; margin-top: 22px; font-size: 17px; color: rgba(255, 255, 255, .85); line-height: 1.9; }

.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 60px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 34px; font-weight: 800; color: var(--gold); }
.hero-stats span { font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px;
  font-size: 16px; font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, transform .25s, border-color .25s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-block { width: 100%; }

/* ===== 通用段 ===== */
.section { padding: 96px 0; }
.section-tint { background: var(--cream-dark); }
.section-dark { background: var(--brown-950); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255, 255, 255, .6); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.eyebrow { font-size: 12px; letter-spacing: 5px; color: var(--red); font-weight: 700; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.3; letter-spacing: 1px; }
.section-desc { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ===== 招牌菜卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-photo img { transform: scale(1.07); }
.card-body { padding: 20px 22px 26px; }
.card-body h3 {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 17px; font-weight: 800;
}
.card-body .price { color: var(--red); font-size: 18px; }
.card-body p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ===== 锅气段 ===== */
.wok-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 64px; align-items: center;
}
.wok-grid > div > p { margin-top: 16px; color: rgba(255, 255, 255, .7); max-width: 520px; }

.wok-points { margin-top: 40px; }
.wok-points li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.wok-points li:last-child { border-bottom: none; }
.wok-points b { font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.wok-points h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.wok-points p { font-size: 14px; color: rgba(255, 255, 255, .6); }

.wok-photo { position: relative; }
.wok-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.badge {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--red); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(194, 75, 47, .45);
}

/* ===== 环境画廊 ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.07); }

/* ===== 在线订座 ===== */
.booking-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.booking-grid > div > p { margin-top: 16px; color: var(--muted); max-width: 460px; }

.contact-info { margin-top: 36px; }
.contact-info li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-info b { display: block; font-size: 15px; font-weight: 800; }
.contact-info span { font-size: 14px; color: var(--muted); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form h3 { font-size: 21px; font-weight: 800; margin-bottom: 22px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfbf7;
  font: inherit; font-size: 15px; color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); }

.form-tip { margin-top: 14px; font-size: 13px; color: var(--muted); min-height: 18px; }
.form-tip.ok { color: #2f7d4f; }
.form-tip.err { color: var(--red); }

/* ===== 页脚 ===== */
.footer { background: var(--brown-950); padding: 36px 0; }
.footer-inner { text-align: center; }
.footer p { font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer p + p { margin-top: 6px; color: rgba(255, 255, 255, .4); }

/* ===== 滚动出现动画 ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hamburger { display: flex; }
  .menu {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: min(320px, 82vw);
    background: #fff;
    flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -20px 0 60px rgba(44, 26, 18, .18);
  }
  .menu.open { transform: none; }
  .menu a { width: 100%; padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .menu .menu-cta { margin-top: 24px; text-align: center; border-bottom: none; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .wok-grid, .booking-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { gap: 40px; margin-top: 48px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; padding-top: 120px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .section { padding: 72px 0; }
  .form { padding: 26px; }
}
