/* ==========================================================
   私人厨房 · 情侣点菜 H5  —  设计稿样式
   移动优先 / 平板 / 桌面 三档适配
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --cream:      #FBF6EF;
  --cream-2:    #F5EBE1;
  --cream-3:    #EFE2D5;
  --card:       #FFFFFF;
  --ink:        #2A2420;
  --ink-2:      #6B5F56;
  --ink-3:      #A2958B;
  --terra:      #C4603C;
  --terra-2:    #A9492A;
  --terra-soft: #F6E2D8;
  --sage:       #6E8B74;
  --sage-soft:  #E4ECE5;
  --gold:       #D9A05B;
  --line:       rgba(42, 36, 32, .08);
  --shadow-sm:  0 2px 10px rgba(120, 80, 55, .06);
  --shadow:     0 10px 30px rgba(120, 80, 55, .10);
  --shadow-lg:  0 24px 70px rgba(120, 80, 55, .18);
  --r-xs: 10px; --r-sm: 14px; --r: 20px; --r-lg: 28px; --r-xl: 36px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans:  "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(900px 520px at 10% -12%, rgba(217, 160, 91, .20), transparent 62%),
    radial-gradient(720px 440px at 94%   2%, rgba(110, 139, 116, .15), transparent 62%),
    radial-gradient(860px 520px at 50% 112%, rgba(196, 96, 60, .10), transparent 62%);
  background-attachment: fixed;
  line-height: 1.62;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
p { margin: 0; }

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.page { padding-bottom: calc(120px + var(--safe-b)); }

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

/* ---------- 通用小元素 ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra); font-weight: 600;
}
.muted { color: var(--ink-2); }
.tiny  { font-size: 13px; color: var(--ink-3); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--terra-soft); color: var(--terra-2);
}
.pill.sage { background: var(--sage-soft); color: #4F6A55; }
.pill.ghost { background: rgba(255,255,255,.7); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .02em;
  background: var(--ink); color: #FFF8F1;
  box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary { background: linear-gradient(135deg, #D2724A, var(--terra-2)); }
.btn.ghost {
  background: rgba(255,255,255,.72); color: var(--ink);
  border: 1px solid rgba(42,36,32,.10); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- 顶部导航（桌面/移动通用） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(251, 246, 239, .82);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
}
@media (min-width: 768px) { .topbar .inner { padding: 14px 32px; } }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 19px;
  background: linear-gradient(140deg, #F7DCC8, #E9B695);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), var(--shadow-sm);
}
.brand .name { font-family: var(--serif); font-size: 16.5px; font-weight: 600; white-space: nowrap; }
.brand .sub  { font-size: 11.5px; color: var(--ink-3); letter-spacing: .12em; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 17px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }

/* ==========================================================
   ① 封面页 index.html
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 63px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0 56px;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-deco span {
  position: absolute; font-size: 26px; opacity: .5;
  filter: saturate(.9);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(8deg); }
}

.avatar-pair {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.avatar-pair .av {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; font-size: 32px;
  background: #fff; border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.avatar-pair .av.b { background: linear-gradient(140deg,#F7DCC8,#E9B695); margin-left: -20px; }
.avatar-pair .av.g { background: linear-gradient(140deg,#DDE8DE,#B9CDBD); }
.avatar-pair .ring {
  width: 40px; height: 40px; margin: 0 2px;
  display: grid; place-items: center; font-size: 18px;
}

.hero-title {
  text-align: center;
  font-size: clamp(30px, 8.4vw, 62px);
  line-height: 1.22;
  letter-spacing: .01em;
}
.hero-title em {
  font-style: normal; color: var(--terra-2);
  position: relative; white-space: nowrap;
}
.hero-title em::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: .06em;
  height: .34em; border-radius: 999px; z-index: -1;
  background: linear-gradient(90deg, rgba(217,160,91,.42), rgba(196,96,60,.28));
}
.hero-sub {
  text-align: center; margin: 18px auto 0; max-width: 34em;
  font-size: clamp(14px, 3.6vw, 17px); color: var(--ink-2);
}

.hero-meta {
  margin: 34px auto 0; max-width: 620px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(10px);
  overflow: hidden;
}
.hero-meta div { padding: 16px 8px; text-align: center; }
.hero-meta div + div { border-left: 1px solid var(--line); }
.hero-meta b { display: block; font-family: var(--serif); font-size: 20px; }
.hero-meta span { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }

.hero-actions {
  margin: 34px auto 0; max-width: 460px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
  .hero-actions .btn { min-width: 190px; }
}

.hero-foot {
  margin-top: 40px; text-align: center;
  font-size: 12.5px; color: var(--ink-3); letter-spacing: .1em;
}

/* 入场动画 */
.rise { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.75,.25,1) forwards; }
.rise[data-d="1"] { animation-delay: .06s; }
.rise[data-d="2"] { animation-delay: .16s; }
.rise[data-d="3"] { animation-delay: .26s; }
.rise[data-d="4"] { animation-delay: .36s; }
.rise[data-d="5"] { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================
   ② 菜单页 menu.html
   ========================================================== */
.menu-head { padding: 26px 0 8px; }
.menu-head h1 { font-size: clamp(24px, 6vw, 38px); }
.menu-head .row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 10px;
}
.menu-head p { color: var(--ink-2); font-size: 14px; max-width: 46em; }

