/* 金鸡岩外卖点餐 —— 全站样式
   配色照着小店招牌来的：纸黄底、朱红价、芋泥紫标题
   手机上看来就是一页到底，电脑上中间一条，不整那些花里胡哨的 */

:root {
  --paper: #f6f1e6;
  --paper-2: #fffdf7;
  --paper-3: #efe7d6;
  --ink: #332d27;
  --ink-2: #6f6558;
  --ink-3: #9a8d7c;
  --line: #e2d6c0;
  --line-2: #d3c3a8;
  --red: #c1452e;
  --red-dark: #9e3521;
  --red-soft: #fbeee9;
  --taro: #6d4a7c;
  --taro-soft: #f2ecf5;
  --green: #4d7a4a;
  --radius: 8px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: 40px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 14px 110px;
}

/* ------------------------------------------------------------------ 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper-2);
  border-bottom: 1px dashed var(--line-2);
}

.topbar-in {
  max-width: 560px;
  margin: 0 auto;
  height: 50px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .back {
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  padding: 4px 2px 4px 0;
  text-decoration: none;
}

.topbar .ttl {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .mini-link {
  font-size: 12.5px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
  background: #fff;
}

/* ------------------------------------------------------------------ 首页 */

.brand {
  padding: 22px 2px 16px;
}

.brand h1 {
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 2px;
  color: var(--ink);
}

.brand .sub {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 1px;
}

.brand .today {
  margin-top: 12px;
  display: inline-block;
  font-size: 12px;
  color: var(--taro);
  border: 1px solid #ded0cf;
  background: var(--taro-soft);
  border-radius: 4px;
  padding: 2px 8px;
}

.howto {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 14px 0 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
}

.howto b {
  color: var(--red);
  font-weight: 600;
}

.howto .step {
  display: flex;
  gap: 7px;
}

.howto .step i {
  font-style: normal;
  color: var(--ink-3);
  width: 16px;
  flex: none;
}

.shop-card {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  color: inherit;
  transition: transform 0.12s ease;
}

.shop-card:active {
  transform: scale(0.995);
}

.shop-card .ph {
  height: 120px;
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}

.shop-card .ph .ph-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  text-align: center;
  line-height: 1.65;
  font-size: 12px;
  color: #a89a84;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed var(--line-2);
}

.shop-card .ph img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card .ph img.contain,
.shop-photo img.contain {
  object-fit: contain;
  background: #f2ebdc;
}

.shop-card .body {
  padding: 11px 14px 13px;
}

.shop-card .name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shop-card .name h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.shop-card .name .badge {
  font-size: 11px;
  color: var(--green);
  border: 1px solid #c9dcc4;
  background: #f1f6ef;
  border-radius: 3px;
  padding: 1px 5px;
}

.shop-card .tagline {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

.shop-card .foot {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}

.shop-card .foot .go {
  color: var(--red);
  font-weight: 600;
}

/* ------------------------------------------------------------------ 店铺页 */

.shop-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 0 12px;
  margin-bottom: 12px;
}

.shop-photo {
  height: 132px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--paper-3);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.shop-photo .ph-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: #a89a84;
  text-align: center;
  line-height: 1.7;
  padding: 0 28px;
}

.shop-photo .ph-text b {
  font-weight: 400;
  font-size: 13px;
  color: #9a8a72;
  letter-spacing: 1px;
}

.shop-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-head h1 {
  font-family: "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", serif;
  font-size: 24px;
  margin: 0 0 6px;
  letter-spacing: 1.5px;
}

.shop-head .meta {
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.shop-head .notice {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fdf7e8;
  border-left: 3px solid #e0c98d;
  padding: 7px 10px;
  line-height: 1.6;
}

.cat-nav {
  position: sticky;
  top: 50px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 0;
  background: var(--paper);
  margin-bottom: 4px;
  scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav button {
  flex: none;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-2);
}

.cat-nav button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fdf7ea;
}

.sec {
  margin-bottom: 20px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 16px 0 4px;
}

.sec-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--taro);
  border: 1.5px solid var(--taro);
  border-radius: 3px;
  padding: 1px 9px;
  line-height: 1.6;
}

.sec-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.menu-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 13px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.row-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.row-name .must {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--red);
  border: 1px solid #eec6bb;
  background: var(--red-soft);
  border-radius: 3px;
  padding: 0 4px;
}

.row-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.45;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.price {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--red);
  font-size: 17px;
  white-space: nowrap;
}

.price small {
  font-size: 12px;
  margin-right: 1px;
}

.price .unit {
  font-size: 11px;
  color: var(--ink-3);
  font-family: inherit;
  margin-left: 1px;
}

.add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  background: var(--paper-2);
  color: var(--red);
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
}

.add-btn:active {
  background: var(--red);
  color: #fff;
}

.tips {
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 9px 12px;
  background: #faf4e6;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  line-height: 1.7;
  margin: 0 0 6px;
}

.tips b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}

/* ------------------------------------------------------------------ 购物车 */

.cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 14px 12px;
  pointer-events: none;
}

