:root {
  --ink: #1d1a17;
  --ink-2: #4a443d;
  --muted: #8d8479;
  --line: #e7ded1;
  --paper: #faf6f0;
  --card: #ffffff;
  --red: #b4402f;
  --red-d: #8e2f22;
  --gold: #a9855a;
  --green: #4d7a4a;
  --radius: 18px;
  --shadow: 0 20px 50px -30px rgba(60, 35, 20, .5);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font); background: var(--paper); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .02em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .9);
  backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand b { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; }
.brand span { font-size: 10px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; gap: 20px; font-size: 13.5px; color: var(--ink-2); }
.nav-links a:hover { color: var(--red); }

/* ---------- 首页 ---------- */
.hero {
  position: relative; margin-top: 18px; border-radius: 24px; overflow: hidden;
  min-height: 360px; display: flex; align-items: flex-end; color: #f8f0e6;
  background: #241812;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(55% 80% at 80% 12%, rgba(226, 160, 96, .38), transparent 68%),
    radial-gradient(45% 65% at 18% 92%, rgba(140, 62, 40, .34), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(18, 10, 8, .88) 6%, rgba(18, 10, 8, .55) 44%, rgba(18, 10, 8, .12) 78%);
}
.hero-in { position: relative; z-index: 3; padding: 46px 48px; width: 100%; }
.hero .kicker { font-size: 11px; letter-spacing: .38em; color: #d9bc94; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; margin: 14px 0 10px; }
.hero p { color: #d9cabb; font-size: 14.5px; max-width: 36ch; margin: 0 0 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .18s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #c04a35, #8e2f22); color: #fff; box-shadow: 0 14px 28px -16px rgba(142, 47, 34, .9); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.filters { display: flex; gap: 9px; flex-wrap: wrap; margin: 28px 0 6px; }
.chip {
  padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink-2);
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.section-head { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 16px; }
.section-head h2 { font-size: 24px; }
.section-head .hint { font-size: 12.5px; color: var(--muted); }

.rlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 50px; }
.rcard {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: grid; grid-template-columns: 210px 1fr;
  transition: transform .25s, box-shadow .25s;
}
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rcard-img { position: relative; min-height: 168px; overflow: hidden; background: #2a1c15; }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rcard-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.rcard h3 { font-size: 19px; }
.rcard .cuisine { font-size: 11.5px; letter-spacing: .16em; color: var(--gold); }
.rcard .addr { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.rcard .meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-top: auto; flex-wrap: wrap; }
.rcard .meta b { color: var(--red); font-family: var(--serif); font-size: 16px; }

/* ---------- 餐厅详情 ---------- */
.rd-hero { position: relative; height: 320px; border-radius: 0 0 26px 26px; overflow: hidden; background: #241812; }
.rd-hero img { width: 100%; height: 100%; object-fit: cover; }
.rd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 9, 7, .15), rgba(16, 9, 7, .78)); }
.rd-head { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 24px; color: #f8efe5; z-index: 2; }
.rd-head h1 { font-size: 34px; }
.rd-head .row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #ddcdbd; margin-top: 8px; }
.rd-head .score { color: #f0c07a; font-weight: 600; }
.rd-body { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; padding: 26px 0 90px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-size: 17px; margin-bottom: 4px; }
.panel .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.room {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .2s; background: #fff;
}
.room:hover { border-color: #d8c4ab; transform: translateY(-2px); }
.room img { width: 100%; height: 120px; object-fit: cover; }
.room-body { padding: 11px 13px 13px; }
.room .nm { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.room .cap { font-size: 11px; color: var(--muted); background: #f4ece1; padding: 2px 7px; border-radius: 5px; }
.room .desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.room .price { font-size: 12.5px; color: var(--red); margin-top: 6px; }

.menu { margin-top: 26px; }
.menu-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.menu-tabs button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; white-space: nowrap;
}
.menu-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dish {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.dish:last-child { border-bottom: 0; }
.dish .nm { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dish .desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dish .tags { display: flex; gap: 5px; margin-top: 5px; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: #f6efe4; color: #8a6a45; }
.tag.spicy { background: #fbecea; color: #b4402f; }
.dish .right { display: flex; align-items: center; gap: 12px; }
.dish .price { font-family: var(--serif); color: var(--red); font-size: 18px; }
.dish .price small { font-size: 11px; }
.add {
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.add:hover { background: var(--red-d); }
.qty-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.qty-mini button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }

.side-card { position: sticky; top: 78px; }
.side-card .line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; color: var(--ink-2); }
.side-card .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 15px; }
.side-card .total b { font-family: var(--serif); font-size: 24px; color: var(--red); }

/* ---------- 预约页 ---------- */
.book-wrap { max-width: 720px; margin: 0 auto; padding-bottom: 110px; }
.step { margin: 22px 0; }
.step-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.step-title .no {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12px; display: grid; place-items: center; flex: none;
}
.step-title h3 { font-size: 17px; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.date {
  flex: none; width: 62px; padding: 10px 0; border-radius: 12px; text-align: center;
  border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--ink-2);
}
.date b { display: block; font-size: 17px; font-family: var(--serif); color: var(--ink); }
.date.on { background: var(--ink); border-color: var(--ink); color: #f6ece0; }
.date.on b { color: #fff; }
.date.off { opacity: .35; pointer-events: none; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.slot {
  padding: 11px 0; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; text-align: center;
}
.slot.on { background: var(--red); border-color: var(--red); color: #fff; }
.slot.off { background: #f2ece4; color: #b9aea1; text-decoration: line-through; pointer-events: none; }
.people { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.stepper button { width: 40px; height: 42px; font-size: 18px; color: var(--ink-2); }
.stepper input { width: 56px; height: 42px; text-align: center; border: 0; background: none; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pick {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff;
  text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.pick.on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.pick .nm { font-size: 14px; }
.pick .mt { font-size: 11.5px; color: var(--muted); }
.pick.disabled { opacity: .38; pointer-events: none; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180, 64, 47, .1); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cart-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }

.footbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 253, 250, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.footbar .in { display: flex; align-items: center; gap: 14px; }
.footbar .sum { flex: 1; font-size: 12.5px; color: var(--muted); }
.footbar .sum b { display: block; font-family: var(--serif); font-size: 22px; color: var(--red); }

/* ---------- 我的预约 ---------- */
.resv { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.resv .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.resv .nm { font-size: 16px; font-family: var(--serif); }
.resv .when { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.resv .no { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.resv .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.st { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; }
.st.pending { background: #fdf1e3; color: #a06b22; }
.st.confirmed { background: #eaf3ea; color: #3f7a3c; }
.st.seated { background: #e9f0f7; color: #3b5f8a; }
.st.done { background: #f1eeea; color: #6b6357; }
.st.canceled, .st.rejected { background: #f6ecec; color: #a05050; }
.link { font-size: 12.5px; color: var(--muted); text-decoration: underline; }

/* ---------- 后台 ---------- */
.admin-body { background: #f6f2ec; height: 100dvh; overflow: hidden; }
.login { max-width: 380px; margin: 12vh auto; background: #fff; border-radius: 20px; padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shell { display: grid; grid-template-columns: 232px 1fr; height: 100dvh; overflow: hidden; }
.side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.side .hd { padding: 16px; border-bottom: 1px solid var(--line); }
.side nav { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.side nav button {
  text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2);
}
.side nav button.on { background: var(--ink); color: #fff; }
.main { display: flex; flex-direction: column; min-height: 0; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.topbar .sp { flex: 1; }
.content { flex: 1; overflow: auto; padding: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 26px; margin-top: 2px; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fcfaf7; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #f4eee6; vertical-align: top; }
.mini { font-size: 11.5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; margin-right: 4px; }
.mini:hover { border-color: var(--red); color: var(--red); }
.toast {
  position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 400;
  background: rgba(28, 20, 16, .93); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 13px; opacity: 0; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 13.5px; }

@media (max-width: 900px) {
  .rlist { grid-template-columns: 1fr; }
  .rcard { grid-template-columns: 132px 1fr; }
  .rcard-img { min-height: 132px; }
  .rd-body { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .hero-in { padding: 30px 22px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .picks { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .rd-head h1 { font-size: 26px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}


/* 卖点 */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 10px; }
.perk {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.perk .ic {
  width: 34px; height: 34px; border-radius: 10px; background: #f7ede2; color: var(--red);
  display: grid; place-items: center; flex: none; font-family: var(--serif);
}
.perk b { display: block; font-size: 14px; font-weight: 600; }
.perk span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr; } }
