/* hidden 属性优先于任何 display 规则（修复灯箱/提示框无法隐藏） */
[hidden] { display: none !important; }

/* ==========================================================================
   JINKDI v2 — modern minimal fine-dining
   Palette: warm off-white paper, near-black ink, deep vermilion accent
   ========================================================================== */

:root {
  --ink: #14110f;
  --bg: #faf8f5;
  --surface: #ffffff;
  --accent: #9a2a20;
  --accent-soft: #b08a5a;
  --muted: #7d766e;
  --line: #e4ded5;
  --line-strong: #cdc5b9;
  --radius: 2px;
  --font-display: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.12;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------------- notice ---------------- */
.notice {
  background: var(--ink);
  color: #f6f2ec;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 9px var(--pad);
}

/* ---------------- top bar ---------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.bar.is-scrolled { border-bottom-color: var(--line); }

.bar-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.bar.is-scrolled .bar-in { padding-top: 12px; padding-bottom: 12px; }

.mark {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mark img { height: 30px; width: auto; }

.links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.links a { position: relative; padding-bottom: 3px; color: #3a3531; }
.links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.links a:hover::after { transform: scaleX(1); }
.links .cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: var(--radius);
  color: var(--ink);
}
.links .cta::after { display: none; }
.links .cta:hover { background: var(--ink); color: var(--bg); }

.bar-right { display: flex; align-items: center; gap: 18px; }

.langs {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.14em;
  flex-wrap: wrap;
}
.langs .lang {
  position: relative;
  padding: 6px 12px;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}
.langs .lang + .lang::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  transform: translateY(-50%);
  background: var(--line);
}
.langs .lang:hover { color: var(--ink); }
.langs .lang.is-on { color: var(--bg); background: var(--ink); }
.langs .lang.is-on::before { display: none; }

.burger { display: none; width: 30px; height: 22px; position: relative; }
.burger span {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger span:first-child { top: 6px; }
.burger span:last-child { bottom: 6px; }
.bar.is-open .burger span:first-child { transform: translateY(5px) rotate(45deg); }
.bar.is-open .burger span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  height: min(88vh, 820px);
  min-height: 520px;
  overflow: hidden;
  background: #1a1613;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.hero-slide.is-on { opacity: 1; pointer-events: auto; }

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 9s linear;
}
.hero-slide.is-on .hero-media { transform: scale(1); }
.hero-media--plain {
  background: radial-gradient(120% 90% at 20% 10%, #3a2f28 0%, #16120f 60%, #0c0a09 100%);
}
.hero-media video.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding: 0 var(--pad) clamp(48px, 9vh, 96px);
  max-width: var(--max);
  margin: 0 auto;
  color: #f7f3ed;
}
.hero-copy .kicker { color: rgba(247, 243, 237, 0.72); margin-bottom: 22px; }
.hero-copy h1 {
  font-size: clamp(38px, 6.4vw, 84px);
  max-width: 17ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: clamp(14px, 1.2vw, 17px);
  color: rgba(247, 243, 237, 0.82);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
  border: 1px solid transparent;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: #7f1f17; }
.btn--line { border-color: rgba(247, 243, 237, 0.5); color: #f7f3ed; }
.btn--line:hover { background: #f7f3ed; color: var(--ink); border-color: #f7f3ed; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }

.hero-dots {
  position: absolute;
  right: var(--pad);
  bottom: clamp(48px, 9vh, 96px);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.dot {
  width: 26px; height: 2px;
  background: rgba(247, 243, 237, 0.35);
  transition: background 0.3s ease;
}
.dot.is-on { background: #f7f3ed; }

/* ---------------- sections ---------------- */
.sec { padding: clamp(72px, 11vw, 132px) 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.sec-head--left { margin-bottom: 44px; }
.sec-sub { margin: 20px 0 0; color: var(--muted); font-size: 18px; font-weight: 700; max-width: 56ch; }

/* ---------------- menu ---------------- */
.menu-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.menu-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.chip:hover { color: var(--ink); }
.chip.is-on { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }

.search input {
  width: clamp(180px, 24vw, 260px);
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 14px;
  outline: none;
}
.search input:focus { border-bottom-color: var(--ink); }

/* subgroup filter (e.g. meat types inside 正餐) */
.subchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.subchips .subchip { padding: 7px 15px; font-size: 14px; font-weight: 700; }
.dish-group {
  list-style: none;
  grid-column: 1 / -1;
  margin: 26px 0 2px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line-strong);
}
.dish-group:first-child { margin-top: 6px; }
.dish-group span {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.dish-group[hidden] { display: none; }

.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}
.dish {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.dish:hover { box-shadow: 0 14px 34px rgba(20, 17, 15, 0.08); transform: translateY(-2px); }
.dish[hidden] { display: none; }

.dish-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: #f1ece4;
  overflow: hidden;
}
.dish-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dish-thumb video.dish-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.dish:hover .dish-thumb img { transform: scale(1.04); }
.dish-thumb--plain {
  display: grid;
  place-items: center;
  color: #a49a8d;
  font-family: var(--font-display);
  font-size: 46px;
}
.dish-num {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(250, 248, 245, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: normal;
}

.dish-main { flex: 1 1 auto; display: flex; flex-direction: column; padding: 15px 17px 16px; }
.dish-line { display: flex; align-items: baseline; gap: 10px; }
.dish-line h3 { font-size: 17.5px; flex: 0 1 auto; }
.dish-price { font-family: var(--font-display); font-size: 17px; white-space: nowrap; }
.dish-desc { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.dish-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dish-tags { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.dish-tags em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(154, 42, 32, 0.28);
  padding-bottom: 2px;
}

.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------------- about ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.about-text h2 { font-size: clamp(30px, 3.6vw, 52px); margin-bottom: 28px; }
.para { color: #383330; font-size: 16.5px; margin: 0 0 18px; max-width: 58ch; }
.about-fig { margin: 0 0 34px; overflow: hidden; border-radius: var(--radius); }
.about-fig img { width: 100%; height: clamp(280px, 42vw, 460px); object-fit: cover; }
.about-fig--plain {
  height: clamp(280px, 42vw, 460px);
  background: linear-gradient(160deg, #efe9e0, #ded5c8);
}

.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.highlights li { display: flex; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.highlights .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.highlights h4 { font-size: 17px; margin-bottom: 6px; }
.highlights p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------- gallery ---------------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gal {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
  background: #eee7dd;
  border-radius: var(--radius);
}
.gal:nth-child(6n + 1),
.gal:nth-child(6n + 4) { grid-column: span 2; aspect-ratio: 8 / 5; }
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease, opacity 0.6s ease;
}
.gal:hover img { transform: scale(1.05); }

/* ---------------- contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(28px, 3.2vw, 46px); }

.info { list-style: none; margin: 40px 0 0; padding: 0; }
.info > li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.info > li > span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.info p { margin: 0; }
.info a { border-bottom: 1px solid var(--line-strong); }
.info a:hover { border-bottom-color: var(--ink); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 18px; max-width: 300px; padding: 2px 0; }
.hours b { font-weight: 500; }

.contact-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.contact-links .btn--line { border-color: var(--line-strong); color: var(--ink); }
.contact-links .btn--line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.socials { display: flex; gap: 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--ink); }

/* ---------------- reservation ---------------- */
.resv {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
}
.resv h3 { font-size: clamp(24px, 2.4vw, 32px); }
.resv-note { color: var(--muted); font-size: 14px; margin: 12px 0 30px; }

.resv-form { display: grid; gap: 18px; }
.fld-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld > span {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.fld input, .fld textarea, .fld select.ds {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
  font: inherit;
  color: inherit;
}
.fld input:focus, .fld textarea:focus, .fld select.ds:focus { border-bottom-color: var(--ink); }
.fld textarea { resize: vertical; }
.date-sel { display: flex; gap: 12px; }
.date-sel .ds { min-width: 0; }
.date-sel .ds-y { max-width: 95px; }
.date-sel .ds-d { max-width: 78px; }
.fld-row--date { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 560px) {
  .fld-row--date { grid-template-columns: 1fr; }
}

.resv-msg { margin: 4px 0 0; font-size: 14px; }
.resv-msg.is-ok { color: #2f6f4e; }
.resv-msg.is-err { color: var(--accent); }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 76px) 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.mark--foot { font-size: 18px; margin: 0 0 10px; }
.foot-text { margin: 0; color: var(--muted); font-size: 14px; max-width: 34ch; }
.foot-right { text-align: right; font-size: 12px; color: var(--muted); }
.foot-right p { margin: 0 0 8px; }
.foot-langs a:hover { color: var(--ink); }
.foot-admin {
  display: inline-block;
  margin-top: 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
.foot-admin:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------------- lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 10, 9, 0.94);
  display: grid;
  place-items: center;
  padding: 5vh 6vw;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 88vw; object-fit: contain; }
.lb-close {
  position: absolute; top: 18px; right: 26px;
  font-size: 34px; line-height: 1; color: #f7f3ed; opacity: 0.8;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 44px; color: #f7f3ed; opacity: 0.65; padding: 12px 18px;
}
.lb-nav:hover, .lb-close:hover { opacity: 1; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .dish-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal:nth-child(6n + 1), .gal:nth-child(6n + 4) { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (max-width: 780px) {
  .burger { display: block; }
  .links {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px var(--pad) 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s ease;
  }
  .bar.is-open .links { transform: translateY(0); }
  .links a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .links .cta { border: 0; padding: 15px 0; }
  .links .cta:hover { background: none; color: var(--accent); }
  .bar-right { margin-left: auto; }
  .hero { height: 76vh; }
  .hero-copy { padding-bottom: 54px; }
  .hero-dots { display: none; }
  .info > li { grid-template-columns: 1fr; gap: 6px; }
  .foot-in { flex-direction: column; }
  .foot-right { text-align: left; }
}

@media (max-width: 520px) {
  .langs { font-size: 10px; }
  .langs .lang { padding: 5px 7px; }
  .gal-grid { grid-template-columns: 1fr; }
  .gal:nth-child(6n + 1), .gal:nth-child(6n + 4) { grid-column: span 1; }
  .dish-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media, .gal img, .hero-slide { transition: none; }
}

/* ==========================================================================
   Online ordering + video call
   ========================================================================== */
.dish-buy { display: flex; align-items: center; gap: 14px; }
.dish-add {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
  font-size: 24px; line-height: 1; cursor: pointer; font-family: inherit;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.dish-add:hover { background: var(--accent); color: #fff; }
.dish-add.is-hit { transform: scale(.84); background: var(--accent); color: #fff; }

/* floating buttons */
.cart-fab, .vid-fab {
  position: fixed; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 9px;
  border: 0; cursor: pointer; font-family: inherit; font-size: 15px;
  box-shadow: 0 12px 34px rgba(20, 17, 15, .26); transition: transform .18s ease, box-shadow .18s ease;
}
.cart-fab:hover, .vid-fab:hover { transform: translateY(-2px); }
.cart-fab {
  right: 22px; padding: 15px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600;
}
.cart-fab .cart-ico { font-size: 18px; }
.cart-fab .cart-n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--accent); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.cart-fab.is-pop { animation: fabPop .42s ease; }
@keyframes fabPop {
  0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); }
}
.vid-fab {
  left: 22px; padding: 13px 18px; border-radius: 999px;
  background: var(--surface, #fff); color: var(--ink);
  border: 1px solid rgba(20, 17, 15, .12); font-size: 14px;
}
.vid-fab .vid-ico { font-size: 17px; }
@media (max-width: 720px) { .vid-fab .vid-txt { display: none; } .vid-fab { padding: 14px; } }

/* cart drawer */
.cart { position: fixed; inset: 0; z-index: 200; }
.cart-mask { position: absolute; inset: 0; background: rgba(14, 12, 10, .48); animation: maskIn .2s ease; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--surface, #fff); display: flex; flex-direction: column;
  box-shadow: -18px 0 60px rgba(20, 17, 15, .20); animation: panelIn .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes panelIn { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.cart-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 20px 22px 16px; border-bottom: 1px solid rgba(20, 17, 15, .08);
}
.cart-head h3 { margin: 0; flex: 1; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cart-x {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(20, 17, 15, .05);
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.cart-step { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 16px 22px 22px; }
.cart-list { flex: 1 1 auto; }
.ci { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(20, 17, 15, .07); }
.ci-main { flex: 1 1 auto; min-width: 0; }
.ci-main b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.ci-price { font-size: 12px; color: rgba(20, 17, 15, .5); }
.ci-qty { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ci-qty button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(20, 17, 15, .14);
  background: transparent; font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink);
}
.ci-qty b { min-width: 22px; text-align: center; font-size: 14px; }
.ci-sum { flex: 0 0 auto; min-width: 74px; text-align: right; font-size: 14px; font-weight: 600; }
.cart-empty { flex: 1 1 auto; display: grid; place-items: center; text-align: center; color: rgba(20, 17, 15, .45); font-size: 14px; padding: 40px 10px; line-height: 1.7; }
.cart-foot { flex: 0 0 auto; padding-top: 16px; }
.cart-sum { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; margin: 0 0 12px; }
.cart-sum b { font-size: 20px; letter-spacing: -.01em; }
.cart-sum--line { border-top: 1px solid rgba(20, 17, 15, .08); padding-top: 14px; margin-top: 6px; }
.cart-fee { margin: -6px 0 12px; font-size: 12.5px; color: rgba(20, 17, 15, .55); }
.cart-actions { display: flex; gap: 10px; }
.cart-actions .btn { flex: 1; }
.btn--wide { width: 100%; }
.cart .fld { display: block; margin-bottom: 12px; }
.cart .fld > span { display: block; font-size: 12.5px; font-weight: 600; color: rgba(20, 17, 15, .62); margin-bottom: 6px; }
.cart .fld input, .cart .fld textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(20, 17, 15, .14); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
}
.cart .fld input:focus, .cart .fld textarea:focus { outline: 2px solid rgba(154, 42, 32, .25); border-color: var(--accent); }

.seg { display: flex; gap: 6px; padding: 4px; background: rgba(20, 17, 15, .05); border-radius: 999px; margin-bottom: 18px; }
.seg-b {
  flex: 1; padding: 10px 8px; border: 0; background: transparent; border-radius: 999px;
  font-family: inherit; font-size: 13.5px; cursor: pointer; color: rgba(20, 17, 15, .6); font-weight: 600;
}
.seg-b.is-on { background: var(--surface, #fff); color: var(--ink); box-shadow: 0 2px 10px rgba(20, 17, 15, .10); }

/* success step */
.cart-done { align-items: center; text-align: center; justify-content: center; gap: 4px; }
.cart-done-ico {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: #eef7ee; color: #2e7d32; font-size: 32px; margin-bottom: 14px;
}
.cart-done h4 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.cart-orderno { margin: 10px 0 4px; font-size: 12.5px; color: rgba(20, 17, 15, .55); }
.cart-orderno b { display: block; margin-top: 5px; font-size: 18px; color: var(--ink); letter-spacing: .05em; }
.cart-done-sum { margin: 6px 0 20px; font-size: 13.5px; color: rgba(20, 17, 15, .6); }
.cart-done .cart-actions { width: 100%; margin-bottom: 10px; }
/* 成功页按钮更醒目：深色文字/边框，加粗加大 */
.cart-done .btn {
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  padding: 15px 20px; border-radius: 12px; text-transform: none;
}
.cart-done .btn--line { border: 2px solid rgba(20, 17, 15, .65); color: var(--ink); background: #fff; }
.cart-done .btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-done .btn--solid { font-size: 15px; font-weight: 700; }

/* ============ in-page live chat (no popup / no video / no WhatsApp) ============ */
.chat { position: fixed; inset: 0; z-index: 210; }
.chat-mask { position: absolute; inset: 0; background: rgba(14, 12, 10, .48); animation: maskIn .2s ease; }
.chat-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--surface, #fff); display: flex; flex-direction: column;
  box-shadow: -18px 0 60px rgba(20, 17, 15, .20); animation: panelIn .28s cubic-bezier(.22,.61,.36,1);
}
.chat-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 20px 22px 16px; border-bottom: 1px solid rgba(20, 17, 15, .08);
}
.chat-head h3 { margin: 0; flex: 1; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.chat-clear {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(20, 17, 15, .14);
  background: transparent; font-size: 13px; color: var(--ink); cursor: pointer;
}
.chat-clear:hover { background: rgba(20, 17, 15, .06); }
.chat-x {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(20, 17, 15, .05);
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.chat-wait { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 14px; }
.chat-pulse { width: 74px; height: 74px; border-radius: 50%; background: var(--accent, #9a2a20); color: #fff; display: grid; place-items: center; font-size: 32px; animation: chatPulse 1.8s ease-out infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(154, 42, 32, .55); } 70% { box-shadow: 0 0 0 30px rgba(154, 42, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(154, 42, 32, 0); } }
.chat-wait p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(20, 17, 15, .55); max-width: 340px; }
.chat-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cmsg { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap; }
.cmsg.me { align-self: flex-end; background: var(--accent, #9a2a20); color: #fff; border-bottom-right-radius: 4px; }
.cmsg.other { align-self: flex-start; background: rgba(20, 17, 15, .06); color: var(--ink); border-bottom-left-radius: 4px; }
.cmsg.sys { align-self: center; background: transparent; font-size: 12.5px; color: rgba(20, 17, 15, .5); text-align: center; max-width: 92%; }
.cmsg .cwho { display: block; font-size: 11px; opacity: .6; margin-bottom: 2px; }
.chat-inputbar { flex: 0 0 auto; display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(20, 17, 15, .08); }
.chat-inputbar textarea { flex: 1 1 auto; resize: none; border: 1px solid rgba(20, 17, 15, .16); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-family: inherit; height: 44px; min-height: 44px; }
.chat-inputbar textarea:focus { outline: 2px solid rgba(154, 42, 32, .25); border-color: var(--accent); }
.chat-inputbar .chat-send { flex: 0 0 auto; }
.chat-inputbar .chat-voice {
  flex: 0 0 auto; height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(20, 17, 15, .16); background: #fff; color: var(--ink);
  font-size: 18px; cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.chat-inputbar .chat-voice.is-rec { background: var(--accent, #9a2a20); color: #fff; border-color: var(--accent); animation: chatRecPulse 1s ease-in-out infinite; }
@keyframes chatRecPulse { 50% { opacity: .65; } }
.cmsg-audio { max-width: 200px; height: 40px; }
.cmsg .cmsg-dur { display: inline-block; margin-left: 8px; font-size: 11px; opacity: .6; vertical-align: middle; }
.cmsg.me .cmsg-audio { filter: brightness(.92); }

/* background music player */
.music {
  position: fixed; right: 22px; bottom: 84px; z-index: 58;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface, #fff); color: var(--ink);
  border: 1px solid rgba(20, 17, 15, .12);
  border-radius: 999px; padding: 7px 10px 7px 7px;
  box-shadow: 0 10px 28px rgba(20, 17, 15, .22);
  font-size: 13px; max-width: 240px;
}
.music-btn {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--accent, #9a2a20); color: #fff; font-size: 17px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.music-btn:hover { transform: translateY(-1px); }
.music.is-playing .music-btn { animation: musicPulse 1.6s ease-in-out infinite; }
@keyframes musicPulse { 50% { box-shadow: 0 0 0 7px rgba(154, 42, 32, .14); } }
.music-ico { line-height: 1; }
.music-info { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; }
.music-note { flex: 0 0 auto; font-size: 13px; opacity: .7; }
.music.is-playing .music-note { animation: musicNote 1s ease-in-out infinite; }
@keyframes musicNote { 50% { transform: translateY(-2px); opacity: 1; } }
.music-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; opacity: .85; }
.music-next {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(20, 17, 15, .07); color: var(--ink);
  font-size: 13px; display: grid; place-items: center;
}
.music-next:hover { background: rgba(20, 17, 15, .12); }
@media (max-width: 720px) {
  .music { bottom: 78px; right: 14px; max-width: 180px; }
  .music-name { max-width: 70px; }
}

/* member register / login modal */
.member-link { font-weight: 700; color: var(--accent, #9a2a20) !important; }
.member { position: fixed; inset: 0; z-index: 210; }
.member-mask { position: absolute; inset: 0; background: rgba(14, 12, 10, .48); animation: maskIn .2s ease; }
.member-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px)); background: var(--surface, #fff);
  border-radius: 18px; box-shadow: 0 24px 70px rgba(20, 17, 15, .28);
  display: flex; flex-direction: column; padding: 24px;
  animation: memberPop .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes memberPop { from { transform: translate(-50%, -48%) scale(.96); opacity: .5; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.member-head { display: flex; align-items: center; gap: 12px; }
.member-head h3 { margin: 0; flex: 1; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.member-x {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(20, 17, 15, .05);
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.member-sub { margin: 10px 0 16px; font-size: 14px; color: rgba(20, 17, 15, .6); line-height: 1.5; }
.member-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.member-tab {
  flex: 1; padding: 9px; border-radius: 10px; border: 1px solid rgba(20, 17, 15, .12);
  background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink);
  transition: all .2s ease;
}
.member-tab.is-on { background: var(--accent, #9a2a20); border-color: var(--accent, #9a2a20); color: #fff; }
.member-form { display: flex; flex-direction: column; gap: 12px; }
.member-form .fld { display: flex; flex-direction: column; gap: 6px; }
.member-form .fld span { font-size: 12.5px; color: rgba(20, 17, 15, .55); }
.member-form .fld input {
  padding: 11px 13px; border: 1px solid rgba(20, 17, 15, .16); border-radius: 10px;
  font-size: 15px; outline: none; background: transparent; color: var(--ink);
}
.member-form .fld input:focus { border-color: var(--accent, #9a2a20); }
.member-done { text-align: center; padding: 18px 6px 6px; }
.member-done-ico { font-size: 42px; margin-bottom: 12px; }
.member-done p { font-size: 15px; line-height: 1.6; margin: 0 0 16px; color: rgba(20, 17, 15, .8); }
