/* 庄膳 · 样式
   暖色纸感 + 大字号大按钮，妈妈那头也能一眼看清 */

:root {
  --bg: #fbf6ef;
  --bg-deep: #f4eade;
  --card: #fffdfa;
  --ink: #2f2a24;
  --ink-soft: #5f564c;
  --muted: #9b8f80;
  --line: #ece1d2;
  --brand: #d4622c;
  --brand-deep: #b44d1d;
  --brand-soft: #fbeade;
  --green: #3f6b4f;
  --green-soft: #e6efe8;
  --gold: #c2913c;
  --red: #c0392b;
  --shadow: 0 8px 24px rgba(122, 84, 46, .08);
  --shadow-sm: 0 2px 10px rgba(122, 84, 46, .07);
  --r: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 有些元素自带 display，靠 hidden 属性藏不住，这里强制一下 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(1100px 420px at 15% -12%, #fdeee0 0%, rgba(253, 238, 224, 0) 62%),
    radial-gradient(760px 340px at 105% 2%, #eef3ea 0%, rgba(238, 243, 234, 0) 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

#app { min-height: 100vh; }

/* ------------------------------------------------------------ 公共零件 */

.page { padding: 0 16px calc(104px + var(--safe-b)); max-width: 720px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px; font-size: 16px; font-weight: 600;
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px rgba(212, 98, 44, .26);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: scale(.97); }
.btn.ghost {
  background: #fff; color: var(--ink-soft); font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.soft { background: var(--brand-soft); color: var(--brand-deep); box-shadow: none; }
.btn.green { background: var(--green); box-shadow: 0 6px 16px rgba(63, 107, 79, .22); }
.btn.mini { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; box-shadow: none; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: var(--bg-deep); color: var(--ink-soft);
}
.pill.new { background: var(--brand-soft); color: var(--brand-deep); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.gray { background: #f0ece6; color: var(--muted); }

.empty {
  text-align: center; color: var(--muted); padding: 56px 24px; font-size: 15px; line-height: 1.9;
}
.empty .big { font-size: 34px; display: block; margin-bottom: 8px; }

/* ------------------------------------------------------------ 点菜端 */

.hero { padding: 26px 4px 14px; position: relative; }
.hero h1 {
  font-size: 27px; letter-spacing: .02em; line-height: 1.3; font-weight: 700;
}
.hero .notice {
  margin-top: 8px; color: var(--ink-soft); font-size: 15px;
  background: rgba(255, 253, 250, .8);
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 12px; border-radius: 6px;
}
.hero .count { margin-top: 12px; font-size: 13px; color: var(--muted); }
.hero .count b { color: var(--brand); font-size: 17px; }

.cats {
  position: sticky; top: 0; z-index: 8;
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(251, 246, 239, .86) 100%);
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 38px; padding: 0 16px;
  border-radius: 999px; font-size: 14.5px; font-weight: 500;
  background: #fff; color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--ink); color: #fff8f0; box-shadow: none; font-weight: 600; }
.chip .n { font-size: 12px; opacity: .65; }

.dishes { display: grid; gap: 14px; }

.dish {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start;
  border: 1px solid rgba(236, 225, 210, .8);
}
.dish.off { opacity: .55; }
.dish-body { padding: 16px 4px 16px 12px; min-width: 0; }
.dish h3 { font-size: 19px; font-weight: 650; letter-spacing: .01em; }
.dish .intro { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.dish .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dish .thumb {
  width: 64px; height: 64px; border-radius: 14px; margin: 16px 0 0 14px;
  background: var(--bg-deep) center/cover no-repeat; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 22px; color: var(--gold);
  font-weight: 700; overflow: hidden;
}
.dish-side { padding: 16px 14px 16px 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dish.step-open .stepbox { display: block; grid-column: 1 / -1; }

.stepbox {
  display: none; grid-column: 1 / -1;
  border-top: 1px dashed var(--line); padding: 14px 16px 18px;
  background: #fffcf7;
  animation: fade .18s ease;
}
.stepbox h4 {
  font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .08em;
  margin-bottom: 8px;
}
.steps { white-space: pre-wrap; font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }
.ing { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
.ing b { color: var(--gold); font-weight: 600; margin-right: 6px; font-size: 12px; letter-spacing: .06em; }
.tip {
  margin-top: 12px; font-size: 13px; color: var(--brand-deep);
  background: var(--brand-soft); border-radius: 10px; padding: 8px 10px;
}

/* 加减 */
.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  background: var(--brand-soft); color: var(--brand-deep); font-weight: 600;
}
.stepper .n { min-width: 26px; text-align: center; font-weight: 700; font-size: 16px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 12px rgba(212, 98, 44, .3);
}
.icon-btn:disabled { background: #d9d0c4; box-shadow: none; }

/* 底部购物条 */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(66px + var(--safe-b)); width: calc(100% - 32px); max-width: 688px;
  z-index: 30;
  background: rgba(47, 42, 36, .94); color: #fff8ef;
  border-radius: 18px; padding: 10px 12px 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 12px 30px rgba(47, 42, 36, .3);
  backdrop-filter: blur(10px);
  animation: rise .22s ease;
}
.cartbar .txt { font-size: 14px; opacity: .92; }
.cartbar .txt b { font-size: 17px; }
.cartbar .btn { min-height: 40px; padding: 0 18px; }

/* 底部 tab */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: stretch;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(255, 253, 250, .93);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0 5px; text-decoration: none; color: var(--muted);
  font-size: 11.5px; font-weight: 600; border-radius: 14px; position: relative;
}
.tabbar a .ico { font-size: 21px; line-height: 1; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on .ico { transform: translateY(-1px); }
.badge {
  position: absolute; top: 2px; right: 50%; transform: translateX(22px);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px #fffdfa;
}

/* 我的订单 */
.order-card {
  background: var(--card); border-radius: var(--r); padding: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 12px;
}
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-top .no { font-size: 13px; color: var(--muted); }
.order-items { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.order-items span {
  background: var(--bg-deep); border-radius: 8px; padding: 4px 10px; font-size: 14px;
}
.order-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.track { margin-top: 14px; display: flex; align-items: center; gap: 0; }
.track .dot { width: 9px; height: 9px; border-radius: 50%; background: #ddd2c3; flex: 0 0 auto; }
.track .dot.on { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.track .bar { height: 2px; flex: 1; background: #e8ddcd; }
.track .bar.on { background: var(--brand); }
.track-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------ 厨师端 */

.chef-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  background: rgba(251, 246, 239, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 225, 210, .7);
}
.chef-head .t { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.chef-head .t small { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 12px; }
.chef-head .logout {
  font-size: 13px; color: var(--muted); padding: 6px 10px;
  text-decoration: none; border-radius: 10px; background: var(--bg-deep);
}

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 4px 10px; font-size: 15px; font-weight: 700;
}
.section-title small { font-weight: 500; color: var(--muted); font-size: 13px; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
.field input[type=text], .field input[type=password], .field input[type=number],
.field input[type=time], .field textarea, .field select {
  width: 100%; padding: 12px 14px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px; outline: none;
  font-size: 16px; transition: border-color .15s ease;
}
.field textarea { min-height: 96px; line-height: 1.7; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }

/* 弹层 */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(40, 32, 24, .38); backdrop-filter: blur(2px);
  animation: fade .16s ease;
}
.sheet {
  width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto;
  background: var(--bg); border-radius: 26px 26px 0 0;
  padding: 8px 18px calc(24px + var(--safe-b));
  animation: rise .22s cubic-bezier(.2, .8, .3, 1);
  -webkit-overflow-scrolling: touch;
}
.sheet .grab { width: 42px; height: 4px; border-radius: 4px; background: #d8cbb9; margin: 8px auto 14px; }
.sheet h3 { font-size: 19px; margin-bottom: 4px; }
.sheet .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }

/* 厨师端订单 */
.job {
  background: var(--card); border-radius: var(--r); padding: 15px 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.job.fresh { border-color: #f0c19c; box-shadow: 0 6px 20px rgba(212, 98, 44, .14); }
.job .who { font-size: 15px; font-weight: 700; }
.job .who small { font-weight: 500; color: var(--muted); margin-left: 8px; font-size: 12px; }
/* 订单里的每道菜 = 一块完整的大按钮：整块都能点开看做法，给手抖的人留出余量 */
.job ul { margin: 12px 0 0; padding: 0; list-style: none; }
.job li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 12px 14px;
  background: var(--bg-deep); border: 1.5px solid #e2d2bd; border-radius: 14px;
  font-size: 17px; line-height: 1.45;
  cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.job li + li { margin-top: 10px; }
.job li .nm { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.job li .nt { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 400; }
.job li .rt { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.job li .c { color: var(--brand); font-weight: 700; font-size: 17px; }
.job li .chev { color: #b6a695; font-size: 24px; line-height: 1; }
.job li:active { background: var(--brand-soft); border-color: var(--brand); transform: scale(.985); }
.job .acts { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
/* 接单/拒单/删除这些也是手常点的地方，一起放大 */
.job .acts .btn { min-height: 46px; padding: 0 20px; font-size: 15.5px; }

/* 菜单管理 */
.mrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.mrow .ph {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  background: var(--bg-deep) center/cover no-repeat;
  display: grid; place-items: center; color: var(--gold); font-size: 15px; font-weight: 700;
}
.mrow .info { flex: 1; min-width: 0; }
.mrow .info h4 { font-size: 16px; font-weight: 600; }
.mrow .info p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mrow .ops { display: flex; gap: 4px; }
.mrow .ops button { padding: 8px 10px; font-size: 13px; color: var(--ink-soft); border-radius: 10px; background: var(--bg-deep); }
.mrow .ops button.danger { color: var(--red); }
.mrow.off .info { opacity: .55; }

.img-picker {
  display: flex; align-items: center; gap: 12px;
}
.img-picker .preview {
  width: 72px; height: 72px; border-radius: 14px; background: var(--bg-deep) center/cover no-repeat;
  display: grid; place-items: center; color: var(--muted); font-size: 12px; flex: 0 0 auto;
  border: 1.5px dashed #dccfbc;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%);
  z-index: 90; background: rgba(47, 42, 36, .95); color: #fff8ef;
  padding: 11px 20px; border-radius: 999px; font-size: 14.5px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25); max-width: 86vw; text-align: center;
  animation: rise .2s ease;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.sheet-wrap .sheet { animation-name: sheet-up; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ------------------------------------------------------------ 引导流程 */

.onboard {
  max-width: 460px; margin: 0 auto;
  padding: 34px 20px calc(40px + var(--safe-b));
  display: flex; flex-direction: column; gap: 14px;
  min-height: 100vh; justify-content: center;
}
.brand { text-align: center; padding: 6px 0 20px; }
.brand .logo {
  width: 78px; height: 78px; margin: 0 auto 14px;
  border-radius: 24px; display: grid; place-items: center; font-size: 38px;
  background: var(--brand); color: #fff6e9;
  box-shadow: 0 12px 28px rgba(212, 98, 44, .28);
}
.brand h1 { font-size: 26px; letter-spacing: .02em; }
.brand p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

.bigcard {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; padding: 18px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bigcard:active { transform: scale(.985); box-shadow: var(--shadow); }
.bigcard .ico {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px; background: var(--bg-deep);
}
.bigcard .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bigcard .tx b { font-size: 16.5px; font-weight: 650; }
.bigcard .tx small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.bigcard .arrow { color: #c9bcab; font-size: 22px; flex: 0 0 auto; }

.ob-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ob-head h2 { font-size: 21px; }
.ob-head .back {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-deep);
  color: var(--ink-soft); font-size: 17px; display: grid; place-items: center;
}
.ob-tip { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 6px; }
.ob-input {
  width: 100%; height: 56px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  font-size: 17px; outline: none; letter-spacing: .02em;
}
.ob-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ob-input.code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 20px; letter-spacing: .12em; text-align: center; text-transform: uppercase;
}
.ob-foot { color: #b0a394; font-size: 12.5px; line-height: 1.8; text-align: center; margin-top: 10px; }

.codebox {
  margin: 18px 0 6px; padding: 20px 12px;
  background: #fff; border: 2px dashed #e0c9b2; border-radius: 20px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(22px, 7vw, 30px); font-weight: 700; letter-spacing: .1em;
  text-align: center; color: var(--brand-deep);
  -webkit-user-select: all; user-select: all;
}
.foundbox {
  margin-top: 16px; padding: 16px; border-radius: 16px;
  background: var(--green-soft); border: 1px solid #cfe0d4;
  display: flex; flex-direction: column;
}
.foundbox b { font-size: 16px; color: var(--green); }

/* ------------------------------------------------------------ 家庭卡片 / 身份 */

.famcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm); padding: 16px; margin-top: 14px;
}
.famhead { display: flex; align-items: center; gap: 10px; }
.famhead .famic {
  width: 38px; height: 38px; border-radius: 12px; background: var(--bg-deep);
  display: grid; place-items: center; font-size: 19px;
}
.famhead b { font-size: 16.5px; display: block; }
.famhead small { color: var(--muted); font-size: 12px; }
.famcode {
  margin: 14px 0 12px; padding: 14px 8px; text-align: center;
  background: var(--bg-deep); border-radius: 14px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(19px, 5.6vw, 24px); font-weight: 700; letter-spacing: .1em;
  color: var(--brand-deep); -webkit-user-select: all; user-select: all;
}
.hint { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 10px; }

.rolepick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rolebtn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 16px 8px; border-radius: 18px;
  background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.rolebtn .ri { font-size: 26px; line-height: 1.2; }
.rolebtn b { font-size: 15px; }
.rolebtn small { color: var(--muted); font-size: 11.5px; }
.rolebtn.on {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(212, 98, 44, .12);
}
.rolebtn.on b { color: var(--brand-deep); }

/* 离线提示 / 装到桌面 */
.offline-bar {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 12px;
  background: #fdf0e4; color: var(--brand-deep);
  font-size: 13px; line-height: 1.65; border: 1px solid #f3d9c2;
}
.instcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-sm);
}
.instcard.ok { background: var(--green-soft); border-color: #cfe0d4; }
.instcard b { font-size: 15.5px; }
.instcard p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.75; margin-top: 8px; }
.instcard code {
  background: var(--bg-deep); padding: 1px 5px; border-radius: 5px;
  font-size: 12.5px; font-family: ui-monospace, Consolas, monospace;
}
.steps-ol { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; }
.steps-ol li { margin-bottom: 4px; }

/* 署名水印 */
.wm {
  text-align: center; font-size: 11.5px; color: #c3b6a6;
  margin: 26px 0 4px; letter-spacing: .06em;
}

/* 分享卡片 */
.sharecard {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.shrow {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px dashed var(--line);
}
.shrow:last-child { border-bottom: 0; }
.shtx { flex: 1; min-width: 0; }
.shtx b { font-size: 15px; display: block; }
.shtx small { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* 公网地址条 */
.puburl {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-soft); border: 1px solid #cfe0d4;
  border-radius: 16px; padding: 12px 14px; margin-bottom: 12px;
}
.puburl .plt { flex: 1; min-width: 0; }
.puburl b { font-size: 13.5px; color: var(--green); display: block; }
.puburl code {
  display: block; margin-top: 4px; font-size: 12px;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--ink-soft); word-break: break-all;
}

@media (min-width: 640px) {
  .page { padding-left: 24px; padding-right: 24px; }
}


/* 真实文件输入藏起来，但不能用 display:none（iOS 上那样点了不弹选择器） */
.file-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
label.btn { cursor: pointer; }

/* 手机上点按钮更跟手：去掉双击缩放带来的延迟 */
button, .btn, .chip, .tabbar a, .icon-btn, .stepper button { touch-action: manipulation; }.img-picker .preview { cursor: pointer; }
.btn.danger { background: var(--red); color: #fff; box-shadow: none; }
.btn.ghost.danger { background: #fdeceb; color: var(--red); box-shadow: inset 0 0 0 1px #f3cdc9; }

/* 我的家庭列表 */
.famlist { display: flex; flex-direction: column; gap: 8px; }
.famrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.famrow.on { border-color: var(--brand); background: var(--brand-soft); }
.faminfo { flex: 1; min-width: 0; }
.faminfo b { display: block; font-size: 15.5px; }
.faminfo small {
  color: var(--muted); font-size: 12px;
  font-family: ui-monospace, Consolas, monospace;
}
/* 订单里的菜名整行可点，点开看做法 —— 具体样式在「厨师端订单」那一块，别在这里重复定义 */
.recipe-img {
  width: 100%; height: 160px; border-radius: 16px; margin-bottom: 14px;
  background: var(--bg-deep) center/cover no-repeat;
}
/* ===== 做法卡片（订单里点菜名弹出） ===== */
.recipe-img {
  width: 100%; height: 190px; border-radius: 18px; margin: 8px 0 4px;
  background: var(--bg-deep) center/cover no-repeat;
}
.rhead h3 { font-size: 22px; letter-spacing: .01em; }
.rhead .sub { margin-top: 6px; }
.rsec { margin-top: 20px; }
.rsec h4 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 10px;
}
.rsteps { list-style: none; margin: 0; padding: 0; }
.rsteps li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 16.5px; line-height: 1.85; color: var(--ink);
}
.rsteps li:last-child { border-bottom: 0; }
.rsteps .num {
  flex: 0 0 auto; width: 27px; height: 27px; margin-top: 3px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.steps-empty { color: var(--muted); font-size: 14.5px; padding: 8px 0; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchips span {
  background: var(--bg-deep); border-radius: 999px;
  padding: 7px 13px; font-size: 14px; color: var(--ink-soft);
}
.rtip {
  margin-top: 20px; background: var(--brand-soft); color: var(--brand-deep);
  border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.8;
}
/* 长做法滚动时，关闭按钮始终在底部 */
.recipe-actions {
  position: sticky; bottom: 0; margin-top: 20px;
  padding: 12px 0 calc(6px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 72%, rgba(251, 246, 239, 0));
}