.cartbar-in {
  pointer-events: auto;
  background: #2f2a26;
  color: #fdf7ea;
  border-radius: 10px;
  padding: 9px 10px 9px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(52, 40, 26, 0.22);
}

.cartbar .sum {
  flex: 1;
  font-size: 12.5px;
  color: #d9cdb8;
}

.cartbar .sum b {
  display: block;
  font-family: Georgia, serif;
  font-size: 19px;
  color: #fdf7ea;
  font-weight: 400;
}

.cartbar .btn {
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 14.5px;
  padding: 9px 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cartbar .btn[disabled] {
  background: #6b625a;
  color: #cfc5b8;
}

/* ------------------------------------------------------------------ 弹层 */

.mask {
  position: fixed;
  inset: 0;
  background: rgba(38, 30, 22, 0.45);
  z-index: 50;
  display: none;
}

.mask.on {
  display: block;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper-2);
  border-radius: 14px 14px 0 0;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  transform: translateY(104%);
  transition: transform 0.22s ease;
}

.sheet.on {
  transform: translateY(0);
}

.sheet-head {
  padding: 14px 16px 10px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sheet-head h3 {
  font-size: 17px;
  margin: 0 0 3px;
  letter-spacing: 0.5px;
}

.sheet-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.sheet-head .x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  padding: 0 2px;
}

.sheet-body {
  padding: 4px 16px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.opt-block {
  padding: 12px 0 4px;
  border-bottom: 1px dashed var(--line);
}

.opt-block:last-child {
  border-bottom: 0;
}

.opt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 13.5px;
  font-weight: 600;
}

.opt-head em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

.opt-head em.warn {
  color: var(--red);
}

.opt-group + .opt-group {
  margin-top: 10px;
}

.group-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  padding: 7px 11px;
  border-radius: 6px;
  line-height: 1.2;
}

.chip.wide {
  min-width: 46%;
  flex: 1;
  text-align: center;
}

.chip .plus {
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 3px;
}

.chip.on {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(193, 69, 46, 0.35);
}

.chip.on .plus {
  color: var(--red);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 2px;
}

.presets button {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  background: #fffdf7;
  color: var(--ink-2);
}

.presets button.on {
  border-style: solid;
  border-color: var(--taro);
  color: var(--taro);
}

.sheet-foot {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-2);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px 8px;
}

.stepper button {
  border: 0;
  background: transparent;
  font-size: 17px;
  color: var(--ink-2);
  padding: 0 2px;
  line-height: 1;
}

.stepper span {
  min-width: 16px;
  text-align: center;
  font-size: 14px;
}

.sheet-foot .grow {
  flex: 1;
  text-align: right;
  font-size: 12px;
  color: var(--ink-3);
}

.sheet-foot .grow b {
  display: block;
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--red);
  font-weight: 400;
}

.sheet-foot .submit {
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
}

.sheet-foot .submit[disabled] {
  background: #cbc0b2;
  color: #fff;
}

.sheet-hint {
  font-size: 12px;
  color: var(--red);
  padding: 0 16px 8px;
}

/* ------------------------------------------------------------------ 结算 */

.page-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.field {
  margin-bottom: 13px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.field label i {
  font-style: normal;
  color: var(--red);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--taro);
}

.field select {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  height: 42px;
}

.note-input {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  margin: 2px 0 12px;
}

.note-input:focus {
  border-color: var(--taro);
}

.field textarea {
  min-height: 62px;
  resize: vertical;
}

.seg {
  display: flex;
  gap: 8px;
}

.seg button {
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

.seg button.on {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 600;
}

.big-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 13px 0;
  margin-top: 4px;
}

.big-btn[disabled] {
  background: #cbc0b2;
}

.big-btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  font-weight: 400;
  font-size: 14px;
}

.cart-list {
  margin-bottom: 14px;
}

.cart-line {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line .li-main {
  flex: 1;
  min-width: 0;
}

.cart-line .li-opt {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.5;
}

.cart-line .li-right {
  text-align: right;
  flex: none;
}

.cart-line .li-total {
  font-family: Georgia, serif;
  color: var(--red);
  font-size: 15px;
}

.cart-line .rm {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  padding: 2px 0 0;
  text-decoration: underline;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.total-line b {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--red);
  font-weight: 400;
}

/* ------------------------------------------------------------------ 号码页 */

.order-hero {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  margin-top: 14px;
  position: relative;
}

.order-hero .ok {
  font-size: 13px;
  color: var(--green);
  letter-spacing: 1px;
}

.order-hero .no {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  letter-spacing: 3px;
  margin: 6px 0 2px;
  color: var(--ink);
}

.order-hero .no-label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 2px;
}

.order-hero .amt {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.order-hero .amt b {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--red);
  font-weight: 400;
  margin-left: 3px;
}

.order-hero .dash {
  border-top: 1px dashed var(--line-2);
  margin: 14px 0 12px;
}

.order-hero .pay {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  text-align: left;
}

.order-hero .pay .wx {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 2px 9px;
  margin: 2px 0;
  letter-spacing: 0.5px;
}

.status-pill {
  display: inline-block;
  font-size: 12px;
  border-radius: 20px;
  padding: 2px 10px;
  border: 1px solid;
}

