/* ============================================================
   副食公司 · PROVISION CO.  设计系统 v3 —— 软糖糖果 CANDY
   ------------------------------------------------------------
   视觉语言：糖果铺 / 软糖甜心
   粉白底 · 梅紫文字 · 糖果粉点睛 · 大圆角 · 软阴影 · 波糖点纹
   六色糖果卡轮换（粉/奶油/天空/薄荷/香芋/蜜桃）
   与博客游戏完全解耦：不用像素元素，商品视觉为统一线稿插画
   ============================================================ */

@font-face {
  font-family: "Smiley Sans";
  src: url("/fonts/smiley/SmileySans-Oblique.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg:        #fdf3f4;   /* 软糖粉白底 */
  --surface:   #ffffff;   /* 糖纸白 */
  --ink:       #43323c;   /* 梅子紫（主文字） */
  --ink-2:     #8c6b78;   /* 藕荷（次级） */
  --ink-3:     #b596a3;   /* 弱化 */
  --line:      #f0d7de;   /* 糖霜细线 */
  --line-soft: #f6e4e9;   /* 更浅的分隔线 */
  --accent:    #ff8fab;   /* 糖果粉 */
  --accent-deep:#f76d92;   /* 深糖果粉（价格/强调） */
  --ok:        #3ba26b;   /* 薄荷绿：已支付/成功 */
  --info:      #5a9fd4;   /* 苏打蓝：已发货 */
  --mute:      #b596a3;   /* 已取消 */

  --candy-1: #ffe9ef;     /* 草莓牛奶 */
  --candy-2: #fff5d8;     /* 黄油糖 */
  --candy-3: #e3f2ff;     /* 苏打汽水 */
  --candy-4: #e9f6e4;     /* 薄荷软糖 */
  --candy-5: #f6e9ff;     /* 香芋 */
  --candy-6: #ffeadf;     /* 蜜桃 */

  --shadow:    0 6px 18px rgba(214, 138, 160, .16);
  --shadow-lg: 0 16px 34px rgba(214, 138, 160, .24);

  --disp: "Smiley Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 143, 171, .10) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  font-size: 14px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::placeholder { color: var(--ink-3); }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 26px 24px 72px; }

/* ---------- 公告条（糖纸横幅） ---------- */
.ticker {
  background: var(--candy-1); color: var(--ink-2);
  font-size: 12px; letter-spacing: 1.5px;
  text-align: center; padding: 8px 12px;
}
.ticker b { color: var(--accent-deep); font-weight: bold; }

/* ---------- 导航（奶糖白 + 胶囊菜单） ---------- */
.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; height: 72px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(214, 138, 160, .14);
  position: sticky; top: 0; z-index: 50;
}
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-text {
  font-family: var(--disp); font-size: 27px; line-height: 1;
  letter-spacing: 3px; color: var(--ink);
}
.logo-text i { font-style: normal; color: var(--accent); }
.logo-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
  color: var(--ink-3);
}
.nav-links {
  display: flex; gap: 4px; margin-left: 6px;
  background: var(--surface); border-radius: 999px; padding: 5px;
  box-shadow: var(--shadow);
}
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px; font-size: 13.5px; letter-spacing: 1px;
  color: var(--ink-2); cursor: pointer; position: relative;
  border-radius: 999px; transition: background .15s, color .15s;
  white-space: nowrap; flex: none;
}
.nav-link .n { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0; }
.nav-link:hover { color: var(--ink); background: var(--candy-1); }
.nav-link.active { background: var(--accent); color: #fff; font-weight: bold; }
.nav-link.active .n { color: rgba(255, 255, 255, .75); }
.nav-spacer { flex: 1; }
.search { display: flex; align-items: stretch; height: 38px; }
.search input {
  width: 180px; padding: 0 16px; font-size: 13px;
  border: 1.5px solid var(--line); border-right: none;
  background: var(--surface); outline: none;
  border-radius: 999px 0 0 999px;
}
.search input:focus { border-color: var(--accent); }
.search button {
  padding: 0 15px; border: 1.5px solid var(--accent); background: var(--accent);
  color: #fff; display: flex; align-items: center;
  border-radius: 0 999px 999px 0;
}
.search button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.nav-cart {
  position: relative; width: 42px; height: 40px;
  border: 1.5px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 999px; transition: background .15s;
}
.nav-cart:hover { background: var(--candy-1); }
.nav-cart .badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent-deep); color: #fff;
  font-family: var(--mono); font-size: 10.5px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; box-shadow: 0 3px 8px rgba(247, 109, 146, .4);
}
.nav-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-dot {
  width: 9px; height: 9px; background: var(--ok); flex: none; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(59, 162, 107, .15);
}
.user-name { font-weight: bold; letter-spacing: 1px; }
.user-role { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 1px; }
.user-logout {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  cursor: pointer; border-bottom: 1px dashed var(--line); padding-bottom: 1px;
}
.user-logout:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.nav .btn-login { height: 38px; }

