/* ============ 企业订餐 H5 ============ */
:root {
  --c1: #ff6a3d;
  --c2: #ff9d5c;
  --c1-dark: #e8551f;
  --c1-soft: #fff1ea;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2329;
  --text2: #646a73;
  --text3: #9aa0a6;
  --line: #eef0f2;
  --ok: #34c77b;
  --warn: #ff9f1a;
  --danger: #f5483b;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(31, 35, 41, 0.06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--text); background: #e9ebef; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 页面容器：手机全屏，电脑居中 ---------- */
.app {
  position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg);
  padding-bottom: calc(96px + var(--safe-b)); overflow-x: clip;
}
.app.style-grid { max-width: 560px; }
@media (min-width: 720px) {
  body { background: radial-gradient(1200px 600px at 10% 0%, #ffe6d8 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #e5e9ff 0%, transparent 60%), #eef0f4; }
  .app { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); border-radius: 0; min-height: 100vh; }
  .app.style-grid { max-width: 720px; }
}

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%); color: #fff;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: 0.5px; }
.topbar .brand .logo { width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-size: 15px; }
.btn-admin {
  font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.22);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); transition: background 0.2s; line-height: 1.4;
}
.btn-admin:hover { background: rgba(255, 255, 255, 0.35); }

/* ---------- 问候横幅 ---------- */
.hero {
  position: relative; margin: -1px 0 0; padding: 18px 20px 64px; color: #fff;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%); overflow: hidden;
}
.hero h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: 0.5px; }
.hero p { margin: 0; opacity: 0.9; font-size: 13px; }
.hero .hi { font-size: 13px; opacity: 0.95; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hero .hi .dept { background: rgba(255, 255, 255, 0.22); padding: 2px 8px; border-radius: 999px; }
.hero .hi .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.hero .date { position: absolute; right: 20px; top: 20px; font-size: 13px; opacity: 0.9; }
.hero .blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); pointer-events: none; }
.hero .blob.b1 { width: 140px; height: 140px; right: -40px; top: -40px; }
.hero .blob.b2 { width: 80px; height: 80px; right: 90px; bottom: -20px; }

