/* =========================================================
   好物市集 · 手机端设计系统
   风格：纸感编辑风（暖纸底 / 墨线 / 朱红点缀 / 衬线标题）
   图标：lucide SVG sprite（assets/icons.svg，无 emoji）
   ========================================================= */

:root {
  /* 色板 */
  --paper: #f2ede3;
  --paper-deep: #e8e1d2;
  --surface: #fffcf6;
  --ink: #1f1c17;
  --ink-2: #6e665a;
  --ink-3: #9a9184;
  --line: #e2d9c8;
  --accent: #de4a2b;
  --accent-deep: #b93a1f;
  --accent-soft: #fbeae2;
  --moss: #3e7a5b;
  --moss-soft: #e7f1eb;
  --gold: #b8801f;
  --gold-soft: #f8efdc;
  --steel: #3d5a8a;
  --steel-soft: #e8edf6;

  /* 圆角 */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --r-xl: 24px;

  /* 阴影 */
  --shadow-card: 0 1px 2px rgba(31, 28, 23, .04), 0 12px 26px -18px rgba(31, 28, 23, .35);
  --shadow-pop: 3px 3px 0 var(--ink);
  --shadow-lift: 0 14px 34px -16px rgba(31, 28, 23, .4);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --app-w: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--paper-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 纸张颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

::selection { background: rgba(222, 74, 43, .22); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- 应用外壳 ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: var(--app-w);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  padding-bottom: 108px;
  overflow-x: hidden;
}

.page { padding: 14px 16px 0; }

@media (min-width: 520px) {
  .app {
    border-left: 1px solid rgba(31, 28, 23, .14);
    border-right: 1px solid rgba(31, 28, 23, .14);
    box-shadow: 0 0 70px -24px rgba(31, 28, 23, .45);
  }
}

/* ---------- 图标 ---------- */
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  stroke-width: 1.8;
  vertical-align: -0.28em;
}

/* ---------- 文字工具 ---------- */
.serif { font-family: var(--font-display); }
.num { font-family: var(--font-num); font-feature-settings: "tnum" 1; }
.muted { color: var(--ink-3); }
.accent { color: var(--accent); }
.micro { font-size: 11px; color: var(--ink-3); }

.stack { display: flex; flex-direction: column; }
.rowflex { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }

/* 富文本（商品详情等） */
.rich { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.rich p + p { margin-top: 10px; }
.rich img { border-radius: 10px; margin-top: 10px; border: 1px solid var(--line); }
.rich b, .rich strong { color: var(--ink); }

/* 字段提示 */
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }

