:root {
  --bg: #f3f1ec;
  --paper: #fbfaf7;
  --paper-deep: #efede7;
  --ink: #181714;
  --text: #34332f;
  --muted: #77736b;
  --line: rgba(24, 23, 20, 0.1);
  --line-strong: rgba(24, 23, 20, 0.18);
  --accent: #53624f;
  --accent-ink: #24311f;
  --rust: #8a4638;
  --blue-soft: #e6eef0;
  --green-soft: #e8eee4;
  --yellow-soft: #f4edd8;
  --grey-soft: #ece9e2;
  --shadow: 0 18px 50px rgba(44, 39, 30, 0.055);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink);
  font-family: "SF Pro Display", "Geist Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(83, 98, 79, 0.07), transparent 30rem),
    linear-gradient(180deg, #f8f6f0 0%, var(--bg) 42%, #ebe8df 100%);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

body::before {
  background-image:
    linear-gradient(rgba(24, 23, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 23, 20, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.app-shell {
  margin: 0 auto;
  max-width: 540px;
  min-height: 100vh;
  padding: 20px 16px 100px;
  position: relative;
  z-index: 1;
}

.surface {
  background: rgba(251, 250, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  color: var(--accent);
  font-family: "SF Mono", "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.h1,
.share-title {
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 8px 0 0;
  text-wrap: balance;
}

.h2 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.muted {
  color: var(--muted);
}

.section {
  margin-top: 28px;
}

.section-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
  white-space: nowrap;
}

.primary-btn {
  background: var(--ink);
  color: #fbfaf7;
}

.secondary-btn {
  background: var(--accent);
  color: #fbfaf7;
}

.ghost-btn {
  background: rgba(251, 250, 247, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.quick:active,
.week-item:active,
.day:active {
  transform: translateY(1px) scale(0.985);
}

.hero {
  align-items: flex-start;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98), rgba(241, 238, 230, 0.78)),
    url("https://images.unsplash.com/photo-1555244162-803834f70033?auto=format&fit=crop&w=1200&q=80") center/cover;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 176px;
  padding: 26px 22px;
  position: relative;
}

.hero::after {
  background: var(--ink);
  content: "";
  height: 1px;
  left: 22px;
  opacity: 0.14;
  position: absolute;
  right: 22px;
  top: 68px;
}

.brand-line {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

.today-card,
.form-card,
.intro-panel {
  padding: 22px;
}

.status,
.tag {
  border-radius: 999px;
  display: inline-flex;
  font-family: "SF Mono", "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 9px;
}

.status-free {
  background: var(--green-soft);
  color: #315b33;
}

.status-booked {
  background: var(--yellow-soft);
  color: #806018;
}

.status-closed {
  background: var(--grey-soft);
  color: #68635c;
}

.week-strip {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(7, minmax(60px, 1fr));
  overflow-x: auto;
  padding-bottom: 6px;
}

.week-item {
  background: rgba(251, 250, 247, 0.9);
  min-width: 60px;
  padding: 13px 8px 12px;
  text-align: left;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.week-num {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 5px 0 9px;
}

.stats-grid,
.quick-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: 1fr 1fr;
}

.metric,
.quick {
  padding: 20px;
}

.metric-num {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.quick {
  background: rgba(251, 250, 247, 0.92);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  min-height: 92px;
  text-align: left;
}

.tabbar {
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  bottom: 0;
  box-shadow: 0 -12px 40px rgba(44, 39, 30, 0.07);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  left: 50%;
  max-width: 540px;
  padding: 9px 10px max(9px, env(safe-area-inset-bottom));
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  z-index: 20;
}

.tabbar button {
  background: transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 4px;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.tabbar button.active {
  background: var(--ink);
  color: #fbfaf7;
  font-weight: 800;
}

.calendar-head,
.menu-head,
.detail-actions {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.calendar-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(7, 1fr);
  padding: 14px;
}

.week-label {
  color: var(--muted);
  font-family: "SF Mono", "Geist Mono", monospace;
  font-size: 11px;
  text-align: center;
}

.day {
  align-items: center;
  background: transparent;
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  height: 64px;
  justify-content: center;
  padding: 0;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}

.day.out {
  color: #b7b1a5;
}

.day.today {
  background: var(--yellow-soft);
}

.day-chip {
  font-size: 10px;
  margin-top: 5px;
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-item,
.dish-row {
  margin-bottom: 12px;
  padding: 16px;
}

.schedule-item {
  text-align: left;
  width: 100%;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  color: var(--text);
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  min-height: 44px;
  outline: none;
  padding: 11px 13px;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(83, 98, 79, 0.55);
  box-shadow: 0 0 0 3px rgba(83, 98, 79, 0.12);
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.menu-card {
  margin-bottom: 16px;
}

.menu-cover,
.detail-cover,
.share-hero img {
  display: block;
  height: 196px;
  object-fit: cover;
  width: 100%;
}

.menu-body {
  padding: 18px;
}

.menu-top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.menu-title {
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.price {
  color: var(--rust);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 850;
}

.intro {
  color: var(--text);
  line-height: 1.68;
}

.card-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.dish-row {
  align-items: center;
  background: rgba(251, 250, 247, 0.84);
  display: grid;
  gap: 12px;
  grid-template-columns: 76px 1fr auto;
}

.dish-row img {
  border-radius: 10px;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.dish-name {
  color: var(--ink);
  font-weight: 800;
}

.dish-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
}

.brand-preview {
  overflow: hidden;
}

.brand-preview .cover {
  display: block;
  height: 210px;
  object-fit: cover;
  width: 100%;
}

.brand-row {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.logo {
  border: 3px solid var(--paper);
  border-radius: 14px;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.share {
  max-width: none;
  padding: 0 0 92px;
}

.share-hero {
  height: min(560px, 78vh);
  overflow: hidden;
  position: relative;
}

.share-hero img {
  filter: saturate(0.82) contrast(0.96);
  height: 100%;
}

.share-hero::after {
  background: linear-gradient(180deg, rgba(12, 12, 10, 0.08), rgba(12, 12, 10, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.share-content {
  bottom: 34px;
  color: #fbfaf7;
  left: 24px;
  position: absolute;
  right: 24px;
  z-index: 1;
}

.share-title {
  color: #fbfaf7;
  font-size: clamp(38px, 10vw, 58px);
}

.share-body {
  margin: -20px auto 0;
  max-width: 540px;
  padding: 0 16px 22px;
  position: relative;
  z-index: 2;
}

.intro-panel {
  background: rgba(251, 250, 247, 0.96);
}

.consult-bar {
  background: rgba(251, 250, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  bottom: 0;
  box-shadow: 0 -12px 40px rgba(44, 39, 30, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  left: 50%;
  max-width: 540px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 16px);
}

.hidden-input {
  display: none;
}

@media (hover: hover) {
  .surface:hover {
    border-color: rgba(24, 23, 20, 0.16);
  }

  .primary-btn:hover {
    background: #2d2c27;
  }

  .secondary-btn:hover {
    background: #465542;
  }

  .ghost-btn:hover {
    border-color: rgba(24, 23, 20, 0.28);
  }
}

@media (min-width: 760px) {
  body {
    background:
      radial-gradient(circle at 80% 0%, rgba(138, 70, 56, 0.06), transparent 34rem),
      linear-gradient(90deg, #efede7, #faf9f5 46%, #ebe8df);
  }

  .app-shell {
    padding-top: 34px;
  }
}