.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; }
/* 关键：grid 子项默认 min-width:auto，会被内容（比如横向滚动的分类条）顶破容器，
   表现为手机上「整体被撑宽、布局错位」。必须显式归零。 */
.menu-layout > * { min-width: 0; }

/* 分类 */
.cats {
  display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
  /* 横向滚动容器必须 min-width:0，否则它所有标签的总宽度
     会变成父级的最小宽度，把整个 grid 轨道顶宽（手机上就是布局错位）。 */
  min-width: 0;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .2s;
}
.cat:hover { background: #fff; color: var(--ink); }
.cat.on {
  background: var(--ink); color: #FFF6EE; border-color: var(--ink);
  box-shadow: var(--shadow);
}
.cat .n { font-size: 11.5px; opacity: .6; }

/* 菜单说明条 */
.note-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r);
  background: linear-gradient(120deg, rgba(110,139,116,.14), rgba(217,160,91,.14));
  border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.note-strip .ico { font-size: 20px; }

/* 菜品网格 */
.dish-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
@media (min-width: 560px)  { .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .menu-layout { grid-template-columns: 214px minmax(0, 1fr); gap: 30px; align-items: start; }
  .cats-side { position: sticky; top: 84px; display: grid; gap: 8px; }
  .cats-side .cats { flex-direction: column; overflow: visible; }
  .cats-side .cat { justify-content: space-between; width: 100%; height: 46px; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .note-strip { margin-bottom: 4px; }
}

.dish {
  position: relative; text-align: left; width: 100%;
  background: var(--card); border-radius: var(--r);
  border: 1px solid rgba(42,36,32,.06);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
  display: flex; flex-direction: column;
  /* 移动端必需：iOS Safari / 部分安卓浏览器只对「看起来可点击」的元素派发 click 事件，
     没有 cursor:pointer 的话，点了完全没反应，而且不报错。 */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.dish .art {
  position: relative; aspect-ratio: 16 / 11;
  display: grid; place-items: center; font-size: 56px;
  overflow: hidden;
}
.dish .art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 62%);
}
.dish .art > span { position: relative; z-index: 1; filter: drop-shadow(0 8px 14px rgba(150,90,60,.28)); }

/* 实拍图：铺满卡片顶部，保持比例裁切 */
.art-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.dish .art::after { z-index: 2; }          /* 让高光层压在图上 */
.dish .ribbon, .dish .fav { z-index: 3; }
.art-img-lg { position: static; height: 100%; min-height: 220px; }