/* ---------- 按钮（糖果胶囊） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px; font-size: 14px; letter-spacing: 2px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  user-select: none; white-space: nowrap;
}
.btn:hover { background: var(--candy-1); border-color: var(--accent); color: var(--ink); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-main:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 16px rgba(247, 109, 146, .32);
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-sm { height: 34px; padding: 0 15px; font-size: 12.5px; letter-spacing: 1px; }
.btn-block { width: 100%; }

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 16px; }
.sec-no { font-family: var(--mono); font-size: 11px; color: var(--accent-deep); letter-spacing: 1px; }
.sec-title { font-family: var(--disp); font-size: 26px; letter-spacing: 3px; line-height: 1; }
.sec-line { flex: 1; height: 0; border-top: 2.5px dotted var(--line); align-self: center; }
.sec-extra { font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: 1px; }

/* ---------- 分类条 / 筛选条（软糖颗粒） ---------- */
.cate-bar { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 18px; }
.cate {
  padding: 8px 18px; font-size: 13px; letter-spacing: 1.5px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink-2); transition: all .15s;
}
.cate:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--candy-1); }
.cate.on {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: bold;
  box-shadow: 0 5px 14px rgba(247, 109, 146, .3);
}

/* ---------- 商品网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 4px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1280px) {
  .logo-sub { display: none; }
  .search input { width: 130px; }
  .user-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); } }

.p-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px;
  cursor: pointer; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
/* 六色糖果卡轮换 */
.grid .p-card:nth-child(6n+1) { background: var(--candy-1); }
.grid .p-card:nth-child(6n+2) { background: var(--candy-2); }
.grid .p-card:nth-child(6n+3) { background: var(--candy-3); }
.grid .p-card:nth-child(6n+4) { background: var(--candy-4); }
.grid .p-card:nth-child(6n+5) { background: var(--candy-5); }
.grid .p-card:nth-child(6n+6) { background: var(--candy-6); }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.p-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 2px dashed rgba(67, 50, 60, .10);
}
.p-no { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--ink-2); opacity: .75; }
.p-flag {
  font-size: 10.5px; letter-spacing: 1px; padding: 2.5px 10px;
  background: var(--accent); color: #fff; border-radius: 999px;
}
.p-art {
  height: 128px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.p-art img { width: 90px; height: 90px; }
.p-art::after {          /* 软糖落地影 */
  content: ""; position: absolute; left: 30%; right: 30%; bottom: 12px;
  height: 9px; background: rgba(67, 50, 60, .09); border-radius: 50%;
}
.p-out {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(253, 243, 244, .82); backdrop-filter: blur(1px);
}
.p-out i {
  font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 3px;
  color: #fff; background: var(--ink); padding: 5px 16px; border-radius: 999px;
}
.p-info { padding: 12px 16px 15px; flex: 1; display: flex; flex-direction: column; }
.p-name { font-size: 15.5px; font-weight: bold; letter-spacing: 1px; }
.p-desc {
  font-size: 12px; color: var(--ink-2); margin-top: 3px; height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--disp); font-size: 21px; line-height: 1; color: var(--ink); }
