/* 花漾美甲 · 样式表　VI：墨 #1F1C1A / 香槟金 #B8955A / 象牙白 #F7F4EE　招牌：拱形图框、金色细线 */
:root {
  --ink: #1F1C1A; --ink-2: #34302C;
  --gold: #B8955A; --gold-d: #8C6A35; --gold-l: #E9DCC3; --gold-xl: #F3ECDF;
  --stone: #EFE9DF; --ivory: #F7F4EE; --white: #FFFFFF; --line: #E4DED4;
  --muted: #6E655E; --faint: #A79D94;
  --ok: #3F5A4C; --ok-soft: #E4EBE6; --warn: #8A5A00; --warn-soft: #F6EEDC; --danger: #9B2C2C;
  --alipay: #1677FF; --wxpay: #07C160;
  --radius: 16px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --latin: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 15px/1.65 var(--sans); }
a { color: var(--gold-d); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-family: var(--serif); font-weight: 700; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.price { font-family: var(--serif); color: var(--gold-d); font-weight: 700; }
.price small { font-size: .62em; margin-right: 1px; }
.del { color: var(--faint); text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.right { text-align: right; }
.mt { margin-top: 12px; }
.mt2 { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.hy-mark { display: block; flex: none; }
.ico-svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.latin { font-family: var(--latin); letter-spacing: 4px; text-transform: uppercase; }

/* 按钮 / 表单 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); font-size: 15px; cursor: pointer; line-height: 1.3; text-decoration: none; letter-spacing: 1px; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--ivory); }
.btn:disabled { background: var(--stone); border-color: var(--stone); color: var(--faint); cursor: not-allowed; }
.btn-block { display: flex; width: 100%; padding: 14px; font-size: 16px; letter-spacing: 2px; }
.btn-ghost { background: transparent; color: var(--gold-d); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold-xl); color: var(--ink); border-color: var(--gold); }
.btn-gray { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-gray:hover { background: var(--ivory); border-color: var(--gold); color: var(--ink); }
.btn-danger { background: var(--white); color: var(--danger); border-color: #E6CACA; }
.btn-danger:hover { background: #FBF1F1; border-color: var(--danger); color: var(--danger); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: var(--white); }
.btn-ok:hover { background: #324A3E; border-color: #324A3E; color: var(--white); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 10px; letter-spacing: 0; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-xl); }
textarea.input { min-height: 84px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* 标签 */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; font-weight: 500; }
.tag-primary { background: var(--gold-l); color: var(--ink); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-muted { background: var(--stone); color: var(--muted); }

/* 提示条 */
.toast { position: fixed; left: 50%; top: 24px; transform: translate(-50%, -20px); opacity: 0; padding: 11px 20px; border-radius: 12px; color: var(--ivory); font-size: 14px; z-index: 9999; max-width: calc(100vw - 32px); transition: all .25s; box-shadow: 0 10px 30px rgba(31, 28, 26, .18); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ok { background: var(--ok); }
.toast-err { background: var(--ink); }

/* ========== 顾客端（手机优先） ========== */
.m-wrap { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 80px; }
.m-header { background: var(--ink); color: var(--ivory); padding: 30px 22px; }
.m-header .brand-row { display: flex; align-items: center; gap: 14px; }
.m-header h1 { font-size: 26px; letter-spacing: 6px; color: var(--ivory); line-height: 1.2; }
.m-header .latin { font-size: 12px; color: #C9AC78; margin-top: 3px; }
.m-header .gold-line { height: 1px; background: #4A433D; margin: 18px 0 12px; }
.m-header p { margin: 4px 0 0; font-size: 13px; color: #CFC6BA; }
.m-header a { color: #E9DCC3; }
.m-header a:hover { color: var(--white); }
.m-topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); display: flex; align-items: center; height: 52px; padding: 0 8px; }
.m-topbar .back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.m-topbar .back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-topbar h2 { flex: 1; text-align: center; font-size: 17px; margin-right: 44px; letter-spacing: 1px; }
.m-body { padding: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card-title { font-family: var(--serif); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.notice { margin: 14px 14px 4px; padding: 12px 14px; border: 1px solid var(--gold-l); background: var(--gold-xl); border-radius: 12px; font-size: 13px; line-height: 1.7; }
.cat-tabs { display: flex; gap: 22px; overflow-x: auto; padding: 14px 18px 4px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; padding: 6px 0; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; }
.cat-tabs a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--gold); }
.group-title { font-family: var(--serif); font-size: 17px; font-weight: 700; margin: 14px 4px 12px; display: flex; align-items: center; gap: 10px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.svc { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; color: var(--ink); transition: border-color .15s; }
.svc:hover { border-color: var(--gold); color: var(--ink); }
.svc-cover { width: 84px; height: 106px; border-radius: 999px 999px 12px 12px; object-fit: cover; flex: none; background: var(--stone); }
.svc-cover.ph { display: flex; align-items: center; justify-content: center; }
.svc h3 { font-size: 17px; }
.svc .desc { font-size: 13px; color: var(--muted); margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc .grow { display: flex; flex-direction: column; }
.svc .row-between { margin-top: auto; }
.svc .price { font-size: 19px; }
.detail-cover { width: calc(100% - 28px); margin: 14px auto 0; aspect-ratio: 4 / 4.4; object-fit: cover; background: var(--stone); border-radius: 999px 999px 18px 18px; }
.intro { white-space: pre-wrap; font-size: 14px; color: var(--muted); line-height: 1.8; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--white); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.bottom-bar .inner { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar .inner { max-width: 560px; margin: 0 auto; display: flex; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 7px; color: var(--muted); font-size: 12px; }
.tabbar.on-home .t-home, .tabbar.on-my .t-my { color: var(--ink); font-weight: 700; }
.tabbar.on-home .t-home .ico-svg, .tabbar.on-my .t-my .ico-svg { stroke: var(--gold-d); }
.pick-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pick-list::-webkit-scrollbar { display: none; }
.pick { flex: none; border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 9px 13px; text-align: center; cursor: pointer; font-size: 14px; color: var(--ink); line-height: 1.4; transition: border-color .15s; }
.pick:hover { border-color: var(--gold); }
.pick small { display: block; color: var(--muted); font-size: 12px; }
.pick.on { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.pick.on small { color: #C9AC78; }
.pick:disabled { background: var(--stone); color: var(--faint); border-color: var(--stone); cursor: not-allowed; text-decoration: line-through; }
.staff-pick { width: 86px; }
.staff-pick.on { background: var(--white); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.staff-pick.on small { color: var(--gold-d); }
.staff-pick .av { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 5px; object-fit: cover; background: var(--stone); display: flex; align-items: center; justify-content: center; color: var(--gold-d); font-family: var(--serif); font-weight: 700; }
.staff-pick small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot-grid .pick { padding: 10px 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }
.order-item { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; margin-bottom: 10px; color: var(--ink); }
.order-item:hover { border-color: var(--gold); color: var(--ink); }
.order-item .t { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--stone); }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--muted); flex: none; }
.kv span:last-child { text-align: right; word-break: break-all; }
.code-box { text-align: center; padding: 6px 0 4px; }
.code-box .qr { width: 190px; height: 190px; margin: 6px auto 12px; padding: 5px; border: 1px solid var(--gold); border-radius: 12px; background: var(--white); }
.code-box .qr img, .code-box .qr canvas { width: 178px !important; height: 178px !important; }
.code-box .code { font-family: var(--latin); font-size: 34px; letter-spacing: 6px; font-weight: 600; }
.status-head { text-align: center; padding: 16px 0 8px; }
.status-head .s { font-size: 20px; font-weight: 600; }
.seg { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 14px; gap: 24px; padding: 0 4px; }
.seg a { padding: 8px 0; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.seg a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--gold); }
.login-box { max-width: 400px; margin: 0 auto; padding: 36px 22px; }
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brand-lockup .name { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: 6px; }
.brand-lockup .latin { font-size: 12px; color: var(--gold-d); }

/* 付款码组件 + 付款页 */
.qr-tabs { max-width: 320px; margin: 0 auto; }
.qr-tab-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.qr-tab { flex: 1; padding: 11px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; }
.qr-tab-alipay.on { border-color: var(--alipay); background: var(--alipay); color: var(--white); }
.qr-tab-wxpay.on { border-color: var(--wxpay); background: var(--wxpay); color: var(--white); }
.pay-qr { border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 6px; text-align: center; background: var(--white); }
.pay-qr-alipay { border-color: var(--alipay); }
.pay-qr-wxpay { border-color: var(--wxpay); }
.pay-qr .qr { width: 220px; height: 220px; margin: 0 auto 10px; }
.pay-qr .qr img, .pay-qr .qr canvas { width: 220px !important; height: 220px !important; }
.pay-qr .btn-block { margin-bottom: 8px; }
.pay-open-alipay { background: var(--alipay); border-color: var(--alipay); color: var(--white); }
.pay-open-alipay:hover { background: #0F5FD6; border-color: #0F5FD6; color: var(--white); }
.paid-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 16px auto 8px; }
.paid-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pay-hero { background: var(--ink); color: var(--ivory); padding: 26px 22px 64px; display: flex; justify-content: center; }
.pay-hero .brand-row { display: flex; align-items: center; gap: 10px; }
.pay-hero .name { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 5px; }
.pay-card { margin: -46px 14px 14px; text-align: center; padding: 24px 18px; }
.pay-amount { font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1.2; margin: 4px 0 8px; }
.pay-amount small { font-size: 22px; }

/* ========== 后台 ========== */
.a-layout { display: flex; min-height: 100vh; }
.a-side { width: 216px; flex: none; background: var(--ink); color: #CFC6BA; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.a-side .brand { padding: 22px 18px 18px; color: var(--ivory); border-bottom: 1px solid #3A3531; display: flex; align-items: center; gap: 10px; }
.a-side .brand .name { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 4px; line-height: 1.3; }
.a-side .brand small { display: block; color: #A2988D; font-weight: 400; font-size: 12px; letter-spacing: 0; margin-top: 2px; }
.a-side nav { padding: 10px 0; }
.a-side nav a { display: block; padding: 11px 22px; color: #CFC6BA; font-size: 14px; border-left: 2px solid transparent; }
.a-side nav a:hover { background: rgba(255, 255, 255, .04); color: var(--ivory); }
.a-side nav a.on { color: var(--ivory); border-left-color: var(--gold); background: rgba(184, 149, 90, .12); }
.a-side nav .sep { height: 1px; background: #3A3531; margin: 8px 18px; }
.a-main { flex: 1; min-width: 0; }
.a-top { height: 60px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 5; gap: 10px; }
.a-top h1 { font-size: 18px; letter-spacing: 1px; }
.a-top .menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0 8px 0 0; color: var(--ink); width: 34px; height: 44px; }
.a-top .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.a-content { padding: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel-title { font-family: var(--serif); font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-title a, .panel-title .small { font-family: var(--sans); font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; position: relative; }
.stat::before { content: ""; position: absolute; left: 20px; top: 0; width: 24px; height: 2px; background: var(--gold); }
.stat .n { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-top: 4px; }
.stat .l { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid var(--stone); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table tr:hover td { background: #FBF9F5; }
.table .thumb { width: 40px; height: 50px; border-radius: 999px 999px 6px 6px; object-fit: cover; background: var(--stone); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 130px; padding: 8px 12px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-narrow { max-width: 660px; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; }
.pagination li.active span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.pagination li.disabled span { color: var(--faint); }
.verify-input { font-family: var(--latin); font-size: 30px; letter-spacing: 8px; text-align: center; padding: 12px; }
.alert { padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; line-height: 1.6; }
.alert-warn { background: var(--warn-soft); color: #6E4800; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--ivory); border-radius: 18px; padding: 34px 28px 30px; }
.login-card .brand-lockup { margin-bottom: 24px; }
.mask { display: none; }
.a-tabbar { display: none; }

@media (max-width: 860px) {
  .a-side { position: fixed; left: -236px; z-index: 50; transition: left .2s; width: 226px; }
  .a-side.open { left: 0; }
  .mask.open { display: block; position: fixed; inset: 0; background: rgba(31, 28, 26, .45); z-index: 40; }
  .a-top { padding: 0 14px; }
  .a-top .menu-btn { display: block; }
  .a-content { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}
@media (max-width: 640px) {
  .a-top { height: 54px; }
  .a-top h1 { font-size: 16px; }
  .a-content { padding: 12px 12px calc(80px + env(safe-area-inset-bottom)); }
  .panel { padding: 14px 12px; border-radius: 14px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat::before { left: 14px; }
  .stat .n { font-size: 22px; }
  .filters { gap: 8px; }
  .filters .input { flex: 1 1 calc(50% - 8px); min-width: 0; font-size: 16px; }
  .filters .btn { flex: 1 1 auto; }
  .input, select.input, textarea.input { font-size: 16px; }
  .form-narrow { max-width: none; }
  .table-wrap { overflow: visible; }
  table.table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards thead { display: none; }
  .table-cards tr { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; background: var(--white); }
  .table-cards tr:hover td { background: none; }
  .table-cards td { border: none; padding: 5px 0; text-align: right; white-space: normal; overflow: hidden; }
  .table-cards td::before { content: attr(data-label); float: left; color: var(--muted); font-size: 13px; margin-right: 12px; }
  .table-cards td[data-label=""] { padding-top: 8px; }
  .table-cards td[data-label=""]::before { display: none; }
  .table-cards td[data-label=""] .btn { margin: 2px 0 2px 4px; }
  .table-cards td br { display: none; }
  .table-cards td br + * { margin-left: 6px; }
  .table-cards .thumb { width: 32px; height: 40px; display: inline-block; }
  .a-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .a-tabbar a, .a-tabbar button { flex: 1; text-align: center; padding: 7px 0 6px; color: var(--muted); font-size: 12px; background: none; border: none; cursor: pointer; }
  .a-tabbar .on { color: var(--ink); font-weight: 700; }
  .a-tabbar .on .ico-svg { stroke: var(--gold-d); }
  .a-tabbar .main .ico-svg { box-sizing: content-box; padding: 9px; margin: -18px auto 1px; border-radius: 50%; background: var(--ink); stroke: var(--gold); box-shadow: 0 6px 16px rgba(31, 28, 26, .25); }
}
@media print {
  .a-side, .a-top, .a-tabbar, .mask, .no-print, .qr-tab-bar { display: none !important; }
  .a-content { padding: 0; }
  body { background: #fff; }
}