/* ---------- 状态卡（覆盖在横幅底部） ---------- */
.status-card {
  margin: -44px 16px 12px; position: relative; z-index: 2; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px;
}
.status-card .l { display: flex; align-items: center; gap: 8px; color: var(--text2); }
.status-card .l b { color: var(--text); font-weight: 600; }
.status-card .pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--c1-soft); color: var(--c1-dark); white-space: nowrap; }
.status-card .pill.closed { background: #f2f3f5; color: var(--text2); }
.status-card .pill.off { background: #fff4e5; color: #c77700; }
.app:not(.has-hero) .status-card { margin-top: 12px; }

/* ---------- 公告 ---------- */
.notice {
  margin: 0 16px 12px; padding: 10px 14px; border-radius: 12px; background: #fff8f0; color: #8a5a2b;
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px; border: 1px solid #ffe8d1;
}
.notice .ico { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #ffb067; color: #fff; font-size: 11px; display: grid; place-items: center; margin-top: 1px; }
.notice .txt { flex: 1; overflow: hidden; }

/* ---------- 分类 ---------- */
.cats { position: sticky; top: 54px; z-index: 15; background: linear-gradient(var(--bg) 70%, rgba(245, 246, 248, 0)); padding: 6px 0 8px; }
.cats .scroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px; scrollbar-width: none; }
.cats .scroll::-webkit-scrollbar { display: none; }
.cat {
  flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--text2); font-size: 14px;
  border: 1px solid transparent; transition: all 0.18s; white-space: nowrap;
}
.cat.on { background: var(--c1); color: #fff; box-shadow: 0 4px 12px rgba(255, 106, 61, 0.35); }
.cat:active { transform: scale(0.96); }

/* ---------- 菜品 ---------- */
.menu { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.group-title { font-size: 15px; font-weight: 700; margin: 6px 2px 0; display: flex; align-items: center; gap: 6px; }
.group-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--c1); }

.dish {
  display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow); position: relative;
}
.dish .thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--c1-soft); display: grid; place-items: center; font-size: 30px; }
.dish .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish .thumb.ph { background: linear-gradient(135deg, #ffe3d3, #fff4ea); }
.dish .info { flex: 1; min-width: 0; }
.dish .name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish .desc { color: var(--text3); font-size: 12px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dish .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.dish .price { color: var(--c1); font-weight: 700; font-size: 16px; }
.dish .price small { font-size: 11px; font-weight: 500; margin-right: 1px; }
.dish .price s { color: var(--text3); font-weight: 400; font-size: 12px; margin-left: 6px; }
.dish .sold-out { position: absolute; inset: 0; border-radius: var(--radius); background: rgba(255, 255, 255, 0.75); display: grid; place-items: center; color: var(--text2); font-size: 13px; font-weight: 600; }
.dish .tag { position: absolute; left: -6px; top: 10px; background: var(--c1); color: #fff; font-size: 10px; padding: 2px 8px 2px 6px; border-radius: 0 8px 8px 0; }

/* 步进器 */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .n { min-width: 18px; text-align: center; font-weight: 600; font-size: 15px; }
.stepper .b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; font-weight: 700; transition: transform 0.1s; }
.stepper .b:active { transform: scale(0.85); }
.stepper .minus { border: 1.5px solid var(--c1); color: var(--c1); background: #fff; }
.stepper .plus { background: var(--c1); color: #fff; box-shadow: 0 4px 10px rgba(255, 106, 61, 0.35); }
.btn-add { padding: 5px 12px; border-radius: 999px; background: var(--c1); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 10px rgba(255, 106, 61, 0.35); }
.btn-add:active { transform: scale(0.95); }

/* 网格样式 */
.app.style-grid .menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app.style-grid .menu .group-title { grid-column: 1 / -1; }
.app.style-grid .dish { flex-direction: column; align-items: stretch; padding: 10px; gap: 8px; }
.app.style-grid .dish .thumb { width: 100%; height: 110px; font-size: 44px; border-radius: 10px; }
.app.style-grid .dish .bottom { margin-top: 2px; }
.app.style-grid .btn-add { padding: 4px 10px; }

.empty { text-align: center; color: var(--text3); padding: 40px 0; font-size: 14px; }
.empty .ico { font-size: 40px; margin-bottom: 8px; }

/* ---------- 底部栏 ---------- */
.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30;
  padding: 10px 12px calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.app.style-grid ~ .bottom-bar { max-width: 720px; }
.bottom-bar.wide { max-width: 560px; }
@media (min-width: 720px) { .bottom-bar { max-width: 480px; } .bottom-bar.wide { max-width: 720px; } }
.cart-btn { flex: 1; display: flex; align-items: center; gap: 10px; padding: 4px; min-width: 0; }
.cart-icon { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--c1); display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 14px rgba(255, 106, 61, 0.4); flex: none; }
.cart-icon .badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff; }
.cart-info { min-width: 0; }
.cart-info .sum { font-size: 18px; font-weight: 800; color: var(--text); }
.cart-info .sum small { font-size: 12px; margin-right: 1px; }
.cart-info .sum.zero { color: var(--text3); font-size: 15px; font-weight: 500; }
.cart-info .sub { font-size: 11px; color: var(--text3); }
.nav-btn { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--text2); padding: 4px 8px; border-radius: 10px; }
.nav-btn .i { font-size: 20px; }
.btn-main {
  flex: none; padding: 12px 22px; border-radius: 999px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px rgba(255, 106, 61, 0.4); transition: transform 0.1s, opacity 0.2s;
}
.btn-main:active { transform: scale(0.97); }
.btn-main[disabled] { background: #d5d8dc; box-shadow: none; color: #fff; cursor: not-allowed; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 480px; background: var(--card); border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + var(--safe-b));
  max-height: 86vh; overflow: auto; transform: translateY(30px); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mask.on .sheet { transform: translateY(0); }
@media (min-width: 720px) { .mask { align-items: center; } .sheet { border-radius: 20px; max-width: 520px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-head .x { width: 30px; height: 30px; border-radius: 50%; background: #f2f3f5; color: var(--text2); display: grid; place-items: center; font-size: 16px; }
.field { margin-bottom: 14px; }
.field .label { font-size: 13px; color: var(--text2); margin-bottom: 8px; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 12px; background: #f2f3f5; color: var(--text); font-size: 14px; border: 1.5px solid transparent; }
.chip.on { background: var(--c1-soft); border-color: var(--c1); color: var(--c1-dark); font-weight: 600; }
.chip[disabled] { color: var(--text3); text-decoration: line-through; }
.chip small { font-size: 11px; color: var(--text3); margin-left: 4px; }
textarea, input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: none; background: #fafbfc; color: var(--text); outline: none; }
textarea:focus, input[type="text"]:focus { border-color: var(--c1); background: #fff; }
.items { background: #fafbfc; border-radius: 12px; padding: 6px 12px; margin-bottom: 14px; }
.items .it { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.items .it:last-child { border-bottom: 0; }
.items .it .q { color: var(--text3); font-size: 12px; margin-left: 6px; }
.items .it .m { font-weight: 600; }
.hint { font-size: 12px; color: #c77700; background: #fff8e8; padding: 8px 10px; border-radius: 10px; margin-bottom: 12px; }
.sheet .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.sheet .total { font-size: 13px; color: var(--text2); }
.sheet .total b { color: var(--c1); font-size: 22px; margin-left: 4px; }
.sheet .total b small { font-size: 12px; }
.sheet .total b.zero { color: var(--text); }

/* 我的订餐 */
.order-card { background: #fafbfc; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); }
.order-card .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-card .hd .d { font-weight: 700; }
.order-card .hd .d small { color: var(--text3); font-weight: 400; margin-left: 6px; }
.order-card .list { font-size: 13px; color: var(--text2); line-height: 1.8; }
.order-card .ft { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.order-card .ft .amt { font-weight: 700; color: var(--c1); }
.order-card .ft .amt small { font-size: 11px; }
.order-card .acts { display: flex; gap: 8px; }
.btn-sm { padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); background: #fff; color: var(--text2); }
.btn-sm.pri { background: var(--c1); color: #fff; border-color: var(--c1); }
.st { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.st.pending { background: #fff4e5; color: #c77700; }
.st.confirmed { background: #e6f7ee; color: #1f9d5b; }
.st.cancelled { background: #f2f3f5; color: var(--text3); }

/* ---------- 登录 ---------- */
.login { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 55%, #ffb98a 100%); padding: 20px; }
/* 登录页底部：版权所有 / ICP备案 / 网安备案（白字、无底色，窄屏自动换行且不拆断单项） */
.login-footer { position: absolute; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; color: #fff; font-size: 11px; line-height: 1.8; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16); }
.login-footer:empty { display: none; }
.login-footer > * { white-space: nowrap; }
.login-footer a { color: #fff; text-decoration: none; }
.login-footer a:hover { color: #fff; text-decoration: underline; }
.login-footer img { display: inline-block; height: 14px; width: auto; max-width: 20px; object-fit: contain; vertical-align: -2px; margin-right: 3px; }
.login-footer .sep { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 480px) { .login-footer .sep { display: none; } }
@media (max-height: 560px) { .login-footer { position: static; margin-top: 16px; } }
.login .box { width: 100%; max-width: 360px; background: #fff; border-radius: 22px; padding: 32px 26px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); text-align: center; animation: up 0.4s ease; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.login .logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; font-size: 32px; box-shadow: 0 10px 24px rgba(255, 106, 61, 0.4); }
.login h2 { margin: 0 0 6px; font-size: 22px; }
.login p { color: var(--text2); font-size: 13px; margin: 0 0 22px; }
.login .btn-main { width: 100%; padding: 14px; font-size: 16px; }
.login .sub { margin-top: 14px; font-size: 12px; color: var(--text3); }
.login .sub a { color: var(--c1); font-weight: 600; }
.login .warn { font-size: 12px; color: #c77700; background: #fff8e8; padding: 8px 10px; border-radius: 10px; margin-bottom: 14px; text-align: left; line-height: 1.6; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 12%; transform: translate(-50%, -10px); background: rgba(31, 35, 41, 0.92); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 99; opacity: 0; pointer-events: none; transition: all 0.25s; max-width: 80vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

/* ---------- 底部 ---------- */
.footer { text-align: center; color: var(--text3); font-size: 11px; padding: 18px 0 6px; }

/* ==========================================================
   报餐表单模式
   ========================================================== */
.card { margin: 0 16px 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.card.empty-menu { margin-top: 12px; }
.app:not(.has-hero) .card:first-of-type { margin-top: 12px; }

/* 菜谱卡片 */
.menu-card { padding: 16px; }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mc-date { font-size: 18px; font-weight: 800; letter-spacing: 0.3px; }
.mc-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.std-tag { padding: 5px 11px; border-radius: 999px; background: var(--c1-soft); color: var(--c1-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mc-body { display: flex; flex-direction: column; gap: 10px; }
.mc-row { display: flex; align-items: flex-start; gap: 10px; }
.mc-k { flex: none; width: 40px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }
.mc-row.m .mc-k { background: #ffe8e2; color: #d6452b; }
.mc-row.v .mc-k { background: #e6f6ec; color: #1f9d5b; }
.mc-row.s .mc-k { background: #fff3dc; color: #b26a00; }
.mc-row.p .mc-k { background: #e9efff; color: #3b63d6; }
.mc-v { display: flex; flex-wrap: wrap; gap: 6px; }
.dish-tag { padding: 5px 12px; border-radius: 999px; background: #f5f6f8; font-size: 14px; color: var(--text); }
.mc-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--text2); }

/* 表单卡片 */
.form-card { padding: 18px 16px 16px; }
.fc-head { margin-bottom: 14px; }
.fc-head h2 { margin: 0 0 4px; font-size: 18px; }
.fc-head p { margin: 0; font-size: 12px; color: var(--text3); }
.q-list { display: flex; flex-direction: column; gap: 12px; }
.q { background: #fafbfc; border-radius: 14px; padding: 14px 14px 16px; border: 1px solid var(--line); transition: border-color 0.15s, background 0.15s; }
.q:focus-within { border-color: var(--c1); background: #fff; }
.q[hidden] { display: none; }
.q-label { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.q-label .no { font-size: 17px; font-weight: 800; color: var(--c1); font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.q-label small { font-weight: 500; color: var(--text3); font-size: 14px; }
.q-label .req { color: var(--danger); font-style: normal; margin-left: 2px; }
.q-input { position: relative; }
.q-input input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 44px 13px 16px; font-size: 17px; font-family: inherit; background: #fff; color: var(--text); outline: none; transition: border-color 0.15s, box-shadow 0.15s; -moz-appearance: textfield; }
.q-input input::-webkit-outer-spin-button, .q-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-input input:focus { border-color: var(--c1); box-shadow: 0 0 0 3px var(--c1-soft); }
.q-input input::placeholder { color: #b4b9bf; font-size: 17px; }
.q-input input[disabled] { color: var(--text2); background: #f5f6f8; }
.q-input .clr { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #c9cdd2; color: #fff; font-size: 12px; display: grid; place-items: center; line-height: 1; }
.q-input .clr:active { background: #a9aeb5; }
.q-opts { display: flex; flex-direction: column; gap: 14px; padding: 2px 4px 0 6px; }
.opt { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .rd { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c9cdd2; display: grid; place-items: center; transition: all 0.15s; flex: none; }
.opt .rd::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.15s; }
.opt input:checked + .rd { border-color: var(--c1); background: var(--c1); }
.opt input:checked + .rd::after { transform: scale(1); }
.opt input:disabled ~ .ot { color: var(--text3); }
.opt:has(input:disabled) { cursor: default; }

.fc-foot { margin-top: 16px; }
.fc-status { font-size: 12px; color: var(--text2); text-align: center; margin-bottom: 10px; line-height: 1.6; }
.fc-status b { color: var(--c1-dark); }
.fc-status.ok { color: #1f9d5b; }
.fc-status.ok span { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e6f7ee; font-size: 10px; margin-right: 4px; }
.fc-btns { display: flex; gap: 10px; }
.btn-ghost { flex: none; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text2); font-size: 15px; font-weight: 600; }
.btn-ghost[disabled] { background: #f2f3f5; color: var(--text3); border-color: var(--line); cursor: not-allowed; }
.fc-btns .btn-main { flex: 1; padding: 14px 22px; font-size: 17px; letter-spacing: 2px; }
.fc-summary { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fafbfc; font-size: 13px; color: var(--text2); line-height: 1.8; }
.lock-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #f5f6f8; color: var(--text2); }
.lock-banner .i { font-size: 24px; flex: none; }
.lock-banner b { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.lock-banner small { font-size: 12px; color: var(--text2); }
.lock-banner.closed { background: #fff8e8; }
.lock-banner + .fc-status { margin-top: 12px; }

/* 底部：仅入口（表单模式） */
.bottom-bar.simple { gap: 10px; }
.bottom-bar.simple .cart-btn { cursor: pointer; text-align: left; }
.bottom-bar.simple .cart-icon { font-size: 18px; }
.st.done { background: #f2f3f5; color: var(--text3); }
.muted-s { font-size: 12px; color: var(--text3); }

/* 居中确认弹窗（替代浏览器 confirm） */
.cf-mask { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; padding: 28px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.cf-mask.on { opacity: 1; pointer-events: auto; }
.cf-box { width: 100%; max-width: 320px; background: #fff; border-radius: 18px; padding: 22px 18px 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); transform: translateY(8px) scale(0.97); transition: transform 0.2s; }
.cf-mask.on .cf-box { transform: none; }
.cf-title { font-size: 17px; font-weight: 700; text-align: center; }
.cf-msg { font-size: 14px; color: var(--text2); line-height: 1.7; text-align: center; margin: 10px 0 20px; white-space: pre-line; word-break: break-word; }
.cf-acts { display: flex; gap: 10px; }
.cf-btn { flex: 1; padding: 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text2); font-size: 15px; font-weight: 600; }
.cf-btn.cf-ok { border: 0; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.cf-btn.cf-ok.danger { background: var(--danger); }
.cf-btn:active { opacity: 0.85; }