/* 下单清单行 */
.lineitem {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  background: var(--paper);
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
}
.lineitem__t { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.lineitem__meta { font-family: var(--font-num); font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.lineitem__v { margin-left: auto; font-family: var(--font-num); font-weight: 700; font-size: 15.5px; color: var(--accent); flex: none; }

/* 合计大条 */
.totalbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  margin-top: 14px;
}
.totalbar__k { font-size: 12.5px; letter-spacing: .08em; opacity: .75; }
.totalbar__v { font-family: var(--font-num); font-weight: 700; font-size: 24px; color: #ffb4a1; }

/* ---------- 顶部栏 ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px 11px;
  background: rgba(242, 237, 227, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.appbar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -3px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 10px);
  opacity: .18;
}

.brand { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .02em;
  line-height: 1.2;
}
.brand__en {
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.appbar__title { flex: 1; min-width: 0; }
.appbar__title h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar__title .sub {
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.iconbtn {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(31, 28, 23, .9);
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1), box-shadow .16s;
}
.iconbtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(31, 28, 23, .9); }
.iconbtn .ic { width: 18px; height: 18px; }
.iconbtn--back .ic { transition: transform .2s; }
.iconbtn--back:hover .ic { transform: translateX(-3px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-pop); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; gap: 5px; }
.btn--sm .ic { width: 14px; height: 14px; }
.btn--danger { background: var(--surface); color: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 3px 3px 0 var(--accent-deep); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 rgba(31, 28, 23, 0); }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 15px; }
.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field__label .ic { width: 14px; height: 14px; color: var(--ink-3); }

.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(222, 74, 43, .14);
}
.input:disabled { background: var(--paper-deep); color: var(--ink-3); -webkit-text-fill-color: var(--ink-3); opacity: 1; }
.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e665a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
  border: 1.5px solid;
}
.alert .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.alert--err { background: var(--accent-soft); border-color: rgba(185, 58, 31, .4); color: var(--accent-deep); }
.alert--warn { background: var(--gold-soft); border-color: rgba(184, 128, 31, .4); color: var(--gold); }
.alert--ok { background: var(--moss-soft); border-color: rgba(62, 122, 91, .4); color: var(--moss); }
.alert--info { background: var(--steel-soft); border-color: rgba(61, 90, 138, .35); color: var(--steel); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.card--flush { padding: 8px; overflow: hidden; }

/* 卡片内标题 */
.card__hd { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.card__hd h3 { font-family: var(--font-display); font-weight: 900; font-size: 15.5px; letter-spacing: .02em; }
.card__hd .sec__e { margin-left: 0; }
.card__hd .sec__rule { margin-left: 2px; }

/* ---------- 区块标题（杂志式） ---------- */
.sec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 13px;
}
.sec__t {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.sec__e {
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.sec__rule { flex: 1; border-top: 1px dashed var(--line); transform: translateY(-2px); }
.sec__more { font-size: 11.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; }
.sec__more .ic { width: 13px; height: 13px; }

/* ---------- 轮播 ---------- */
.carousel {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: var(--shadow-pop);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.carousel__track {
  display: flex;
  will-change: transform;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.carousel.is-dragging .carousel__track { transition: none; }

.slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 2.15 / 1;
  overflow: hidden;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* 排版式轮播（无图时的海报设计） */
.slide--typo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px 20px;
  color: var(--surface);
  box-shadow: inset 0 0 0 2000px rgba(31, 28, 23, .3);
}
.slide--typo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .16) 0 42px, transparent 43px),
    radial-gradient(circle at 82% 18%, transparent 0 58px, rgba(255, 255, 255, .2) 59px 60px, transparent 61px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.slide--t1 { background: #c9452a; }
.slide--t2 { background: #2f5d50; }
.slide--t3 { background: #2e3f66; }
.slide__kicker {
  position: relative;
  font-family: var(--font-num);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 6px;
}
.slide__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: .02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.slide__sub {
  position: relative;
  margin-top: 6px;
  font-size: 12px;
  opacity: .9;
  letter-spacing: .05em;
}
.slide__stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 54px;
  height: 54px;
  border: 1.5px dashed rgba(255, 255, 255, .75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: .1em;
  text-align: center;
  line-height: 1.3;
  transform: rotate(10deg);
  color: rgba(255, 255, 255, .92);
}

.carousel__dots {
  position: absolute;
  left: 16px;
  bottom: 13px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.dot {
  width: 13px;
  height: 4.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .45);
  border: none;
  padding: 0;
  transition: width .35s cubic-bezier(.22, 1, .36, 1), background .3s;
}
.dot.is-on { width: 27px; background: #fff; }

/* ---------- 悬浮公告（小票样式） ---------- */
.notice {
  position: fixed;
  top: 78px;
  left: 16px;
  right: 16px;
  max-width: calc(var(--app-w) - 32px);
  margin: 0 auto;
  z-index: 55;
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: drop-in .55s cubic-bezier(.22, 1, .36, 1) both;
}
.notice.is-hidden { animation: lift-out .3s ease-in forwards; }
.notice__stub {
  width: 40px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(31, 28, 23, .08) 6px 7px);
  border-right: 1.5px dashed var(--line);
}
.notice__body { flex: 1; min-width: 0; padding: 10px 10px 10px 12px; }
.notice__t {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.notice__x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--ink-3);
  transition: background .2s, color .2s, transform .2s;
}
.notice__x:hover { background: var(--paper); color: var(--accent); }
.notice__x:active { transform: scale(.85); }
.notice__x .ic { width: 15px; height: 15px; }
.notice__text { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; max-height: 70px; overflow-y: auto; padding-right: 18px; }

/* ---------- 分类导轨 ---------- */
.rail {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin: 16px -16px 0;
  padding-left: 16px;
  padding-right: 16px;
  scroll-snap-type: x proximity;
}
.chip {
  flex: none;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.chip__ic {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  box-shadow: 2.5px 2.5px 0 rgba(31, 28, 23, .9);
  color: var(--ink);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s, background .2s, color .2s;
  overflow: hidden;
}
.chip__ic img { width: 30px; height: 30px; object-fit: contain; }
.chip__ic .ic { width: 21px; height: 21px; }
.chip__char {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
}
.chip:active .chip__ic { transform: translate(2.5px, 2.5px); box-shadow: 0 0 0; }
.chip.is-on .chip__ic { background: var(--accent); border-color: var(--ink); color: #fff; transform: rotate(-4deg); }
.chip__lb {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  max-width: 62px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip.is-on .chip__lb { color: var(--accent-deep); font-weight: 700; }

/* ---------- 搜索 ---------- */
.search { display: flex; gap: 9px; margin-top: 14px; }
.search__box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  transition: border-color .2s, box-shadow .2s;
}
.search__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(222, 74, 43, .14); }
.search__box .ic { width: 16px; height: 16px; color: var(--ink-3); }
.search__box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 0;
  font-size: 14px;
  color: var(--ink);
}
.search__box input::placeholder { color: var(--ink-3); }

/* ---------- 子分类药丸 ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.pill {
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: all .2s;
}
.pill:active { transform: scale(.94); }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }

/* ---------- 商品网格 ---------- */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.goods-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.goods-card:active { transform: translateY(2px) scale(.985); box-shadow: none; }
.goods-card__img {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  overflow: hidden;
}
.goods-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.goods-card:active .goods-card__img img { transform: scale(1.04); }
.goods-card__img .ic { width: 34px; height: 34px; opacity: .5; }
.goods-card__body { padding: 10px 11px 12px; }
.goods-card__t {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  height: 39px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--ink);
}
.goods-card__row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; gap: 6px; }
.goods-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-num);
  font-size: 10.5px;
  color: var(--ink-3);
}
.goods-card__foot span { display: inline-flex; align-items: center; gap: 3px; }
.goods-card__foot .ic { width: 11px; height: 11px; }

.price {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.01em;
}
.price small { font-size: 11.5px; margin-right: .5px; font-weight: 700; }
.price--lg { font-size: 31px; }
.price--ink { color: var(--ink); }
.price--strike { font-size: 11.5px; color: var(--ink-3); text-decoration: line-through; font-weight: 500; }

.sticker {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: var(--accent);
  border: 1.2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  transform: rotate(-3.5deg);
}
.sticker--ink { background: var(--ink); }
.sticker--paper { background: var(--surface); color: var(--ink); }
.sticker--gold { background: var(--gold); }
.sticker--flat { position: static; transform: none; box-shadow: none; display: inline-block; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 46px 20px 40px; }
.empty__ic {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: 50%;
  color: var(--ink-3);
  position: relative;
}
.empty__ic::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(31, 28, 23, .14);
  border-radius: 50%;
}
.empty__ic .ic { width: 30px; height: 30px; }
.empty__t { font-family: var(--font-display); font-weight: 900; font-size: 16px; color: var(--ink-2); }
.empty__s { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.empty .btn { margin-top: 18px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 0 2px; }
.pager a, .pager span {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  transition: all .18s;
}
.pager a:active { transform: scale(.9); }
.pager .is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(31, 28, 23, .35);
}

/* ---------- 商品详情 ---------- */
.bleed { margin-left: -16px; margin-right: -16px; }

.hero-img {
  position: relative;
  aspect-ratio: 1.15 / 1;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .ic { width: 52px; height: 52px; opacity: .4; }
.hero-img__noimg { text-align: center; font-size: 12px; }

.sheet {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-top: none;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  margin: -26px 12px 0;
  padding: 18px 16px 18px;
  box-shadow: var(--shadow-lift);
  z-index: 2;
}

.detail-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: .01em;
}

.priceboard {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 13px;
  background: linear-gradient(135deg, rgba(222, 74, 43, .1), rgba(222, 74, 43, .03));
  border: 1.5px solid rgba(222, 74, 43, .35);
  border-radius: var(--r-m);
}
.priceboard__k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-deep);
  margin-bottom: 5px;
}
.priceboard__note { font-size: 11px; color: var(--ink-2); text-align: right; }