.price i { font-style: normal; font-size: 13px; margin-right: 1px; color: var(--accent-deep); }
.p-stock { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); opacity: .7; letter-spacing: .5px; }
.quick-add {
  position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px;
  background: var(--accent); color: #fff; border: none; border-radius: 50%;
  font-size: 19px; font-weight: bold; line-height: 1;
  opacity: 0; transition: opacity .15s, background .15s, transform .15s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px rgba(247, 109, 146, .4);
}
.p-card:hover .quick-add { opacity: 1; }
.quick-add:hover { background: var(--ink); transform: scale(1.1); }

/* ---------- 空提示 / 分页 ---------- */
.empty-tip {
  text-align: center; color: var(--ink-2); padding: 52px 0; font-size: 13.5px;
  border: 2px dashed var(--line); background: rgba(255, 255, 255, .65);
  border-radius: 20px; letter-spacing: 1px;
}
.empty-tip a { color: var(--accent-deep); font-weight: bold; }
.page { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.pg {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 13.5px; transition: all .15s;
}
.pg:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); background: var(--candy-1); }
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg:disabled { opacity: .35; cursor: not-allowed; }
.pg.plain { background: none; border-color: transparent; color: var(--ink-3); }

/* ---------- 表单卡 ---------- */
.form-card {
  max-width: 440px; margin: 40px auto;
  background: var(--surface); border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 32px 34px 28px; position: relative; overflow: hidden;
}
.form-card::before {      /* 顶部糖霜条 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg, var(--accent), #ffd6e2 40%, var(--candy-3) 75%, var(--candy-2));
}
.form-code { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--ink-3); margin: 6px 0 8px; }
.form-title { font-family: var(--disp); font-size: 30px; letter-spacing: 3px; line-height: 1.1; }
.form-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-2); margin: 6px 0 22px; letter-spacing: 1px; }
.field { margin-bottom: 18px; }
.field label {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: var(--ink-2); margin-bottom: 7px;
}
.field label b { color: var(--accent-deep); font-weight: normal; }
.field input {
  width: 100%; height: 46px; padding: 0 16px; font-size: 14.5px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(255, 143, 171, .22); background: #fff;
}
.form-line { border: none; border-top: 2px dashed var(--line); margin: 20px 0 16px; }
.form-note { font-size: 12.5px; color: var(--ink-2); line-height: 2; }
.form-note b { color: var(--accent-deep); font-weight: bold; }
.form-note a { color: var(--accent-deep); font-weight: bold; border-bottom: 1.5px solid var(--accent); }

/* ---------- 表格（购物车 / 单据明细） ---------- */
.sheet {
  background: var(--surface); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow);
}
.sheet-head {
  display: flex; align-items: center; gap: 12px;
  background: var(--candy-1); color: var(--ink-2); padding: 12px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
}
.sheet-head .sp { flex: 1; }
.ct-row {
  display: grid; grid-template-columns: 1fr 110px 130px 110px 70px;
  gap: 12px; align-items: center; padding: 15px 20px;
  border-bottom: 2px dotted var(--line-soft);
}
.ct-row.invalid { opacity: .5; }
.ct-prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ct-thumb {
  width: 56px; height: 56px; flex: none;
  background: var(--candy-1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.ct-thumb img { width: 44px; height: 44px; }
.ct-name a { font-weight: bold; letter-spacing: 1px; }
.ct-name a:hover { color: var(--accent-deep); }
.ct-spec { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.ct-price { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.ct-sum { font-family: var(--disp); font-size: 17px; }
.ct-del {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  background: none; border: none; border-bottom: 1px dashed transparent; padding: 0;
  letter-spacing: 1px;
}
.ct-del:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.stepper {
  display: inline-flex; align-items: stretch; height: 36px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  overflow: hidden;
}
.stepper span {
  width: 34px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 15px; cursor: pointer; user-select: none;
  transition: background .12s;
}
.stepper span:hover { background: var(--candy-1); color: var(--accent-deep); }
.stepper b {
  min-width: 42px; display: flex; align-items: center; justify-content: center;
  border-left: 1.5px solid var(--line-soft); border-right: 1.5px solid var(--line-soft);
  font-family: var(--mono); font-size: 13.5px; font-weight: normal;
}
.sheet-foot {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px; background: rgba(255, 233, 239, .45);
  border-top: 2px dashed var(--line);
}
.sheet-foot .clear {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  background: none; border: none; letter-spacing: 1px;
}
.sheet-foot .clear:hover { color: var(--accent-deep); }
.sheet-foot .total { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.sheet-foot .total b {
  font-family: var(--disp); font-size: 25px; color: var(--ink); margin: 0 2px;
}
.sheet-foot .total b i { font-style: normal; font-size: 14px; color: var(--accent-deep); }

/* ---------- 状态标签（糖果圆点） ---------- */
.st-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: 2px; white-space: nowrap;
}
.st-tag::before { content: ""; width: 9px; height: 9px; background: currentColor; border-radius: 50%; }
.st-0 { color: var(--accent-deep); }   /* 待支付 */
.st-1 { color: var(--ok); }            /* 已支付 */
.st-2 { color: var(--info); }          /* 已发货 */
.st-3 { color: var(--ink); }           /* 已完成 */
.st-4 { color: var(--mute); }          /* 已取消 */

/* ---------- 订单列表 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.order-card {
  background: var(--surface); border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.o-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 11px 20px; border-bottom: 2px dotted var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  background: rgba(255, 233, 239, .35);
}
.o-no { color: var(--ink); letter-spacing: .5px; }
.o-top .st-tag { margin-left: auto; }
.o-body { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.o-thumb {
  width: 58px; height: 58px; flex: none;
  background: var(--candy-1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.o-thumb img { width: 44px; height: 44px; }
.o-info { flex: 1; min-width: 0; }
.o-title { font-weight: bold; letter-spacing: 1px; font-size: 14.5px; }
.o-sub { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.o-sub .memo { color: var(--accent-deep); }
.countdown { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); margin-top: 5px; letter-spacing: 1px; }
.o-price { font-family: var(--disp); font-size: 21px; white-space: nowrap; }
.o-price i { font-style: normal; font-size: 13px; color: var(--accent-deep); }
.o-ops { display: flex; flex-direction: column; gap: 8px; margin-left: 6px; }

/* ---------- 收银台：付款小票 ---------- */
.pay-zone { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 26px; }
.slip {
  width: 440px; max-width: 100%;
  background: var(--surface); border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.slip-head {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fdf3f4; padding: 16px 22px;
}
.slip-shop { font-family: var(--disp); font-size: 21px; letter-spacing: 3px; line-height: 1; }
.slip-shop i { font-style: normal; color: var(--accent); }
.slip-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; opacity: .65; }
.slip-meta {
  display: grid; grid-template-columns: 64px 1fr; row-gap: 5px; column-gap: 14px;
  padding: 15px 22px 13px; border-bottom: 2px dotted var(--line-soft);
  font-family: var(--mono); font-size: 11.5px;
}
.slip-meta .k { color: var(--ink-3); letter-spacing: 2px; }
.slip-meta .v { color: var(--ink); word-break: break-all; }
.slip-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 22px; border-bottom: 2px dotted var(--line-soft); font-size: 13.5px;
}
.slip-item .n small { font-family: var(--mono); color: var(--ink-3); font-size: 11px; }
.slip-item .v { font-family: var(--mono); font-size: 13px; }
.slip-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 22px 14px;
}
.slip-total .lab { font-size: 13px; letter-spacing: 4px; color: var(--ink-2); }
.slip-total .val { font-family: var(--disp); font-size: 31px; line-height: 1; }
.slip-total .val i { font-style: normal; font-size: 16px; color: var(--accent-deep); }
.slip-actions { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 18px; }
.slip-cancel {
  background: none; border: none; font-family: var(--mono); font-size: 12px;
  color: var(--ink-2); letter-spacing: 1px; text-decoration: underline; align-self: center;
}
.slip-cancel:hover { color: var(--accent-deep); }
.slip-paid {
  margin: 14px 22px 16px; padding: 13px 18px;
  background: rgba(59, 162, 107, .09); border: 1.5px solid var(--ok); border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
}
.slip-paid .mark { font-family: var(--disp); font-size: 17px; color: var(--ok); letter-spacing: 2px; }
.slip-paid .note { font-family: var(--mono); font-size: 10.5px; color: var(--ok); letter-spacing: 1px; }
.slip-canceled {
  margin: 14px 22px 16px; padding: 13px 18px;
  background: var(--bg); border: 2px dashed var(--mute); border-radius: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: 1px;
}
.slip-foot {
  border-top: 2px dashed var(--line); padding: 14px 22px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.slip-foot .note { font-size: 11.5px; color: var(--ink-2); line-height: 1.8; }
.barcode {
  flex: none; width: 110px; height: 34px;
  background: repeating-linear-gradient(90deg,
    var(--accent-deep) 0 2px, transparent 2px 4px,
    var(--accent-deep) 4px 7px, transparent 7px 9px,
    var(--accent-deep) 9px 10px, transparent 10px 14px);
  opacity: .8;
}
.cashier-done {
  background: var(--surface); border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 26px 30px; text-align: center; max-width: 480px;
}
.cashier-done .big { font-family: var(--disp); font-size: 26px; letter-spacing: 3px; margin-bottom: 8px; }
.cashier-done .big i { font-style: normal; color: var(--accent); }
.cashier-done p { font-size: 13px; color: var(--ink-2); }
.cashier-done .links { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(67, 50, 60, .45);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  width: 390px; max-width: calc(100vw - 40px);
  background: var(--surface); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal .m-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 2px dashed var(--line);
  background: var(--candy-1);
}
.modal .m-title { font-family: var(--disp); font-size: 19px; letter-spacing: 2px; line-height: 1; }
.modal .modal-x {
  margin-left: auto; width: 30px; height: 30px;
  border: none; background: rgba(255, 255, 255, .8); border-radius: 50%;
  font-size: 15px; line-height: 1; color: var(--ink-2);
}
.modal .modal-x:hover { background: var(--accent); color: #fff; }
.modal .m-body { padding: 20px; font-size: 13.5px; }
.m-order { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); word-break: break-all; }
.m-price { font-size: 13px; margin: 10px 0; color: var(--ink-2); }
.m-price b { font-family: var(--disp); font-size: 27px; color: var(--ink); margin-left: 6px; }
.m-warn {
  font-size: 12.5px; color: var(--accent-deep);
  background: rgba(255, 143, 171, .09); border: 2px dashed var(--accent);
  padding: 11px 14px; margin: 10px 0 14px; letter-spacing: .5px; border-radius: 14px;
}
.m-warn b { font-family: var(--mono); }

/* ---------- 秒杀页 ---------- */
.sk-hero {
  margin-top: 4px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #ffe3ec, #fff3d6 55%, #e3f2ff);
  color: var(--ink);
  border-radius: 26px; box-shadow: var(--shadow);
  padding: 38px 34px 34px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.sk-hero::before {           /* 糖果条纹顶边 */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, #fff 16px 32px);
}
.sk-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 4px; color: var(--accent-deep); margin-bottom: 10px; }
.sk-title { font-family: var(--disp); font-size: 46px; letter-spacing: 6px; line-height: 1; }
.sk-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; letter-spacing: 1px; }
.sk-form { margin-left: auto; display: flex; gap: 10px; align-items: stretch; }
.sk-input {
  height: 46px; width: 160px; padding: 0 18px; font-size: 14px; font-family: var(--mono);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  outline: none; border-radius: 999px;
}
.sk-input::placeholder { color: var(--ink-3); }
.sk-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px rgba(255, 143, 171, .22); }
.sk-note { margin-top: 18px; }

/* ---------- 商品详情 ---------- */
.detail {
  display: grid; grid-template-columns: 400px 1fr; gap: 30px;
  background: var(--surface); border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px; margin-top: 4px;
}
@media (max-width: 840px) { .detail { grid-template-columns: 1fr; } }
.d-art {
  position: relative; height: 360px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(rgba(247, 109, 146, .14) 2px, transparent 2.4px) 0 0 / 26px 26px,
    var(--candy-1);
}
.d-art img { width: 220px; height: 220px; position: relative; z-index: 1; filter: drop-shadow(0 10px 14px rgba(67, 50, 60, .14)); }
.d-art .d-art-code {
  position: absolute; left: 14px; top: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--ink-2);
}
.d-main { display: flex; flex-direction: column; min-width: 0; }
.d-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--accent-deep); margin-bottom: 10px; }
.d-title { font-family: var(--disp); font-size: 34px; letter-spacing: 3px; line-height: 1.15; }
.d-sub { color: var(--ink-2); margin-top: 8px; font-size: 13.5px; }
.d-price-box {
  display: flex; align-items: baseline; gap: 16px;
  margin: 20px 0 6px; padding: 16px 20px;
  background: var(--candy-1); border-radius: 18px;
}
.d-price-box .price { font-size: 30px; }
.d-price-box .price i { font-size: 16px; }
.d-stock { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); letter-spacing: .5px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 4px; font-size: 12.5px; color: var(--ink-2); }
.d-meta span::before { content: "● "; color: var(--accent); font-size: 8px; vertical-align: 2px; }
.d-opt { display: flex; align-items: center; gap: 14px; margin: 14px 0 22px; }
.d-opt label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--ink-2); }
.d-btns { display: flex; gap: 14px; margin-top: auto; }
.sync-note {
  margin-top: 20px; border: 2px dashed var(--accent);
  background: rgba(255, 143, 171, .07); border-radius: 18px;
  padding: 13px 17px; font-size: 12.5px; line-height: 1.9; color: var(--ink);
}
.sync-note b { color: var(--accent-deep); }
.crumb { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.crumb b { color: var(--ink); }

/* ---------- 提示条 ---------- */
.notice-strip {
  margin-top: 16px; background: var(--surface);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 18px; font-size: 13px; display: flex; gap: 12px; align-items: baseline;
}
.notice-strip b { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--accent-deep); flex: none; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fdf3f4; padding: 12px 26px;
  border-radius: 999px; border: none;
  font-size: 13.5px; letter-spacing: 1px;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 200;
  max-width: 80vw;
  box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页脚（奶油波浪收尾） ---------- */
.footer {
  position: relative; margin-top: 96px;
  background: var(--ink); color: #d8c3cb;
  padding: 34px 24px 38px;
  border-radius: 30px 30px 0 0;
}
.f-wave {
  position: absolute; top: -37px; left: 0; width: 100%; height: 38px; display: block;
}
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 30px; flex-wrap: wrap; align-items: baseline; }
.f-logo { font-family: var(--disp); font-size: 20px; letter-spacing: 3px; color: #fdf3f4; }
.f-logo i { font-style: normal; color: var(--accent); }
.f-desc { font-size: 12px; flex: 1; min-width: 260px; line-height: 1.9; }
.f-mono { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: #a98da0; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav { height: auto; flex-wrap: wrap; padding: 12px 14px; gap: 12px; }
  .nav-links { height: auto; width: 100%; order: 3; flex-wrap: wrap; border-radius: 22px; }
  .search input { width: 120px; }
  .ct-row { grid-template-columns: 1fr 90px; }
  .ct-price, .ct-row .stepper { display: none; }
  .sk-title { font-size: 32px; }
  .sk-form { margin-left: 0; }
  .detail { padding: 18px; }
  .d-art { height: 260px; }
  .d-art img { width: 160px; height: 160px; }
  .o-body { flex-wrap: wrap; }
  .o-ops { flex-direction: row; width: 100%; }
}
