/* 官网的壳：手机底部四格、电脑右上角四项、联系面板、我的（查订单）、到店报号、加到主屏（inc/shell.php、template-me.php）。
 * 会员页以后也用这一套：按钮（osw-btn-solid / osw-btn-line）、卡片（osw-card）、表单（osw-field）、列表（osw-list）。
 * 白底、方角（按钮和输入框 10px、卡片 14px、小标签 6px）、品牌深棕红；点按区不小于 44px。色值同设计规范 tokens，
 * 页面没加载 osw07.css 时用这里的兜底色。不用米白底、胶囊按钮、编号、等宽小字标签。 */
:root {
  --osw-tab-h: 64px;
}
.osw-shell, .osw-tabbar, .osw-topnav, .osw-sheet, .osw-arrival, .osw-me, .osw-co-member {
  --sh-brand: var(--osw-brand, #6E2A1C); --sh-brand-mid: var(--osw-brand-mid, #914032); --sh-text: var(--osw-text, #3A2A22);
  --sh-text-2: var(--osw-text-2, #6B5E58); --sh-line: var(--osw-line, #EAD3C6); --sh-hair: #F1EAE6; --sh-soft: #F6F1EE;
  --sh-gift: var(--osw-gift, #2F6B4F); --sh-gift-bg: var(--osw-gift-bg, #EEF5F0); --sh-notice: #6A4512; --sh-notice-bg: #FFF4E5;
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif; color: var(--sh-text);
}
.osw-tabbar *, .osw-sheet *, .osw-me *, .osw-co-member * { box-sizing: border-box; }

/* 按钮、卡片、表单、列表 */
.osw-btn-solid, .osw-btn-line { min-height: 48px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.osw-btn-solid { border: 0; background: var(--sh-brand); color: #FFFFFF; }
.osw-btn-solid:hover { background: var(--sh-brand-mid); color: #FFFFFF; }
.osw-btn-solid[disabled] { opacity: .6; cursor: default; }
.osw-btn-line { border: 1px solid var(--sh-line); background: #FFFFFF; color: var(--sh-text); font-weight: 500; }
.osw-card { border: 1px solid var(--sh-line); border-radius: 14px; background: #FFFFFF; overflow: hidden; }
.osw-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--sh-text-2); }
.osw-field input { height: 48px; padding: 0 12px; border: 1px solid var(--sh-line); border-radius: 10px; background: #FFFFFF; color: var(--sh-text); font: inherit; font-size: 16px; }
.osw-field input:focus { outline: 2px solid var(--sh-brand); outline-offset: 0; border-color: var(--sh-brand); }
.osw-list { list-style: none; margin: 0; padding: 0; }
.osw-list > li + li { border-top: 1px solid var(--sh-hair); }
.osw-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--sh-soft); color: var(--sh-text-2); }
.osw-tag.is-paid { background: var(--sh-gift-bg); color: var(--sh-gift); }
.osw-tag.is-unpaid { background: var(--sh-notice-bg); color: var(--sh-notice); }

/* 手机底部四格（点单页没公开时新首页只有三格，按格数平分） */
.osw-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
  height: calc(var(--osw-tab-h) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); background: #FFFFFF; border-top: 1px solid var(--sh-hair); }
.osw-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; color: var(--sh-text-2); font-size: 11px; line-height: 1.2; text-decoration: none; }
.osw-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.osw-tab.is-on { color: var(--sh-brand); font-weight: 700; }
.osw-tab-order { color: var(--sh-brand); font-weight: 700; }
.osw-tab-box { width: 40px; height: 28px; border-radius: 8px; background: var(--sh-brand); display: flex; align-items: center; justify-content: center; }
.osw-tab-box svg { width: 20px; height: 20px; stroke: #FFFFFF; stroke-width: 2; }
/* 2026-11-20 叶伟「点首页，点我的，高亮都没有切换，都在点单上」：底部四格只亮当前这一页那一格（图标放进深色小方块、白线条，字加粗变深色），
 * 别的格一律灰线条、灰字，「点单」不再常亮。项目页、价格页不属于哪一格，四格都不亮。四个图标占一样大的地方（40×28），字排在同一条线上。
 * 只管手机底部四格；电脑右上角四项（.osw-topnav）不变。 */
.osw-tabbar .osw-tab > svg, .osw-tabbar .osw-tab-box { width: 40px; height: 28px; border-radius: 8px; }
.osw-tabbar .osw-tab > svg { padding: 2px 8px; }
.osw-tabbar .osw-tab.is-on > svg { padding: 4px 10px; background: var(--sh-brand); color: #FFFFFF; stroke-width: 2; }
.osw-tabbar .osw-tab-order:not(.is-on) { color: var(--sh-text-2); font-weight: 400; }
.osw-tabbar .osw-tab-order:not(.is-on) .osw-tab-box { background: transparent; }
.osw-tabbar .osw-tab-order:not(.is-on) .osw-tab-box svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; }
/* 四格「点单」那一格右上角的小数字：点单页里选了、还没去结算的件数（shell.js 从这个标签页的草稿里数；走查合-35）。点单页自己那一格不出。 */
.osw-tabbar .osw-tab-box { position: relative; }
.osw-tab-n { position: absolute; top: -7px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--lamp-err, #B3261E); color: #FFFFFF;
  font-size: 11px; line-height: 18px; font-weight: 700; font-style: normal; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.osw-tab:focus-visible { outline: 2px solid var(--sh-brand); outline-offset: -2px; border-radius: 10px; }
body.osw-has-tabbar { padding-bottom: calc(var(--osw-tab-h) + env(safe-area-inset-bottom)); }
/* 首屏按钮正好落在四格那一条里时先收起四格（矮屏手机），滑过再出来（shell.js 加 .osw-tab-wait） */
.osw-tab-wait .osw-tabbar { transform: translateY(100%); visibility: hidden; }
.osw-tabbar { transition: transform .25s ease, visibility .25s; }
/* 追踪插件的 WhatsApp 绿泡泡（.osp-fab，插件里写死 bottom:18px!important）浮在四格上方，不压「联系」和「我的」两格。
 * 四格收起时（.osw-tab-wait，首屏按钮落在四格那一条里）不抬，回到插件的位置；碰到首屏按钮由插件让开（0.7.2 避让表有 .hv2-btn，#396 Codex P1） */
@media (max-width: 1023px) {
  body:has(.osw-tabbar):not(.osw-tab-wait) .osp-fab { bottom: calc(var(--osw-tab-h) + 12px + env(safe-area-inset-bottom)) !important; }
}

/* 电脑右上角四项 */
.osw-topnav { display: none; }
@media (min-width: 1024px) {
  .osw-tabbar { display: none; }
  body.osw-has-tabbar { padding-bottom: 0; }
  .osw-topnav { display: flex; align-items: center; gap: 4px; }
  .osw-topnav .osw-tab { flex-direction: row; gap: 6px; min-height: 44px; padding: 0 12px; font-size: 14px; color: inherit; }
  .osw-topnav .osw-tab svg { width: 18px; height: 18px; }
  .osw-topnav .osw-tab-order { min-height: 40px; margin: 0 4px; padding: 0 16px; border-radius: 10px; background: var(--sh-brand); color: #FFFFFF; }
  .osw-topnav .osw-tab-order:hover { background: var(--sh-brand-mid); color: #FFFFFF; }
  .osw-topnav .osw-tab-box { width: auto; height: auto; background: none; }
  .osw-topnav .osw-tab-box svg { width: 18px; height: 18px; }
}

/* 联系面板（手机从底下升起，电脑居中） */
.osw-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.osw-sheet[hidden] { display: none; }
.osw-sheet-back { position: absolute; inset: 0; background: rgba(30, 18, 12, .45); }
.osw-sheet-card { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; background: #FFFFFF; border-radius: 14px 14px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.osw-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.osw-sheet-head h2 { margin: 0; font-family: 'Noto Serif SC', serif; font-size: 20px; line-height: 28px; }
.osw-sheet-x { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--sh-text-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.osw-sheet-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.osw-sheet-wa { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 10px; background: var(--sh-gift-bg); color: var(--sh-gift); text-decoration: none; }
.osw-sheet-wa svg { width: 28px; height: 28px; flex: none; }
.osw-sheet-wa span { display: flex; flex-direction: column; gap: 2px; }
.osw-sheet-wa b { font-size: 16px; }
.osw-sheet-wa small { font-size: 12px; color: var(--sh-text-2); }
.osw-sheet-k { margin: 6px 0 0; font-size: 13px; color: var(--sh-text-2); }
.osw-sheet-addr { margin: 0; font-size: 14px; line-height: 1.7; display: flex; flex-direction: column; }
.osw-sheet-addr b { font-weight: 700; }
.osw-sheet-maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) {
  .osw-sheet { align-items: center; }
  .osw-sheet-card { border-radius: 14px; padding-bottom: 20px; }
}
body.osw-sheet-open { overflow: hidden; }
/* 联系面板打开时收起两种 WhatsApp 浮钮（追踪插件的 .osp-fab，层级 90；现首页自己的 .fab），不然压在面板的 WhatsApp 那一行上。面板里本来就有 WhatsApp。 */
body.osw-sheet-open .osp-fab, body.osw-sheet-open .fab { display: none !important; }

/* 我的（这一版：查订单） */
.osw-me { max-width: 560px; margin: 0 auto; }
.osw-me-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 16px; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--sh-hair); }
.osw-me-top h1 { margin: 0; font-family: 'Noto Serif SC', serif; font-size: 22px; line-height: 30px; }
.osw-me-top-r { display: flex; align-items: center; gap: 8px; }
.osw-me-lang { min-height: 44px; display: flex; align-items: center; font-size: 13px; color: var(--sh-text-2); text-decoration: none; }
.osw-me-body { padding: 20px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.osw-me-form { display: flex; flex-direction: column; gap: 12px; }
.osw-me-form h2 { margin: 0; font-size: 17px; line-height: 24px; }
.osw-me-note { margin: 0; font-size: 12px; line-height: 18px; color: var(--sh-text-2); }
.osw-me-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--sh-notice-bg); color: var(--sh-notice); font-size: 14px; line-height: 22px; }
.osw-me-msg[hidden] { display: none; }
.osw-order-card { display: flex; flex-direction: column; }
.osw-order-main { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.osw-order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.osw-order-head strong { font-size: 15px; }
.osw-order-items { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 22px; }
.osw-order-meta { font-size: 13px; color: var(--sh-text-2); }
.osw-order-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--sh-hair); }
.osw-order-acts > * { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--sh-text); text-decoration: none; cursor: pointer; text-align: center; }
.osw-order-acts > :first-child { font-weight: 700; color: var(--sh-brand); border-right: 1px solid var(--sh-hair); }
.osw-order-acts > :only-child { grid-column: span 2; border-right: 0; }
.osw-me-help { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sh-gift); text-decoration: none; }
.osw-me-help svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* 会员订单和按号查单共用的全屏凭证，沿用付款成功页的衬线、字号和品牌色。 */
.osw-arrival { display: none; position: fixed; inset: 0; z-index: 100; box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; padding: max(8px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); background: #FFFFFF; }
.osw-arrival[open] { display: flex; flex-direction: column; }
.osw-arrival-body { margin: auto 0; text-align: center; }
#osw-arrival-number { font-family: 'Noto Serif SC', serif; font-size: clamp(28px, 11vw, 40px); line-height: 1.2; color: var(--sh-brand); white-space: nowrap; }
#osw-arrival-hint { margin: 8px 0 0; font-size: 14px; color: var(--sh-text-2); }

/* 付款成功页：加到主屏、去我的 */
.osw-co-member { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0; }
.osw-a2hs { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.osw-a2hs[hidden] { display: none; }
.osw-a2hs b { font-size: 15px; }
.osw-a2hs p { margin: 0; font-size: 13px; line-height: 20px; color: var(--sh-text-2); }
.osw-co-me { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 15px; color: var(--sh-text); text-decoration: none; }
.osw-co-me::after { content: '›'; font-size: 20px; color: var(--sh-text-2); }

@media (prefers-reduced-motion: reduce) {
  .osw-tabbar { transition: none; }
}

/* 「我的」页手机验证码登录和自助（assets/me-account.js；开关 onespa_me_login_enabled 关着时没有这块） */
.osw-me-account { display: flex; flex-direction: column; gap: 16px; }
.osw-me-account[hidden] { display: none; }
.osw-me-account > div { display: flex; flex-direction: column; gap: 16px; }
.osw-me-login, .osw-me-profile { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.osw-me-login h2, .osw-me-profile h2, .osw-me-list h2 { margin: 0; font-size: 17px; line-height: 24px; }
.osw-me-no { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--sh-brand); }
.osw-me-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.osw-me-acts > button { flex: 1 1 140px; }
.osw-me-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 22px; color: var(--sh-text); }
.osw-me-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sh-brand); }
.osw-me-list { display: flex; flex-direction: column; gap: 12px; }
.osw-me-order { display: flex; flex-direction: column; gap: 8px; }
.osw-me-pending, .osw-me-vouchers { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 20px; color: var(--sh-text-2); }
.osw-me-voucher { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--sh-line); border-radius: 10px; background: #FFFFFF; }
.osw-me-voucher strong { font-size: 15px; color: var(--sh-text); letter-spacing: .02em; }
.osw-me-req { padding: 12px; border: 1px solid var(--sh-hair); border-radius: 10px; background: var(--sh-soft); }
.osw-me-req[hidden] { display: none; }
.osw-me-req form { display: flex; flex-direction: column; gap: 10px; }
.osw-field textarea { padding: 10px 12px; border: 1px solid var(--sh-line); border-radius: 10px; background: #FFFFFF; color: var(--sh-text); font: inherit; font-size: 16px; resize: vertical; }
.osw-me-msg.is-ok { background: var(--sh-gift-bg); color: var(--sh-gift); }

/* 11-20 晚：Hello 父主题 reset.css 的 button:hover/:focus 粉底白字（0,2,0）、a:hover/a:active 深蓝字（0,1,1）。联系面板的 ×、页脚那排社交图标、右下角 WhatsApp 浮钮（osw07.css 在 reset 之前加载）点一下也会变色；
   这里按 0,2,1 起写回原来的颜色（底部四格、联系面板里的链接等见下一段）。 */
button.osw-sheet-x:hover, button.osw-sheet-x:focus { background: none; color: var(--sh-text-2); }
.osw07-social a:hover, .osw07-social a:active { color: var(--cream, #FFF2E9); }
a.fab:hover, a.fab:active, a.fab:focus { color: var(--cream, #FFF2E9); }
/* 11-21：上一段漏了的。底部四格只有当前那一格（.osw-tab.is-on，0,2,0）和没选中的「点单」那一格（上面 .osw-tabbar .osw-tab-order 那条，0,3,0）高过 reset 的 a:hover、a:active（0,1,1），
   别的几格（.osw-tab，0,1,0）鼠标停上去、手指按住，字和图标变深蓝。联系面板里 WhatsApp 那一行、Google Maps 和 Waze 两个按钮，付款成功页「加到主屏幕」（按钮，粉底白字）
   和「在『我的』查这张单」，「我的」页顶上的语言切换，查单结果卡片下面那一排，同一个毛病。都从各自的根类起头（0,2,1 起）写回原来的颜色。 */
.osw-tabbar a.osw-tab:hover, .osw-tabbar a.osw-tab:active { color: var(--sh-text-2); }
.osw-tabbar a.osw-tab.is-on:hover, .osw-tabbar a.osw-tab.is-on:active { color: var(--sh-brand); }
.osw-sheet a.osw-sheet-wa:hover, .osw-sheet a.osw-sheet-wa:active { color: var(--sh-gift); }
.osw-sheet a.osw-btn-line:hover, .osw-sheet a.osw-btn-line:active { color: var(--sh-text); }
.osw-co-member button.osw-btn-line:hover, .osw-co-member button.osw-btn-line:focus { background: #FFFFFF; color: var(--sh-text); }
.osw-co-member a.osw-co-me:hover, .osw-co-member a.osw-co-me:active { color: var(--sh-text); }
.osw-me-top a.osw-me-lang:hover, .osw-me-top a.osw-me-lang:active { color: var(--sh-text-2); }
.osw-order-acts > button:hover, .osw-order-acts > button:focus { background: none; color: var(--sh-text); }
.osw-order-acts > a:hover, .osw-order-acts > a:active { color: var(--sh-text); }
.osw-order-acts > button:first-child:hover, .osw-order-acts > button:first-child:focus, .osw-order-acts > a:first-child:hover, .osw-order-acts > a:first-child:active { color: var(--sh-brand); }