.status-pending {
  color: #a8720f;
  border-color: #e8cf9a;
  background: #fdf6e4;
}

.status-paid {
  color: var(--green);
  border-color: #c2d8bd;
  background: #f0f7ee;
}

.status-cancelled {
  color: var(--ink-3);
  border-color: var(--line-2);
  background: #f2efe9;
}

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  margin-top: 12px;
}

.panel h3 {
  font-size: 13.5px;
  margin: 0 0 10px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.panel h3 span {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  padding: 5px 0;
}

.kv .k {
  color: var(--ink-3);
  flex: none;
}

.kv .v {
  text-align: right;
  word-break: break-word;
}

.notice-box {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.75;
  background: #fdf7e8;
  border: 1px solid #ecdcb6;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}

/* ------------------------------------------------------------------ 查单 */

.query-hero {
  padding: 26px 0 6px;
}

.query-hero h1 {
  font-family: "Kaiti SC", "KaiTi", "STKaiti", serif;
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.query-hero p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.inline-form input {
  flex: 1;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  font-size: 15px;
  letter-spacing: 1px;
  outline: none;
}

.inline-form input:focus {
  border-color: var(--taro);
}

.inline-form button {
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 0 20px;
}

/* ------------------------------------------------------------------ 后台 */

.admin-body {
  background: #f3efe6;
}

.admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px 60px;
}

.admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 12px;
}

.admin-head h1 {
  font-size: 19px;
  margin: 0;
  letter-spacing: 1px;
}

.admin-head .sub {
  font-size: 12px;
  color: var(--ink-3);
}

.admin-head .spacer {
  flex: 1;
}

.admin-head button {
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  border-radius: 6px;
  font-size: 12.5px;
  padding: 6px 11px;
  color: var(--ink-2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.stat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}

.stat .lb {
  font-size: 12px;
  color: var(--ink-3);
}

.stat .nm {
  font-family: Georgia, serif;
  font-size: 23px;
  color: var(--ink);
  line-height: 1.3;
}

.stat .nm small {
  font-size: 12px;
  color: var(--ink-3);
  font-family: inherit;
  margin-left: 3px;
}

.stat.hot .nm {
  color: var(--red);
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.search-bar input {
  flex: 1;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--taro);
}

.search-bar button {
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fdf7ea;
  padding: 0 18px;
  font-size: 14px;
}

.filter-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-row button {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 15px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-2);
}

.filter-row button.on {
  background: var(--taro);
  border-color: var(--taro);
  color: #fff;
}

.export-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
}

.btn-export {
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 7px;
  font-size: 13px;
  padding: 7px 14px;
  letter-spacing: 0.5px;
}

.btn-export:active {
  background: var(--paper-3);
}

.export-hint {
  font-size: 11.5px;
  color: var(--ink-3);
}

.order-item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.order-item.pending {
  border-left: 3px solid #d9a520;
}

.order-item.paid {
  border-left: 3px solid var(--green);
}

.order-item.cancelled {
  border-left: 3px solid #bdb2a1;
  opacity: 0.72;
}

.oi-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.oi-no {
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: 1.5px;
  color: var(--ink);
}

.oi-shop {
  font-size: 11.5px;
  color: var(--taro);
  border: 1px solid #dccde3;
  background: var(--taro-soft);
  border-radius: 3px;
  padding: 1px 6px;
}

.oi-time {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: auto;
}

.oi-lines {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
}

.oi-lines .op {
  color: var(--ink-3);
  font-size: 12px;
}

.oi-lines .qi {
  color: var(--ink-3);
}

.oi-cust {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.oi-cust b {
  font-weight: 600;
  color: var(--ink);
}

.oi-note {
  margin-top: 7px;
  font-size: 12.5px;
  color: #8a5a12;
  background: #fdf6e4;
  border-radius: 5px;
  padding: 5px 9px;
}

.oi-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.oi-total {
  font-family: Georgia, serif;
  font-size: 19px;
  color: var(--red);
}

.oi-spacer {
  flex: 1;
}

.btn-pay {
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}

.btn-plain {
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  padding: 7px 11px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  margin: 6px 0 4px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.bar-col .bar {
  width: 100%;
  max-width: 26px;
  background: #d8c8ac;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}

.bar-col .bar.hot {
  background: var(--red);
}

.bar-col .day {
  font-size: 10.5px;
  color: var(--ink-3);
}

.bar-col .val {
  font-size: 10px;
  color: var(--ink-3);
}

.top-list {
  font-size: 13px;
}

.top-list .ti {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
}

.top-list .ti:last-child {
  border-bottom: 0;
}

.empty {
  padding: 30px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  background: rgba(47, 42, 38, 0.94);
  color: #fdf7ea;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 20px;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 90;
  pointer-events: none;
  max-width: 80vw;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.foot-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 22px;
  line-height: 1.8;
}

@media (min-width: 620px) {
  body {
    background: #f1ebdd;
  }
  .wrap {
    background: var(--paper);
    border-left: 1px solid #e6dcc9;
    border-right: 1px solid #e6dcc9;
    min-height: 100vh;
  }
  .brand h1 {
    font-size: 33px;
  }
}