.metarow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.meta-chip .ic { width: 13px; height: 13px; color: var(--ink-3); }
.meta-chip--hot { color: var(--accent-deep); background: var(--accent-soft); border-color: rgba(222, 74, 43, .3); }
.meta-chip--hot .ic { color: var(--accent); }

/* 数量步进器 */
.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface);
}
.stepper button {
  width: 36px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: none;
  color: var(--ink);
  transition: background .15s, transform .15s;
}
.stepper button:active { background: var(--paper-deep); transform: scale(.9); }
.stepper button:first-child { border-right: 1.5px solid var(--ink); }
.stepper button:last-child { border-left: 1.5px solid var(--ink); }
.stepper button .ic { width: 14px; height: 14px; }
.stepper input {
  width: 54px;
  border: none;
  outline: none;
  text-align: center;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { border-radius: 9px; }
.stepper--sm button { width: 29px; }
.stepper--sm input { width: 40px; font-size: 13.5px; }

.btnrow { display: flex; gap: 10px; margin-top: 16px; }
.btnrow .btn { flex: 1; padding: 13px 10px; }

/* ---------- 购物车 ---------- */
.cart-item {
  display: flex;
  gap: 11px;
  padding: 13px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 11px;
  transition: transform .16s, box-shadow .16s;
}
.cart-item:active { transform: scale(.985); box-shadow: none; }

.check {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2.2px solid #fff;
  border-bottom: 2.2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
  margin-top: -2px;
}
.check:checked { background: var(--accent); border-color: var(--ink); }
.check:checked::after { transform: rotate(-45deg) scale(1); }
.check:active { transform: scale(.85); }
.check:disabled { background: var(--paper-deep); border-color: var(--line); }

.thumb {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ic { width: 24px; height: 24px; opacity: .55; }
.thumb--sm { width: 54px; height: 54px; border-radius: 10px; }

.cart-item__main { flex: 1; min-width: 0; }
.cart-item__t {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item__price { font-family: var(--font-num); font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.cart-item__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.subprice { font-family: var(--font-num); font-weight: 700; font-size: 15.5px; color: var(--accent); }

.iconbtn--flat {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: none;
  color: var(--ink-3);
}
.iconbtn--flat:hover { color: var(--accent); border-color: rgba(222, 74, 43, .5); }
.iconbtn--flat .ic { width: 14px; height: 14px; }

.checkout-bar {
  position: sticky;
  bottom: 92px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
}
.checkout-bar__k { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }
.checkout-bar__v { font-family: var(--font-num); font-weight: 700; font-size: 22px; color: var(--accent); line-height: 1.15; }
.checkout-bar__acts { display: flex; gap: 8px; }

/* ---------- 订单 ---------- */
.order {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 13px 14px;
  margin-bottom: 12px;
}
.order__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 10px;
}
.order__no { font-family: var(--font-num); font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }
.order__goods { display: flex; gap: 11px; align-items: center; }
.order__t { font-size: 13.5px; font-weight: 600; line-height: 1.5; flex: 1; min-width: 0; }
.order__ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.order__sum { font-size: 11.5px; color: var(--ink-2); }
.order__sum b { font-family: var(--font-num); font-size: 17px; color: var(--accent); margin-left: 3px; }
.order__acts { display: flex; gap: 7px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.tag .ic { width: 12px; height: 12px; }
.tag--wait { color: var(--gold); border-color: rgba(184, 128, 31, .45); background: var(--gold-soft); }
.tag--paid { color: var(--steel); border-color: rgba(61, 90, 138, .4); background: var(--steel-soft); }
.tag--ship { color: var(--steel); border-color: rgba(61, 90, 138, .4); background: var(--steel-soft); }
.tag--done { color: var(--moss); border-color: rgba(62, 122, 91, .45); background: var(--moss-soft); }
.tag--cancel { color: var(--ink-3); border-color: var(--line); background: var(--paper); }
.tag--fail { color: var(--accent-deep); border-color: rgba(185, 58, 31, .4); background: var(--accent-soft); }

/* ---------- 我的 ---------- */
.profile {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-l);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.profile::before {
  content: "";
  position: absolute;
  top: -34px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px dashed rgba(242, 237, 227, .28);
}
.profile::after {
  content: "";
  position: absolute;
  top: -12px;
  right: 8px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid rgba(222, 74, 43, .65);
}
.profile__top { display: flex; align-items: center; gap: 13px; position: relative; }
.profile__avatar {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
}
.profile__avatar .ic { width: 26px; height: 26px; }
.profile__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile__meta { font-size: 11.5px; color: rgba(242, 237, 227, .62); margin-top: 3px; }
.profile__role {
  position: absolute;
  right: 14px;
  bottom: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 10px;
  border: 1.5px solid var(--paper);
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-top: 13px;
  overflow: hidden;
}
.stat { position: relative; padding: 13px 6px 12px; text-align: center; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  border-left: 1px dashed var(--line);
}
.stat__k { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: 4px; }
.stat__k .ic { width: 12px; height: 12px; }
.stat__v { font-family: var(--font-num); font-weight: 700; font-size: 16.5px; margin-top: 4px; color: var(--ink); }
.stat__v--accent { color: var(--accent); }

.menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  transition: background .18s;
}
a.row:active { background: var(--paper); }
.row + .row { border-top: 1px dashed var(--line); }
.row__ic {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.row__ic .ic { width: 16px; height: 16px; }
a.row:active .row__ic { transform: rotate(-8deg) scale(.92); }
.row__t { flex: 1; font-size: 14px; font-weight: 600; }
.row__v { font-size: 12px; color: var(--ink-3); }
.row__chev { color: var(--ink-3); transition: transform .2s; }
.row__chev .ic { width: 16px; height: 16px; }
a.row:active .row__chev { transform: translateX(4px); color: var(--accent); }
.row.is-on { background: var(--paper); }
.row.is-on .row__t { color: var(--accent-deep); }

/* ---------- 客服对话 ---------- */
.chat { display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 84%; }
.msg__bubble {
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.7;
  border: 1.5px solid;
  border-radius: 16px;
}
.msg__meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 10.5px; color: var(--ink-3); }
.msg--me { align-self: flex-end; }
.msg--me .msg__bubble {
  background: var(--accent-soft);
  border-color: var(--ink);
  border-bottom-right-radius: 5px;
  box-shadow: 2px 2px 0 rgba(31, 28, 23, .85);
}
.msg--me .msg__meta { justify-content: flex-end; }
.msg--cs { align-self: flex-start; }
.msg--cs .msg__bubble {
  background: var(--surface);
  border-color: var(--line);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-card);
}
.msg__from {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  color: var(--accent-deep);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.msg__from .ic { width: 13px; height: 13px; }

/* ---------- 加盟 ---------- */
.hero-mark { text-align: center; padding: 8px 0 4px; }
.hero-mark__ic {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  transform: rotate(-4deg);
  color: var(--accent);
}
.hero-mark__ic .ic { width: 30px; height: 30px; }
.hero-mark__t { font-family: var(--font-display); font-weight: 900; font-size: 21px; }
.hero-mark__s { font-size: 12px; color: var(--ink-3); margin-top: 4px; letter-spacing: .05em; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 18px; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 13px;
  transition: transform .18s, box-shadow .18s;
}
.plan--hot { border-color: var(--ink); box-shadow: var(--shadow-pop); }
.plan--hot::before {
  content: "推荐";
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  transform: rotate(4deg);
}
.plan__ic {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 9px;
  color: var(--ink);
}
.plan__ic .ic { width: 17px; height: 17px; }
.plan--hot .plan__ic { background: var(--accent-soft); color: var(--accent); border-color: rgba(222, 74, 43, .35); }
.plan__t { font-family: var(--font-display); font-weight: 900; font-size: 15.5px; }
.plan__list { margin-top: 8px; list-style: none; }
.plan__list li {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.75;
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.plan__list li::before { content: "—"; color: var(--accent); flex: none; }

/* ---------- 认证页（登录/注册/找回） ---------- */
.auth { max-width: 380px; margin: 18px auto 0; }
.auth__head { text-align: center; margin-bottom: 20px; }
.auth__logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  transform: rotate(-4deg);
}
.auth__logo .ic { width: 28px; height: 28px; }
.auth__t { font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: .04em; }
.auth__s { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.auth__rule {
  width: 54px;
  height: 3px;
  margin: 13px auto 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 12px);
  border-radius: 2px;
}
.auth__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  font-size: 13px;
}
.auth__links a {
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.auth__links a:hover { color: var(--accent); }
.auth__links .ic { width: 14px; height: 14px; }

.inline-form { display: flex; gap: 9px; align-items: stretch; }
.inline-form .input { flex: 1; min-width: 0; }
.inline-form .btn { flex: none; align-self: center; }

.captcha {
  width: 118px;
  height: 44px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  object-fit: cover;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.captcha:hover { border-color: var(--ink); }
.captcha:active { transform: scale(.96); }

/* ---------- 表格（资金/提现） ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-2);
  background: var(--paper);
  padding: 9px 11px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 10px 11px; border-bottom: 1px dashed var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .amt { font-family: var(--font-num); font-weight: 700; }
.tbl .amt--in { color: var(--moss); }
.tbl .amt--out { color: var(--accent-deep); }

/* ---------- 底部导航（交互动画） ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  pointer-events: none;
  padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px));
}
.tabbar__inner {
  pointer-events: auto;
  position: relative;
  max-width: calc(var(--app-w) - 28px);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 16px 34px -18px rgba(31, 28, 23, .6), var(--shadow-pop);
  padding: 5px 6px;
  overflow: hidden;
}

.tab-ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 15px;
  background: rgba(222, 74, 43, .1);
  border: 1px solid rgba(222, 74, 43, .4);
  opacity: 0;
  transition: transform .42s cubic-bezier(.34, 1.3, .5, 1), width .42s cubic-bezier(.34, 1.3, .5, 1), opacity .3s;
  pointer-events: none;
}
.tabbar__inner.is-ready .tab-ind { opacity: 1; }

.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0 7px;
  color: var(--ink-3);
  border: none;
  background: none;
  border-radius: 15px;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  transition: color .25s;
}
.tab .ic {
  width: 22px;
  height: 22px;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.tab__lb {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: font-weight .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.tab.is-active { color: var(--accent); }
.tab.is-active .tab__lb { font-weight: 800; color: var(--accent-deep); }
.tab.is-active .ic { animation: icon-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
.tab.is-active .tab__lb { animation: label-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.tab:active .ic { transform: scale(.82) rotate(-10deg); }
.tab:active .tab__lb { transform: translateY(1px); }

.tab__badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--surface);
  border-radius: 999px;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  animation: badge-pop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(31, 28, 23, .14);
  transform: scale(0);
  animation: ripple .55s ease-out forwards;
  pointer-events: none;
}

/* ---------- 提示页（msg()） ---------- */
.msgpage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}
.msgpage__card {
  width: 100%;
  max-width: 350px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  padding: 30px 22px 24px;
  text-align: center;
  animation: rise .5s cubic-bezier(.22, 1, .36, 1) both;
}
.msgpage__ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--accent);
}
.msgpage__ic .ic { width: 28px; height: 28px; }
.msgpage__t { font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1.6; }
.msgpage .btn { margin-top: 22px; }

/* ---------- 动画 ---------- */
@keyframes icon-pop {
  0% { transform: scale(.55) rotate(-14deg); }
  55% { transform: scale(1.28) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes label-pop {
  0% { transform: translateY(4px); opacity: .4; }
  60% { transform: translateY(-2px); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes badge-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes ripple {
  to { transform: scale(3.2); opacity: 0; }
}
@keyframes drop-in {
  0% { transform: translateY(-22px) rotate(-1.5deg); opacity: 0; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes lift-out {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-18px); opacity: 0; }
}
@keyframes rise {
  0% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.rise { animation: rise .55s cubic-bezier(.22, 1, .36, 1) both; }
.rise-1 { animation-delay: .06s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .18s; }
.rise-4 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