/* 清单/小票里的小缩略图 */
.thumb-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.g1 { background: linear-gradient(145deg,#FBE3D2,#EFC4A6); }
.g2 { background: linear-gradient(145deg,#E7EFE4,#C9DCCB); }
.g3 { background: linear-gradient(145deg,#FDEBD0,#F0CE9B); }
.g4 { background: linear-gradient(145deg,#F7DFE4,#EABEC8); }
.g5 { background: linear-gradient(145deg,#E4EAF2,#C3D2E4); }
.g6 { background: linear-gradient(145deg,#F3E7D8,#DFC6A8); }

.dish .ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(255,255,255,.86); color: var(--terra-2);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}
.dish .fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(255,255,255,.86); box-shadow: var(--shadow-sm);
}

.dish .body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish h3 { font-size: 16.5px; }
.dish .desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.dish .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.dish .meta i { font-style: normal; }

.dish .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px dashed var(--line); gap: 10px;
}
.hearts { font-size: 12.5px; letter-spacing: .12em; color: var(--terra); }
.hearts span { color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.add-btn {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 18px; line-height: 1;
  background: var(--ink); color: #FFF6EE;
  transition: transform .18s, background .18s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative; z-index: 2;
}
.add-btn:hover { transform: scale(1.1) rotate(90deg); background: var(--terra-2); }

/* ---------- 菜品详情：底部抽屉 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(42,36,32,.42); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(102%);
  transition: transform .36s cubic-bezier(.2,.85,.25,1);
  max-height: 92vh; overflow-y: auto;
  padding-bottom: calc(18px + var(--safe-b));
  /* 关键：隐藏时必须同时禁用命中测试。
     只写 transform/opacity 的话，桌面上它是一个 720×88vh 的透明盒子，
     会把屏幕正中间的点击全部吃掉，表现为「有些地方点不动，而且毫无反应」。 */
  pointer-events: none;
}
.sheet.on { transform: none; pointer-events: auto; }
.sheet .grab {
  width: 44px; height: 5px; border-radius: 999px; margin: 12px auto 4px;
  background: rgba(42,36,32,.14);
}
.sheet .sheet-art {
  margin: 14px 18px 0; border-radius: var(--r);
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 66px;
}
.sheet .sheet-body { padding: 20px 20px 22px; }
.sheet h2 { font-size: 24px; }
.sheet .desc { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
.sheet .specs { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sheet .specs h4 { font-size: 13.5px; color: var(--ink-2); letter-spacing: .06em; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt {
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px;
  background: var(--cream-2); color: var(--ink-2); border: 1px solid transparent;
  transition: all .18s;
}
.opt:hover { background: var(--cream-3); }
.opt.on { background: var(--terra-soft); color: var(--terra-2); border-color: rgba(196,96,60,.32); font-weight: 600; }

.qty {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--cream-2); border-radius: 999px; padding: 4px;
}
.qty button {
  width: 36px; height: 36px; border-radius: 50%; font-size: 19px; line-height: 1;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--ink);
}
.qty button:hover { background: var(--terra-soft); color: var(--terra-2); }
.qty b { min-width: 34px; text-align: center; font-size: 16px; font-family: var(--serif); }

.sheet-foot {
  position: sticky; bottom: 0;
  margin-top: 20px; padding: 14px 20px calc(4px + var(--safe-b));
  /* 窄屏下让数量选择器和按钮能换行，别互相挤压 */
  flex-wrap: wrap;
  background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0));
  display: flex; align-items: center; gap: 14px;
}

@media (min-width: 768px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(720px, 92vw);
    border-radius: var(--r-xl);
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    display: grid; grid-template-columns: 300px minmax(0, 1fr);
    max-height: 88vh; overflow: hidden;
  }
  .sheet.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet .sheet-art {
    margin: 0; border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 420px; font-size: 84px;
  }
  .sheet .sheet-scroll { overflow-y: auto; display: flex; flex-direction: column; }
  .sheet .sheet-body { flex: 1; padding: 26px 26px 8px; }
}

/* ---------- 底部购物车条 ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(14px + var(--safe-b));
  background: linear-gradient(to top, rgba(251,246,239,.98) 55%, rgba(251,246,239,0));
  transform: translateY(120%); transition: transform .34s cubic-bezier(.2,.85,.25,1);
  pointer-events: none;
}
.cartbar.on { transform: none; pointer-events: auto; }
.cartbar .inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px 11px 18px; border-radius: 999px;
  background: var(--ink); color: #FFF6EE;
  box-shadow: var(--shadow-lg);
}
.cartbar .badge {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 19px;
  background: linear-gradient(135deg,#D2724A,var(--terra-2));
  box-shadow: 0 0 0 3px rgba(255,246,238,.14);
}
.cartbar .badge em {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #FFF6EE; color: var(--terra-2);
  font-size: 11.5px; font-style: normal; font-weight: 700;
  display: grid; place-items: center;
}
.cartbar .sum { flex: 1; min-width: 0; }
.cartbar .sum b { display: block; font-family: var(--serif); font-size: 15.5px; }
.cartbar .sum span { font-size: 12px; opacity: .68; }
.cartbar .go {
  height: 42px; padding: 0 20px; border-radius: 999px; flex: none;
  background: #FFF6EE; color: var(--ink); font-weight: 700; font-size: 14.5px;
  transition: transform .18s;
}
.cartbar .go:hover { transform: translateY(-1px); }

/* ==========================================================
   ③ 订单确认 cart.html
   ========================================================== */
.panel {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid rgba(42,36,32,.06); box-shadow: var(--shadow-sm);
  padding: 22px 20px;
}
@media (min-width: 768px) { .panel { padding: 30px 32px; } }

.cart-layout { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 1024px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
  .cart-aside { position: sticky; top: 84px; }
}

.li {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0; border-bottom: 1px dashed var(--line);
}
.li:last-child { border-bottom: 0; padding-bottom: 0; }
.li .thumb {
  width: 58px; height: 58px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; font-size: 27px;
}
.li .info { flex: 1; min-width: 0; }
.li .info b { display: block; font-family: var(--serif); font-size: 15.5px; }
.li .info span { font-size: 12.5px; color: var(--ink-3); }
.li .hearts { flex: none; font-size: 12px; }

.field { margin-top: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.field textarea, .field input[type="text"] {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 15px; resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 96px; }
.field textarea:focus, .field input[type="text"]:focus {
  outline: 0; background: #fff; border-color: rgba(196,96,60,.4);
  box-shadow: 0 0 0 4px rgba(196,96,60,.10);
}
.field textarea::placeholder { color: #BEB2A8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px;
  background: var(--cream-2); color: var(--ink-2); border: 1px solid transparent;
  transition: all .18s;
}
.chip:hover { background: var(--cream-3); }
.chip.on { background: var(--sage-soft); color: #47604D; border-color: rgba(110,139,116,.4); font-weight: 600; }

.sum-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; font-size: 14.5px; color: var(--ink-2);
}
.sum-row.total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px;
  font-family: var(--serif); font-size: 19px; color: var(--ink);
}
.sum-row.total b { color: var(--terra-2); font-size: 24px; }
.trust {
  margin-top: 16px; font-size: 12.5px; color: var(--ink-3);
  display: flex; gap: 8px; align-items: flex-start;
}

/* ==========================================================
   ④ 点单成功 success.html
   ========================================================== */
.done {
  min-height: calc(100vh - 63px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 46px 20px 70px;
}
.heart-big {
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; font-size: 52px;
  background: linear-gradient(140deg,#FBE3D2,#EFC4A6);
  box-shadow: 0 22px 50px rgba(196,96,60,.24), inset 0 0 0 8px rgba(255,255,255,.55);
  animation: beat 1.5s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.09); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.06); }
  56%      { transform: scale(1); }
}
.done h1 { margin-top: 28px; font-size: clamp(26px, 7vw, 42px); }
.done .lead { margin-top: 14px; color: var(--ink-2); max-width: 30em; font-size: 15.5px; }

.ticket {
  margin-top: 34px; width: 100%; max-width: 460px; text-align: left;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid rgba(42,36,32,.06);
}
.ticket .top {
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, rgba(217,160,91,.20), rgba(196,96,60,.14));
}
.ticket .top b { font-family: var(--serif); font-size: 16px; }
.ticket .perf {
  height: 18px; background:
    radial-gradient(circle at 9px 9px, var(--cream) 9px, transparent 9.5px) repeat-x;
  background-size: 22px 18px; margin-top: -9px;
}
.ticket .list { padding: 8px 22px 20px; }
.ticket .list .li { padding: 11px 0; }
.ticket .list .li .thumb { width: 44px; height: 44px; font-size: 21px; border-radius: 12px; }

.done .acts { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================
   ⑤ 总览 overview.html
   ========================================================== */
.ov-head { padding: 44px 0 10px; text-align: center; }
.ov-head h1 { font-size: clamp(26px, 6.6vw, 44px); }
.ov-head p { margin: 14px auto 0; max-width: 44em; color: var(--ink-2); font-size: 15px; }

.ov-group { margin-top: 44px; }
.ov-group > h2 {
  font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.ov-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.frames { display: flex; gap: 22px; overflow-x: auto; padding: 6px 2px 22px; }
.frames.grid { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; }
@media (min-width: 900px) { .frames.grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.frame { flex: none; }
.frame .cap { margin-top: 12px; display: flex; align-items: baseline; gap: 9px; }
.frame .cap b { font-family: var(--serif); font-size: 15.5px; }
.frame .cap span { font-size: 12.5px; color: var(--ink-3); }

.device {
  position: relative; background: #1B1714; border-radius: 34px;
  padding: 9px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.device .notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; border-radius: 999px; background: #1B1714; z-index: 3;
}
.device .screen {
  width: 288px; height: 610px; border-radius: 26px; overflow: hidden;
  background: #fff; position: relative;
}
.device .screen iframe { width: 390px; height: 826px; border: 0; transform: scale(.7385); transform-origin: 0 0; }

.desktop {
  border-radius: 16px; padding: 10px; background: #1B1714;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
}
.desktop .bar { display: flex; gap: 6px; padding: 0 4px 9px; }
.desktop .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4A423B; }
.desktop .bar i:nth-child(1) { background: #E06C5A; }
.desktop .bar i:nth-child(2) { background: #E2B04A; }
.desktop .bar i:nth-child(3) { background: #6FAE72; }
.desktop .screen { border-radius: 8px; overflow: hidden; width: 100%; background: #fff; height: 430px; }
.desktop .screen iframe { width: 1050px; height: 860px; border: 0; transform: scale(.5); transform-origin: 0 0; }

.spec-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px;
}
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec {
  background: var(--card); border-radius: var(--r); padding: 17px 18px;
  border: 1px solid rgba(42,36,32,.06); box-shadow: var(--shadow-sm);
}
.spec b { font-family: var(--serif); font-size: 15px; display: block; }
.spec p { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.swatches { display: flex; gap: 8px; margin-top: 12px; }
.swatches i { width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

.footer {
  margin: 56px 0 40px; text-align: center;
  font-size: 12.5px; color: var(--ink-3); letter-spacing: .08em;
}
.footer a { color: var(--terra-2); border-bottom: 1px solid rgba(196,96,60,.3); }

/* 空状态 */
.empty { text-align: center; padding: 54px 20px; }
.empty .ic { font-size: 46px; }
.empty p { margin-top: 12px; color: var(--ink-3); font-size: 14px; }

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
