/* ============================================================
   明诚大馄饨 Ming Cheng Wonton — Demo Stylesheet
   Design language: warm heritage x clean appetite
   ============================================================ */

:root {
  /* palette — warm broth tones */
  --ink: #2e2620;
  --ink-soft: #57493e;
  --paper: #faf6ef;
  --paper-deep: #f1e8da;
  --broth: #e8d5b5;        /* light warm accent */
  --gold: #b98a3e;         /* primary accent */
  --gold-deep: #96691f;
  --green: #4d6b3a;        /* celery leaf accent */
  --line: #e3d6c2;
  --white: #fffdf9;

  --serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;

  --shadow-soft: 0 18px 40px -18px rgba(46, 38, 32, .35);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { font-family: "Baoli SC", "STBaoli", "Libian SC", "Kaiti SC", var(--serif); font-size: 23px; font-weight: 400; letter-spacing: .04em; }
.brand em { font-style: normal; color: var(--gold-deep); font-family: var(--sans); font-size: .78em; letter-spacing: .12em; font-weight: 600; }
nav.main ul { display: flex; gap: 28px; list-style: none; }
nav.main a {
  font-size: 14.5px; color: var(--ink-soft);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.main a:hover { color: var(--gold-deep); border-color: var(--gold); }
.wa-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.lang-switch { display: flex; gap: 3px; margin-left: 6px; }
.lang-wrap { position: relative; margin-left: 8px; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s; font-family: var(--sans);
}
.lang-current:hover { border-color: var(--gold); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 168px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(46,38,32,.4);
  padding: 6px; list-style: none;
}
.lang-dropdown.open { display: block; }
.lang-dropdown li { margin: 0; padding: 0; }
.lang-dropdown .lang-btn {
  display: block; width: 100%; text-align: left; border: none; background: none;
  color: var(--ink-soft); font-size: 13.5px; padding: 8px 10px; border-radius: 8px;
  cursor: pointer; font-family: var(--sans);
}
.lang-dropdown .lang-btn:hover { background: var(--paper-deep); color: var(--ink); }
.lang-dropdown .lang-btn.active { background: var(--paper-deep); color: var(--gold-deep); font-weight: 700; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 5px 11px; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
}
.mobile-nav {
  display: none; position: absolute; top: 66px; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 10px 24px 16px; box-shadow: 0 18px 30px -18px rgba(46,38,32,.35);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 4px; font-size: 16px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,22,14,.82) 0%, rgba(30,22,14,.35) 55%, rgba(30,22,14,.05) 100%);
}
.hero-inner { position: relative; z-index: 2; color: var(--white); max-width: 620px; padding: 90px 0; }
.hero-kicker {
  font-size: 13px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--broth); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.18; font-weight: 700; margin-bottom: 18px;
}
.hero p.lead { font-size: 18px; color: #efe6d6; max-width: 520px; margin-bottom: 34px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: transform .12s, box-shadow .12s;
}
.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-soft); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--paper-deep); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.eyebrow {
  font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.25; font-weight: 700; margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

/* three value props */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-soft);
}
.value-card .num {
  font-family: var(--serif); color: var(--gold-deep); font-size: 15px; font-weight: 700;
  letter-spacing: .18em; margin-bottom: 12px;
}
.value-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--ink-soft); }

/* menu grid */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dish {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .18s;
}
.dish:hover { transform: translateY(-4px); }
.dish .ph { aspect-ratio: 4/3; overflow: hidden; }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dish:hover .ph img { transform: scale(1.05); }
.dish-body { padding: 18px 20px 22px; }
.dish-body .cn { font-size: 12.5px; color: var(--gold-deep); letter-spacing: .14em; }
.dish-body h3 { font-family: var(--serif); font-size: 19px; margin: 3px 0 8px; }
.dish-body p { font-size: 13.8px; color: var(--ink-soft); }
.dish-body .tag {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600;
  color: var(--green); border: 1px solid rgba(77,107,58,.4); padding: 2px 10px; border-radius: 999px;
}
.dish-body .tag.warm { color: var(--gold-deep); border-color: rgba(185,138,62,.5); }
.dish-price {
  margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--gold-deep);
}
.dish-price small { font-weight: 500; color: var(--ink-soft); font-size: 12px; }
.dish-nutri {
  margin-top: 3px; font-size: 12px; color: #9a8b78;
}
.setmeal {
  margin-top: 34px; display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--ink); color: #f3ead9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.setmeal img { width: 100%; height: 100%; object-fit: cover; }
.setmeal-body { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.setmeal-body .cn { font-size: 12.5px; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.setmeal-body h3 { font-family: var(--serif); font-size: 24px; }
.setmeal-body p { font-size: 14px; color: #cdbfa8; }
.setmeal-body .set-price { font-size: 20px; font-weight: 800; color: #fff; margin-top: 4px; }
.setmeal-body .set-price small { font-size: 12.5px; font-weight: 500; color: #b5a68f; }
@media (max-width: 640px) { .setmeal { grid-template-columns: 1fr; } .setmeal img { max-height: 180px; } }

/* summer special banner */
.summer {
  margin-top: 34px; display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: #eef4f0; border: 1.5px solid #cfe0d4; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft); position: relative;
}
.summer img { width: 100%; height: 100%; object-fit: cover; }
.summer-body { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.summer-body .cn { font-size: 12.5px; letter-spacing: .18em; color: #3e6b4f; text-transform: uppercase; font-weight: 700; }
.summer-body h3 { font-family: var(--serif); font-size: 24px; color: #24402f; }
.summer-body p { font-size: 14px; color: #4d6b5a; }
.summer-body .summer-price { font-size: 18px; font-weight: 800; color: #24402f; margin-top: 4px; }
.summer-badge {
  display: inline-block; align-self: flex-start; margin-bottom: 10px;
  background: #d8603a; color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; padding: 5px 14px; border-radius: 999px;
}
@media (max-width: 640px) { .summer { grid-template-columns: 1fr; } .summer img { max-height: 180px; } }

/* ---------- dish detail modal ---------- */
.dish { cursor: pointer; }
.dish .ph { position: relative; }
.dish .ph::after {
  content: "⤢ 查看大图 / view"; position: absolute; right: 10px; bottom: 10px;
  background: rgba(46,38,32,.72); color: #fff; font-size: 11.5px;
  padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .18s;
  backdrop-filter: blur(2px);
}
.dish:hover .ph::after { opacity: 1; }
.dish-view {
  display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600;
  color: var(--gold-deep); text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30,22,14,.66); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 22px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper); border-radius: 18px; max-width: 980px; width: 100%;
  max-height: 90vh; overflow: auto; position: relative;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.modal-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.modal-ph { background: #eee; min-height: 260px; }
.modal-ph img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.modal-info { padding: 30px 32px 26px; }
.modal-info .cn { font-size: 12.5px; color: var(--gold-deep); letter-spacing: .16em; }
.modal-info h3 { font-family: var(--serif); font-size: 27px; margin: 2px 0 6px; }
.modal-price { font-size: 16px; font-weight: 800; color: var(--gold-deep); margin-bottom: 4px; }
.modal-desc-en { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 4px; }
.modal-desc-cn { font-size: 13px; color: #9a8b78; margin-bottom: 14px; }
.nutri-title {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); border-top: 2.5px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 5px 0; display: flex; justify-content: space-between;
}
.nutri-title span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: 11px; }
.nutri-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nutri-table td { padding: 4.5px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.nutri-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.nutri-table tr.total td { font-weight: 800; color: var(--ink); }
.modal-bowl { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.modal-bowl b { color: var(--ink); }
.modal-note { margin-top: 10px; font-size: 11.5px; color: #a0937f; }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(46,38,32,.78); color: #fff; font-size: 19px; line-height: 1;
  transition: background .15s;
}
.modal-close:hover { background: var(--gold-deep); }
@media (max-width: 760px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-ph img { max-height: 300px; }
}
@media (min-width: 641px) {
  .setmeal { cursor: pointer; }
}

/* story page-ish two col */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.story-block + .story-block { border-top: 1px solid var(--line); }
.story-block.flip .story-ph { order: 2; }
.story-block.text-only { display: block; max-width: 760px; }
.story-block.text-only .story-txt h3 { font-size: 27px; }
.craft-grid {
  margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.craft-grid figure { margin: 0; }
.craft-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; box-shadow: var(--shadow-soft);
}
.craft-grid figcaption {
  margin-top: 6px; font-size: 12.5px; color: var(--gold-deep);
  letter-spacing: .06em;
}
@media (max-width: 640px) { .craft-grid { grid-template-columns: 1fr; } }
.story-ph { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.story-ph.wide { grid-column: 1 / -1; max-width: 720px; }
.story-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.story-duo img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.story-txt h3 { font-family: var(--serif); font-size: 25px; margin-bottom: 6px; }
.story-txt .cn { color: var(--gold-deep); font-size: 13px; letter-spacing: .2em; margin-bottom: 16px; }
.story-txt p { margin-bottom: 14px; font-size: 15px; color: var(--ink-soft); }
.story-txt p strong { color: var(--ink); }

/* locations */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.loc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.loc-card .store-ph { aspect-ratio: 3/2; overflow: hidden; background: var(--paper-deep); }
.loc-card .store-ph img { width: 100%; height: 100%; object-fit: cover; }
.loc-card .loc-body { padding: 26px 30px 28px; }
.loc-card .zone { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.loc-card h3 { font-family: var(--serif); font-size: 24px; margin: 8px 0 6px; }
.loc-card .one-liner { font-style: italic; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.loc-card dl { font-size: 14.5px; display: grid; gap: 6px; }
.loc-card dt { font-weight: 600; color: var(--ink); float: left; margin-right: 8px; }
.loc-card dd { color: var(--ink-soft); }
.loc-card .note { margin-top: 16px; font-size: 13px; color: #9a8b78; border-top: 1px dashed var(--line); padding-top: 12px; }
.map-frame { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.map-frame iframe { display: block; width: 100%; height: 260px; border: 0; background: #eef1ec; }
.map-links { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.map-links a {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  border: 1.2px solid var(--line); color: var(--ink-soft); background: var(--white);
  transition: border-color .15s, color .15s;
}
.map-links a:hover { border-color: var(--gold); color: var(--gold-deep); }
.map-links a.gaode { border-color: rgba(75,174,79,.5); color: #2e8b34; }
.map-links a.baidu { border-color: rgba(58,112,224,.5); color: #2b5fd9; }

/* visit / faq */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pay-chips span {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600;
}
.pay-chips span.note { background: var(--paper-deep); color: var(--ink-soft); font-weight: 500; border-style: dashed; }
.faq-list { list-style: none; }
.faq-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-list h4 { font-size: 16.5px; margin-bottom: 4px; }
.faq-list p { font-size: 14.5px; color: var(--ink-soft); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.form-card label { font-size: 13.5px; font-weight: 600; display: block; margin: 14px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; background: var(--white); color: var(--ink);
}
.form-card input:focus { outline: 2px solid rgba(185,138,62,.5); }

/* footer */
footer.site {
  background: var(--ink); color: #cfc2ae; padding: 60px 0 36px; margin-top: 40px;
}
footer.site .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer.site h4 { color: #fff; font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
footer.site p, footer.site li { font-size: 13.8px; list-style: none; margin-bottom: 6px; color: #b5a68f; }
footer.site li a { transition: color .15s; }
footer.site li a:hover { color: var(--gold); }
footer.site .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #8d7f6c; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* responsive */
@media (max-width: 940px) {
  .values, .menu-grid, .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .story-block, .two-col { grid-template-columns: 1fr; gap: 30px; }
  .story-block.flip .story-ph { order: 0; }
  footer.site .grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  nav.main { display: none; }
  .nav-toggle { display: inline-block; }
  .values, .menu-grid, .loc-grid { grid-template-columns: 1fr; }
  .hero { min-height: 66vh; }
  .topbar-inner { height: 58px; }
  .brand { font-size: 18px; }
  .wa-chip { padding: 6px 11px; font-size: 12px; }
  .lang-current { padding: 5px 9px; font-size: 12px; }
  .lang-dropdown { min-width: 150px; }
}
