/* ============================================================
   指尖魔法DIY · H5 设计系统
   陶土色系：赭石红棕 × 米白 × 深棕
   ============================================================ */
:root {
  --primary: #9c3f28;
  --primary-deep: #7a2f1c;
  --primary-soft: #f5e7d0;
  --bg: #f7f1e3;
  --card: #fffdf6;
  --ink: #2e2620;
  --ink-2: #877767;
  --line: #e8ddc7;
  --gold: #b8925a;
  --green: #07c160;
  --danger: #c23b22;
  --radius: 12px;
  --shadow: 0 5px 16px rgba(88, 62, 30, .07);
  --tab-h: 62px;
  --frame-gap: 3vh;
  --serif: 'STZhongsong', 'STKaiti', 'KaiTi', 'STSong', 'SimSun', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  background: #221b14;
  color: var(--ink);
  font-size: 14px;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; border: 0; outline: 0; background: none; }
ul { list-style: none; }

/* 应用容器：移动端全屏文档滚动；桌面端固定高度手机框 + 内部滚动 */
#app {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  background-image: radial-gradient(rgba(184, 146, 90, .055) 1px, transparent 1px);
  background-size: 16px 16px;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, .5);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 480px) {
  body { height: 100vh; overflow: hidden; }
  #app {
    height: calc(100vh - 2 * var(--frame-gap));
    min-height: 0;
    margin: var(--frame-gap) auto;
    border-radius: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    box-shadow: 0 0 44px rgba(0, 0, 0, .5);
  }
  #app::-webkit-scrollbar { display: none; }
}
.page { animation: pageIn .28s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 通用 ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; }
.icon svg { width: 100%; height: 100%; display: block; }

.price { color: var(--primary); font-weight: 700; }
.price .cur { font-size: .78em; margin-right: 1px; }
.price .num { font-size: 1.18em; }
.price small.orig { color: var(--ink-2); font-weight: 400; text-decoration: line-through; font-size: .8em; margin-left: 5px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; line-height: 1.5; background: var(--primary-soft); color: var(--primary-deep); white-space: nowrap; }
.tag.gold { background: #f6ecdb; color: #8a6420; }
.tag.blue { background: #e3edf7; color: #3a6ea5; }
.tag.green { background: #e2f3e7; color: #1f8a4c; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; background: linear-gradient(135deg, #a8432c, #8a3320); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; box-shadow: 0 4px 12px rgba(163, 63, 40, .26), inset 0 0 0 1px rgba(216, 168, 101, .55); white-space: nowrap; letter-spacing: 1px; }
.btn:active { transform: scale(.96); }
.btn.sm { padding: 6px 14px; font-size: 12.5px; box-shadow: none; }
.btn.block { width: 100%; padding: 13px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
.btn.plain { background: var(--primary-soft); color: var(--primary-deep); box-shadow: none; border: 1px solid rgba(184, 146, 90, .35); }
.btn.disabled { opacity: .5; pointer-events: none; }
.btn.wechat { background: var(--green); box-shadow: 0 4px 12px rgba(7, 193, 96, .3); }

.card { background: var(--card); border-radius: var(--radius); border: 1px solid rgba(184, 146, 90, .16); box-shadow: var(--shadow); }
.cell { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); cursor: pointer; }
.cell:last-child { border-bottom: 0; }
.cell .ci { width: 20px; text-align: center; color: var(--primary); font-size: 17px; flex: none; }
.cell .ct { flex: 1; font-size: 14.5px; }
.cell .cd { color: var(--ink-2); font-size: 12.5px; }
.cell .ar { color: #c9bcb0; font-size: 15px; }

.badge { position: absolute; top: -4px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.badge.dot { min-width: 7px; width: 7px; height: 7px; right: -3px; padding: 0; }

/* 顶部导航（二级页） */
.nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; height: 46px; padding: 0 8px; background: rgba(246, 241, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .nb { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--ink); cursor: pointer; }
.nav .nt { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 34px; }

/* 底部 TabBar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 251, 246, .99)); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(90, 55, 25, .10); display: flex; z-index: 70; }
.tabbar::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(163, 63, 40, .4), transparent); }
.tabbar .tb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #a2907f; font-size: 10.5px; letter-spacing: .5px; cursor: pointer; position: relative; padding-top: 2px; transition: color .18s; }
.tabbar .tb .icon { width: 22px; height: 22px; transition: transform .18s; }
.tabbar .tb .twrap { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 27px; border-radius: 999px; transition: background .2s, transform .18s; }
.tabbar .tb.on { color: var(--primary-deep); font-weight: 700; font-family: var(--serif); letter-spacing: 1px; }
.tabbar .tb.on .twrap { background: linear-gradient(135deg, #f8e6d5, #f2cdb0); box-shadow: inset 0 0 0 1px rgba(163, 63, 40, .16); }
.tabbar .tb.on .icon { transform: scale(1.1); }
.tabbar .tb:active .twrap { transform: scale(.9); }
.tabbar .tb .badge { top: -5px; right: -7px; }
@media (min-width: 480px) { .tabbar { bottom: var(--frame-gap); border-radius: 0 0 24px 24px; overflow: hidden; } }

/* 顶部搜索头（首页） */
.home-head { position: sticky; top: 0; z-index: 60; background: linear-gradient(160deg, #9c3f28, #c06a3e); padding: 12px 14px 34px; color: #fff; }
.hh-row { display: flex; align-items: center; gap: 10px; }
.brand { font-family: 'STZhongsong', 'SimSun', serif; font-size: 19px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,.15); }
.brand small { font-size: 10px; font-family: inherit; display: block; letter-spacing: 2.5px; opacity: .85; font-weight: 400; }
.hh-loc { flex: none; display: flex; align-items: center; gap: 3px; font-size: 11px; opacity: .92; background: rgba(255,255,255,.18); padding: 4px 8px; border-radius: 8px; max-width: 130px; white-space: nowrap; overflow: hidden; }
.hh-loc .icon { flex: none; font-size: 12px; }
.hh-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .95); color: #b09a8a; border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.hh-search .icon { font-size: 14px; color: var(--primary); }
.hh-search span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hh-more { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 18px; position: relative; }

/* 区块标题 */
.sec { padding: 16px 14px 4px; display: flex; align-items: baseline; gap: 8px; }
.sec .st { font-size: 17px; font-weight: 700; }
.sec .sd { font-size: 12px; color: var(--ink-2); flex: 1; }
.sec .smore { font-size: 12px; color: var(--primary); cursor: pointer; display: flex; align-items: center; gap: 2px; }

/* 横向滚动 */
.hscroll { display: flex; gap: 10px; padding: 10px 14px 4px; overflow-x: auto; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* Banner 轮播 */
.banner { margin: -26px 14px 0; position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #ddd; }
.bwrap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.bwrap::-webkit-scrollbar { display: none; }
.bslide { flex: none; width: 100%; position: relative; scroll-snap-align: center; aspect-ratio: 2.05/1; cursor: pointer; }
.bslide img { position: absolute; inset: 0; }
.bslide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,20,8,.55), rgba(40,20,8,.05) 55%); }
.binfo { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 2; color: #fff; }
.binfo .bt { font-size: 17px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.4); margin: 4px 0 3px; }
.binfo .bs { font-size: 11.5px; opacity: .92; }
.binfo .btag { display: inline-block; font-size: 10px; background: rgba(255,255,255,.25); padding: 1px 8px; border-radius: 999px; backdrop-filter: blur(2px); }
.dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); transition: .25s; }
.dots i.on { width: 14px; background: #fff; }

/* 公告 */
.notice { display: flex; align-items: center; gap: 8px; margin: 10px 14px 0; background: #fbf3e0; border: 1px solid rgba(184, 146, 90, .3); border-radius: 10px; padding: 8px 12px; overflow: hidden; }
.notice .icon { color: var(--gold); font-size: 15px; flex: none; }
.notice .ntxt { flex: 1; font-size: 12px; color: #7a5b2e; white-space: nowrap; overflow: hidden; position: relative; height: 18px; }
.notice .ntxt span { position: absolute; line-height: 18px; animation: marquee 12s linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* 金刚区 */
.king { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 0; padding: 16px 8px 6px; background: var(--card); margin: 12px 14px 0; border-radius: 16px; box-shadow: var(--shadow); }
.king .ki { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 11.5px; color: var(--ink); }
.king .ki:active { transform: scale(.93); }
.king .kico { width: 44px; height: 44px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.kico.c1, .kico.c2, .kico.c3, .kico.c4, .kico.c5, .kico.c6, .kico.c7, .kico.c8 {
  background: linear-gradient(160deg, #fbf3e0, #f3e5c8); border: 1px solid rgba(184, 146, 90, .32); }
.king .ki .sub { font-size: 9px; color: var(--ink-2); margin-top: -4px; }

/* 秒杀条 */
.flash { background: linear-gradient(135deg, #fdf3e1, #f9e7cb); border: 1px solid rgba(184, 146, 90, .3); border-radius: 12px; margin: 12px 14px 0; padding: 12px 14px; box-shadow: var(--shadow); }
.flash-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.flash-head .ft { font-size: 15.5px; font-weight: 800; color: var(--primary-deep); display: flex; align-items: center; gap: 4px; }
.flash-head .cd { margin-left: auto; font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.flash-head .cd b { background: var(--ink); color: #fff; border-radius: 4px; padding: 1.5px 4px; font-weight: 600; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.flash-head .cm { color: var(--primary); font-weight: 600; font-size: 12px; cursor: pointer; }
.flash-list { display: flex; gap: 12px; overflow-x: auto; }
.flash-list::-webkit-scrollbar { display: none; }
.flash-item { flex: none; width: 104px; cursor: pointer; }
.flash-item .fi-img { width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: #f0e4d8; position: relative; }
.flash-item .fi-t { font-size: 12px; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flash-item .fi-p { color: var(--primary); font-weight: 700; font-size: 14px; }
.flash-item .fi-p small { font-size: 10px; color: var(--ink-2); text-decoration: line-through; font-weight: 400; margin-left: 3px; }
.flash-item .prog { height: 12px; background: #ffe3c9; border-radius: 999px; margin-top: 4px; position: relative; overflow: hidden; }
.flash-item .prog i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c98a52, var(--primary)); border-radius: 999px; }
.flash-item .prog b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #7a4212; font-weight: 600; }

/* 课程卡 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 10px 14px 0; }
.course-card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.course-card:active { transform: scale(.98); }
.cc-img { aspect-ratio: 4/3; position: relative; background: #efe3d6; }
.cc-img .hot { position: absolute; top: 8px; left: 8px; background: rgba(194, 59, 34, .92); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 999px; }
.cc-body { padding: 9px 10px 11px; }
.cc-t { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cc-tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.cc-tags .tag { padding: 1px 6px; font-size: 10px; background: #f6efe7; color: #977d62; }
.cc-foot { display: flex; align-items: center; margin-top: 7px; }
.cc-foot .ccs { font-size: 10.5px; color: var(--ink-2); flex: 1; }

/* 商品卡 */
.prod-card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.prod-card:active { transform: scale(.98); }
.pc-img { aspect-ratio: 1; position: relative; background: #efe3d6; }
.pc-img .corner { position: absolute; top: 8px; left: 8px; background: rgba(163, 63, 40, .92); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 999px; }
.pc-img .corner.w { background: rgba(184, 146, 90, .95); }
.pc-body { padding: 9px 10px 11px; }
.pc-t { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pc-a { font-size: 10.5px; color: var(--gold); margin-top: 3px; }
.pc-f { display: flex; align-items: center; margin-top: 6px; }
.pc-s { font-size: 10px; color: var(--ink-2); flex: 1; }

/* 作品卡（横向） */
.work-card { width: 132px; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.wc-img { aspect-ratio: 1; background: #efe3d6; }
.wc-body { padding: 8px 10px 10px; }
.wc-t { font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-f { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--ink-2); }
.wc-f .lk { display: flex; align-items: center; gap: 3px; color: var(--danger); }

/* 商家卡（横向） */
.mch-card { width: 200px; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.mc-img { aspect-ratio: 16/10; position: relative; background: #efe3d6; }
.mc-img .mc-emoji { position: absolute; left: 8px; bottom: -14px; width: 34px; height: 34px; background: #fff; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 19px; box-shadow: var(--shadow); }
.mc-body { padding: 20px 11px 11px; }
.mc-t { font-size: 13px; font-weight: 600; }
.mc-d { font-size: 11px; color: var(--ink-2); margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mc-f { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.mc-f .mc-off { color: var(--danger); font-size: 11px; font-weight: 600; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-f .mc-go { font-size: 11px; color: var(--primary); }

/* 邀请条 */
.invite-strip { margin: 14px; border-radius: 10px; padding: 15px 16px; background: linear-gradient(120deg, #8f3220, #a8432c); color: #f7e8cf; display: flex; align-items: center; position: relative; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.invite-strip::after { content: '财'; position: absolute; right: 16px; bottom: 6px; font-family: var(--serif); font-size: 46px; opacity: .2; color: #f0d9a8; }
.invite-strip .it { flex: 1; }
.invite-strip .it b { font-size: 15.5px; }
.invite-strip .it p { font-size: 11px; opacity: .8; margin-top: 3px; }
.invite-strip .ibtn { background: linear-gradient(135deg, #f0d9a8, #d8b978); color: #6e3a12; font-size: 12px; font-weight: 700; padding: 7px 15px; border-radius: 999px; }

/* 首页 footer */
.home-foot { text-align: center; padding: 26px 0 18px; color: #b7a697; font-size: 11px; line-height: 1.8; }

/* 课程页 */
.cat-pills { position: sticky; top: 46px; z-index: 50; background: var(--bg); display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.cat-pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--card); font-size: 12.5px; color: #9d8b7a; box-shadow: 0 2px 8px rgba(90,55,25,.06); cursor: pointer; }
.pill.on { background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; font-weight: 600; }

/* 商城页 */
.mall-tabs { display: flex; background: var(--card); margin: 10px 14px 0; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); position: sticky; top: 46px; z-index: 50; }
.mall-tabs .mt { flex: 1; text-align: center; padding: 8px 0; font-size: 13.5px; color: #9d8b7a; border-radius: 999px; cursor: pointer; font-weight: 500; }
.mall-tabs .mt.on { background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; font-weight: 600; }
.cart-fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 20px rgba(163, 63, 40, .4); cursor: pointer; z-index: 65; }
@media (min-width: 480px) { .cart-fab { bottom: calc(var(--frame-gap) + var(--tab-h) + 14px); } }
.cart-fab .tw { position: relative; }
.cart-fab .badge { top: -6px; right: -10px; }

/* 详情页 */
.detail-hero { aspect-ratio: 4/3.2; position: relative; background: #efe3d6; }
.detail-hero .back-fab { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.detail-hero .like-fab { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: var(--danger); }
.detail-hero .fav-cnt { position: absolute; right: 14px; bottom: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 2; }
.d-price-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; }
.d-price-bar .dp { font-size: 24px; }
.d-price-bar .act { margin-left: auto; background: linear-gradient(135deg, #c98a52, #c23b22); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.d-title { padding: 4px 16px 0; font-size: 17.5px; font-weight: 700; line-height: 1.45; }
.d-sub { padding: 6px 16px 0; font-size: 12.5px; color: var(--ink-2); }
.d-tags { padding: 8px 16px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.d-info { margin: 14px 14px 0; }
.d-info .row { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.d-info .row:last-child { border-bottom: 0; }
.d-info .row .icon { color: var(--primary); font-size: 15px; flex: none; }
.d-info .row .rv { flex: 1; }
.d-block { margin: 12px 14px 0; padding: 14px 16px; }
.d-block h4 { font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.d-block h4::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--primary); }
.syllabus li { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; color: #5a4636; align-items: baseline; }
.syllabus .no { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.teach { display: flex; gap: 12px; align-items: center; }
.teach .ta { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #fbe3d3, #f3c8a4); display: flex; align-items: center; justify-content: center; font-size: 27px; flex: none; }
.teach .tn { font-size: 15px; font-weight: 700; }
.teach .tt { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .rh { display: flex; align-items: center; gap: 8px; }
.review .ra { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.review .rn { font-size: 13px; font-weight: 600; flex: 1; }
.review .rr { color: var(--gold); font-size: 11px; }
.review .rt { font-size: 13px; color: #5a4636; line-height: 1.6; margin-top: 7px; }
.review .rtime { font-size: 11px; color: #b7a697; margin-top: 5px; }

/* 底部操作栏（详情/购物车/结算） */
.bbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; z-index: 70; }
@media (min-width: 480px) { .bbar { bottom: var(--frame-gap); border-radius: 0 0 24px 24px; } }
.bbar .bicon { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--ink-2); cursor: pointer; position: relative; }
.bbar .bicon .icon { font-size: 20px; color: var(--ink); }
.bbar .spacer { flex: 1; }
.bbar .btn { padding: 11px 22px; }
.bbar .total { flex: 1; text-align: right; font-size: 12px; color: var(--ink-2); }
.bbar .total .price .num { font-size: 20px; }

/* 表单 */
.form { margin: 14px; }
.form .frow { margin-bottom: 13px; }
.form label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.form .fin { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px; }
.form .fin:focus { border-color: var(--primary); }
.form .fin::placeholder { color: #c2b3a4; }
textarea.fin { resize: none; min-height: 80px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(20, 10, 4, .5); z-index: 90; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
@media (min-width: 480px) { .mask { padding-bottom: var(--frame-gap); } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { width: 100%; max-width: 430px; background: var(--bg); border-top: 3px solid var(--gold); border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 82vh; overflow-y: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(60px); opacity: .4; } }
.sheet .sh { display: flex; align-items: center; font-size: 16px; font-weight: 700; padding-bottom: 12px; }
.sheet .sh .sx { margin-left: auto; font-size: 17px; color: var(--ink-2); cursor: pointer; padding: 4px; }
.dialog { width: 82%; max-width: 330px; background: #fff; border-radius: 18px; padding: 24px 20px 18px; margin: auto; animation: up .2s ease; text-align: center; }
.dialog dt { font-size: 16.5px; font-weight: 700; }
.dialog dd { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin: 10px 0 18px; }
.dialog .btn { width: 100%; }
.dialog .drow { display: flex; gap: 10px; }
.dialog .drow .btn { flex: 1; }
.dialog .btn.ghost { border-color: #ddd2c6; color: var(--ink-2); }
.center-mask { align-items: center; }

/* Toast */
.toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(30, 20, 12, .88); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 13.5px; z-index: 120; max-width: 76%; text-align: center; line-height: 1.6; animation: fadeIn .18s; backdrop-filter: blur(4px); }
.toast .icon { font-size: 30px; display: block; margin: 0 auto 8px; color: var(--green); }

/* 规格选择 */
.spec-row { margin-bottom: 14px; }
.spec-row .sl { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 15px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.chip.on { border-color: var(--primary); color: var(--primary); background: #fdf4ee; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 14px; background: var(--card); border-radius: 999px; padding: 5px 10px; border: 1px solid var(--line); }
.stepper button { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--primary); cursor: pointer; border-radius: 50%; }
.stepper button.dis { color: #d5c7b8; }
.stepper b { min-width: 22px; text-align: center; font-size: 15px; }
.sheet-prod { display: flex; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sheet-prod .sp-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; background: #efe3d6; }
.sheet-prod .sp-t { font-size: 14.5px; font-weight: 600; }
.sheet-prod .sp-p { margin-top: 5px; font-size: 17px; }

/* 订单卡 */
.order-card { margin: 12px 14px 0; padding: 13px 14px; }
.oc-head { display: flex; align-items: center; font-size: 12.5px; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.oc-head .ost { color: var(--primary); font-weight: 600; margin-left: auto; }
.oc-item { display: flex; gap: 10px; padding: 11px 0; cursor: pointer; }
.oc-item .oi { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; flex: none; background: #efe3d6; }
.oc-item .ot { flex: 1; min-width: 0; }
.oc-item .ott { font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-item .ospec { font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.oc-item .of { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12.5px; }
.oc-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.oc-foot .sum { flex: 1; font-size: 12px; color: var(--ink-2); }
.oc-foot .sum b { color: var(--ink); font-size: 14px; }

/* 空态 */
.empty { text-align: center; padding: 70px 30px; color: var(--ink-2); }
.empty .eico { font-size: 52px; margin-bottom: 14px; }
.empty p { font-size: 13px; line-height: 1.7; }
.empty .btn { margin-top: 18px; }

/* 结算 */
.addr-card { margin: 12px 14px 0; padding: 14px 16px; display: flex; gap: 12px; cursor: pointer; position: relative; }
.addr-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(-45deg, #f3e2d6 0 6px, transparent 6px 12px); border-radius: 0 0 var(--radius) var(--radius); }
.addr-card .icon { color: var(--primary); font-size: 19px; margin-top: 3px; flex: none; }
.addr-card .an { font-size: 14.5px; font-weight: 700; }
.addr-card .ap { margin-left: 8px; color: var(--ink-2); font-weight: 400; font-size: 13px; }
.addr-card .ad { font-size: 12.5px; color: #6d5c4e; margin-top: 4px; line-height: 1.5; }
.addr-card .ar { color: #c9bcb0; align-self: center; }
.settle-row { display: flex; align-items: center; padding: 13px 16px; font-size: 14px; cursor: pointer; }
.settle-row .sr-l { flex: 1; }
.settle-row .sr-l small { color: var(--ink-2); font-size: 11px; display: block; margin-top: 2px; }
.settle-row .ar { color: #c9bcb0; }
.settle-row .sr-v { color: var(--ink); font-weight: 500; margin-right: 6px; }
.settle-row .sr-v.discount { color: var(--danger); font-weight: 600; }
.settle-row .sr-v.off { color: var(--ink-2); }

/* 优惠券 */
.coupon-card { display: flex; margin: 12px 14px 0; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); background: var(--card); }
.coupon-card.used { opacity: .55; }
.cp-left { width: 108px; flex: none; background: linear-gradient(160deg, #c06a3e, var(--primary)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 14px 6px; }
.cp-left::after { content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: var(--bg); border-radius: 50%; transform: translateY(-50%); }
.cp-amount { font-size: 26px; font-weight: 800; line-height: 1; }
.cp-amount .cur { font-size: 13px; }
.cp-amount.free { font-size: 18px; line-height: 1.3; }
.cp-min { font-size: 10px; opacity: .85; margin-top: 5px; }
.cp-right { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.cp-t { font-size: 14.5px; font-weight: 700; }
.cp-d { font-size: 11px; color: var(--ink-2); margin-top: 3px; flex: 1; }
.cp-f { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #b7a697; }
.cp-f .cp-scope { background: #f6efe7; color: #977d62; border-radius: 5px; padding: 1px 7px; }

/* 我的页面 */
.me-head { background: linear-gradient(160deg, #9c3f28 0%, #c06a3e 90%); padding: 22px 16px 46px; color: #fff; position: relative; }
.me-card { margin: -30px 14px 0; padding: 16px; position: relative; }
.me-row { display: flex; align-items: center; gap: 13px; }
.me-ava { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #fbe3d3, #f3c8a4); display: flex; align-items: center; justify-content: center; font-size: 30px; border: 2px solid rgba(255,255,255,.8); flex: none; }
.me-name { font-size: 17.5px; font-weight: 700; }
.me-sub { font-size: 11.5px; opacity: .8; margin-top: 3px; }
.vip-chip { display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(135deg, #3d2c1e, #6b4a2f); color: #f0d9a8; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; margin-top: 6px; cursor: pointer; }
.vip-chip.plain { background: #f6ecdb; color: #8a6420; }
.me-assets { display: flex; margin-top: 16px; text-align: center; }
.me-assets .ma { flex: 1; cursor: pointer; }
.me-assets .ma b { font-size: 17px; display: block; }
.me-assets .ma span { font-size: 11px; color: var(--ink-2); }
.me-orders { margin: 12px 14px 0; padding: 13px 6px 10px; }
.me-orders .mo-head { display: flex; align-items: center; padding: 0 10px 12px; font-size: 14.5px; font-weight: 700; }
.me-orders .mo-head .smore { margin-left: auto; }
.me-orders .mo-grid { display: flex; }
.me-orders .mo { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: #6d5c4e; cursor: pointer; position: relative; }
.me-orders .mo .icon { font-size: 21px; color: #7a6350; }
.menu-group { margin: 12px 14px 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }

/* 分销 */
.dist-head { background: linear-gradient(160deg, #3d2c1e, #7a5433); padding: 20px 16px 52px; color: #f5e6d2; position: relative; }
.dist-card { margin: -34px 14px 0; padding: 16px; position: relative; }
.dist-main { display: flex; align-items: center; }
.dist-main .dl { flex: 1; }
.dist-main .dl .num { font-size: 30px; font-weight: 800; font-family: 'DIN Alternate', -apple-system, sans-serif; }
.dist-main .dl .lab { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.dist-stats { display: flex; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.dist-stats .ds { flex: 1; text-align: center; }
.dist-stats .ds b { font-size: 16px; display: block; }
.dist-stats .ds span { font-size: 11px; color: var(--ink-2); }
.dist-tip { margin: 12px 14px 0; padding: 10px 14px; border-radius: 10px; background: #fbf3e8; font-size: 11.5px; color: #7a5b2e; line-height: 1.7; }
.rule-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; color: #5a4636; line-height: 1.6; align-items: baseline; }
.rule-list .no { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.member { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .ma { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.member .mi { flex: 1; min-width: 0; }
.member .mn { font-size: 14px; font-weight: 600; }
.member .ms { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.member .mc { text-align: right; font-size: 11px; color: var(--ink-2); }
.member .mc b { display: block; font-size: 14px; color: var(--primary); }
.record { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.record:last-child { border-bottom: 0; }
.record .ri { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.record .ri.l1 { background: #fdeedd; color: #b0703a; }
.record .ri.l2 { background: #f3ecfd; color: #7c5cc4; }
.record .rt { flex: 1; min-width: 0; }
.record .rtt { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record .rts { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.record .amount { font-size: 15px; color: var(--primary); font-weight: 700; }
.record .amount .st { font-size: 10px; color: var(--ink-2); font-weight: 400; display: block; text-align: right; }

/* 海报 */
.poster-wrap { padding: 16px; display: flex; flex-direction: column; align-items: center; }
.poster { width: 82%; max-width: 320px; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(60,30,10,.35); background: linear-gradient(170deg, #f8ede0, #f3ddc4); }
.poster .p-top { background: linear-gradient(135deg, #9c3f28, #c06a3e); padding: 22px 18px 26px; color: #fff; }
.poster .p-brand { font-family: 'STZhongsong', 'SimSun', serif; font-size: 21px; font-weight: 700; letter-spacing: 1px; }
.poster .p-slogan { font-size: 11px; opacity: .9; margin-top: 5px; letter-spacing: 1px; }
.poster .p-body { padding: 18px 18px 0; }
.poster .p-big { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.5; }
.poster .p-list { margin-top: 12px; }
.poster .p-list li { font-size: 11.5px; color: #6d5c4e; padding: 3px 0; display: flex; gap: 6px; align-items: baseline; }
.poster .p-list li::before { content: '✦'; color: var(--gold); font-size: 9px; }
.poster .p-foot { display: flex; align-items: center; padding: 16px 18px 20px; }
.poster .p-qr { width: 74px; height: 74px; background: #fff; border-radius: 10px; padding: 5px; flex: none; }
.poster .p-qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.poster .p-code { margin-left: 12px; flex: 1; }
.poster .p-code .pc-l { font-size: 11px; color: var(--ink-2); }
.poster .p-code .pc-v { font-size: 16px; font-weight: 800; color: var(--primary); letter-spacing: 1px; margin-top: 2px; }
.poster .p-code .pc-s { font-size: 10px; color: var(--ink-2); margin-top: 4px; }

/* 签到 */
.checkin-card { margin: 12px 14px 0; padding: 18px 16px; text-align: center; }
.checkin-card .ck-streak { font-size: 13px; color: var(--ink-2); }
.checkin-card .ck-streak b { font-size: 26px; color: var(--primary); margin: 0 3px; }
.ck-week { display: flex; margin-top: 16px; }
.ck-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); }
.ck-day .dico { width: 34px; height: 34px; border-radius: 50%; background: #f6efe7; color: #c2b3a4; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ck-day.done .dico { background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; }
.ck-day.today { color: var(--primary); font-weight: 700; }

/* 消息 */
.chat-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--card); border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.chat-row .ca { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #fbe3d3, #f3c8a4); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; position: relative; }
.chat-row .ca .badge { top: -3px; right: -5px; }
.chat-row .ci { flex: 1; min-width: 0; }
.chat-row .cn { display: flex; align-items: center; font-size: 14.5px; font-weight: 600; }
.chat-row .cn .ct { margin-left: auto; font-size: 11px; color: #b7a697; font-weight: 400; }
.chat-row .cl { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 聊天页 */
.chat-page { display: flex; flex-direction: column; height: calc(100vh - 46px); }
@media (min-width: 480px) { .chat-page { height: calc(100vh - 2 * var(--frame-gap) - 46px); } }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 14px 8px; }
.bubble-row { display: flex; margin-bottom: 12px; gap: 8px; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble-row .ba { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #fbe3d3, #f3c8a4); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.bubble { max-width: 72%; padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: var(--card); box-shadow: 0 2px 8px rgba(90,55,25,.06); font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.bubble-row.me .bubble { background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; border-radius: 14px 4px 14px 14px; }
.bubble-row .btime { font-size: 10px; color: #b7a697; align-self: flex-end; margin-bottom: 4px; }
.chat-input { display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); }
.chat-input input { flex: 1; background: var(--bg); border-radius: 999px; padding: 10px 16px; font-size: 14px; }
.chat-input .send { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; flex: none; }
.quick-chips { display: flex; gap: 8px; padding: 8px 14px 0; overflow-x: auto; }
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chips .chip { flex: none; font-size: 12px; padding: 6px 12px; background: var(--card); }

/* 商家 */
.merchant-hero { aspect-ratio: 16/8.5; position: relative; background: #efe3d6; }
.merchant-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30, 15, 5, .55)); z-index: 1; }
.merchant-hero .mh-info { position: absolute; left: 16px; right: 16px; bottom: -34px; display: flex; align-items: flex-end; gap: 12px; z-index: 2; }
.merchant-hero .mh-emoji { width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 34px; flex: none; }
.offer-card { margin: 12px 14px 0; padding: 14px 16px; }
.offer { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.offer:last-child { border-bottom: 0; padding-bottom: 0; }
.offer .ol { flex: 1; min-width: 0; }
.offer .ot { font-size: 14px; font-weight: 600; color: var(--danger); }
.offer .os { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.offer-tag { flex: none; background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.offer-tag.done { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); }
.mch-list .mrow { display: flex; gap: 12px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); cursor: pointer; }
.mch-list .mrow .mi { width: 86px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: #efe3d6; position: relative; }
.mch-list .mrow .mi .mc-emoji2 { position: absolute; right: 5px; bottom: 5px; width: 24px; height: 24px; background: rgba(255,255,255,.92); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mch-list .mrow .mt { flex: 1; min-width: 0; }
.mch-list .mrow .mt .mname { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mch-list .mrow .mt .mdesc { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mch-list .mrow .mt .moff { font-size: 11.5px; color: var(--danger); margin-top: 4px; font-weight: 600; }
.apply-banner { margin: 12px 14px 0; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, #fff7ef, #ffeede); border: 1px dashed #d3ab7e; display: flex; align-items: center; gap: 10px; cursor: pointer; }

/* 核销码 */
.verify-sheet { text-align: center; }
.verify-sheet .vs-t { font-size: 15px; font-weight: 700; }
.verify-sheet .vs-s { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.verify-sheet .vs-qr { width: 200px; height: 200px; margin: 16px auto; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.verify-sheet .vs-qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.verify-sheet .vs-code { font-size: 15px; letter-spacing: 3px; font-weight: 700; color: var(--primary); }
.verify-sheet .vs-note { font-size: 11px; color: #b7a697; margin-top: 8px; line-height: 1.6; }

/* 会员 */
.vip-hero { margin: 14px; border-radius: 18px; padding: 22px 20px; background: linear-gradient(150deg, #3d2c1e, #7a5433); color: #f0d9a8; position: relative; overflow: hidden; }
.vip-hero::after { content: '✦'; position: absolute; right: -8px; top: -18px; font-size: 90px; opacity: .15; }
.vip-hero .vh-name { font-size: 19px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.vip-hero .vh-sub { font-size: 11.5px; opacity: .8; margin-top: 6px; }
.vip-price { display: flex; gap: 12px; margin: 14px; }
.vp-item { flex: 1; border-radius: 14px; background: var(--card); padding: 15px 14px; box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent; position: relative; }
.vp-item.on { border-color: var(--primary); }
.vp-item .vp-tag { position: absolute; top: -8px; right: 10px; background: var(--danger); color: #fff; font-size: 9.5px; padding: 2px 8px; border-radius: 999px; }
.vp-item .vp-n { font-size: 15px; font-weight: 700; }
.vp-item .vp-p { color: var(--primary); font-weight: 800; font-size: 21px; margin-top: 6px; }
.rights li { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; color: #5a4636; align-items: center; }
.rights .icon { color: var(--gold); flex: none; }

/* 地址 */
.addr-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.addr-row .ai { flex: 1; min-width: 0; cursor: pointer; }
.addr-row .default-chip { background: var(--primary-soft); color: var(--primary-deep); font-size: 10px; padding: 1px 7px; border-radius: 5px; margin-left: 6px; }
.addr-op { color: #c9bcb0; cursor: pointer; padding: 4px; font-size: 16px; }
.add-addr { margin: 20px 14px; }

/* 登录 */
.login-hero { text-align: center; padding: 70px 30px 30px; }
.login-hero .lh-logo { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 26px; background: linear-gradient(135deg, #b0542f, var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 44px; box-shadow: 0 10px 26px rgba(181,86,47,.35); }
.login-hero .lh-name { font-family: 'STZhongsong', 'SimSun', serif; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.login-hero .lh-slogan { color: var(--ink-2); font-size: 13px; margin-top: 8px; letter-spacing: 1px; }
.login-agree { text-align: center; font-size: 11px; color: #b7a697; margin-top: 16px; line-height: 1.7; padding: 0 30px; }

/* 搜索页 */
.search-head { display: flex; gap: 10px; padding: 10px 14px; position: sticky; top: 0; background: var(--bg); z-index: 60; }
.search-head input { flex: 1; background: var(--card); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; box-shadow: var(--shadow); }
.search-head .sc { color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; }
.hot-words { padding: 6px 14px; display: flex; flex-wrap: wrap; gap: 8px; }

/* 统计小条 */
.stat-strip { display: flex; background: var(--card); margin: 12px 14px 0; border-radius: 14px; box-shadow: var(--shadow); padding: 13px 0; }
.stat-strip .ss { flex: 1; text-align: center; cursor: pointer; }
.stat-strip .ss b { font-size: 16.5px; display: block; }
.stat-strip .ss span { font-size: 11px; color: var(--ink-2); }

/* 结算页浮层 */
.settle-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; z-index: 70; }
@media (min-width: 480px) { .settle-bar { bottom: var(--frame-gap); border-radius: 0 0 24px 24px; } }
.settle-bar .all { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6d5c4e; }
.settle-bar .tsum { flex: 1; text-align: right; font-size: 12px; color: var(--ink-2); }
.settle-bar .tsum .price .num { font-size: 19px; }

/* checkbox */
.ckbox { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9bcb0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; flex: none; cursor: pointer; }
.ckbox.on { background: var(--primary); border-color: var(--primary); }

/* 支付成功 */
.pay-success { text-align: center; padding: 56px 30px; }
.pay-success .ps-ico { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, #3ec98a, #07c160); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: 0 10px 26px rgba(7,193,96,.35); animation: pop .4s ease; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.pay-success .ps-t { font-size: 19px; font-weight: 800; }
.pay-success .ps-s { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.pay-success .ps-amount { font-size: 30px; margin-top: 14px; }

/* 模拟开发工具条 */
.dev-note { margin: 14px; padding: 10px 14px; border-radius: 10px; background: #eef4fb; border: 1px dashed #9ec3e8; font-size: 11.5px; color: #3a6ea5; line-height: 1.7; }
.dev-note b { display: block; margin-bottom: 2px; }

/* 详情页多图/视频轮播 */
.hswiper { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.hswiper::-webkit-scrollbar { display: none; }
.hslide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; position: relative; background: #efe3d6; }
.hslide img { position: absolute; inset: 0; }
.vslide { cursor: pointer; }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 21px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); padding-left: 4px; }
.vslide:active .vplay { transform: translate(-50%, -50%) scale(.9); }
.vdur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; padding: 2.5px 9px; border-radius: 999px; backdrop-filter: blur(3px); }
.vtag { position: absolute; top: 10px; right: 10px; background: rgba(194, 59, 34, .92); color: #fff; font-size: 10px; padding: 2.5px 9px; border-radius: 999px; }

/* 视频介绍卡 */
.video-card .vposter { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; cursor: pointer; background: #ddd; }
.video-card .vposter .vplay { width: 50px; height: 50px; font-size: 19px; }
.video-card .vsub { font-size: 11.5px; color: var(--ink-2); margin-top: 9px; }
.video-modal { width: 88%; max-width: 400px; background: #000; border-radius: 16px; overflow: hidden; }
.video-modal .vm-head { display: flex; align-items: center; padding: 11px 14px; color: #fff; font-size: 13.5px; }
.video-modal .vm-head b { flex: 1; font-weight: 600; }
.video-modal .vm-head span { cursor: pointer; font-size: 16px; opacity: .8; padding: 2px 4px; }
.video-modal video { width: 100%; display: block; max-height: 62vh; background: #000; }

/* 图文介绍 / 费用 / 须知 / FAQ / 参数 / 相册 / 推荐 */
.intro-sec { padding: 6px 0 12px; }
.intro-sec:last-child { padding-bottom: 2px; }
.intro-sec h5 { font-size: 14px; margin-bottom: 6px; }
.intro-sec p { font-size: 13px; line-height: 1.8; color: #5a4636; }
.intro-sec .iimg { aspect-ratio: 16/9.5; border-radius: 12px; overflow: hidden; margin-top: 9px; background: #efe3d6; }
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cost-item { display: flex; gap: 6px; font-size: 12px; color: #5a4636; background: #fbf6ef; border-radius: 8px; padding: 8px 10px; align-items: flex-start; line-height: 1.5; }
.cost-item .icon { color: #1f8a4c; flex: none; margin-top: 2px; }
.notice-list li { position: relative; padding: 5px 0 5px 15px; font-size: 12.5px; color: #5a4636; line-height: 1.7; }
.notice-list li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); opacity: .5; }
.faq { border-bottom: 1px dashed var(--line); padding: 11px 0; cursor: pointer; }
.faq:last-child { border-bottom: 0; padding-bottom: 2px; }
.faq-q { display: flex; align-items: center; font-size: 13.5px; font-weight: 600; }
.faq-q .qq { flex: 1; }
.faq-arrow { color: var(--ink-2); font-size: 15px; transition: transform .2s; margin-left: 8px; }
.faq.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; font-size: 12.5px; color: #6d5c4e; line-height: 1.8; margin-top: 7px; padding-right: 8px; }
.faq.open .faq-a { display: block; }
.param-list { border-top: 1px solid var(--line); }
.param-row { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.param-row:last-child { border-bottom: 0; }
.param-row .pk { width: 84px; color: var(--ink-2); flex: none; }
.param-row .pv { flex: 1; color: #4a3a2c; }
.album-item { width: 108px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #efe3d6; flex: none; cursor: pointer; }
.album-item.wide { width: 150px; aspect-ratio: 4/3; }
.mini-prod { width: 118px; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.mini-prod .mp-img { aspect-ratio: 1; position: relative; background: #efe3d6; }
.mini-prod .mp-t { font-size: 11.5px; padding: 7px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-prod .mp-p { padding: 3px 8px 9px; font-size: 14px; }

/* 客服咨询链路 */
.consult-tip { display: flex; align-items: center; gap: 6px; margin: 10px 14px 0; padding: 8px 12px; border-radius: 10px; background: #eef4fb; border: 1px dashed #9ec3e8; font-size: 11px; color: #3a6ea5; line-height: 1.6; }
.consult-tip .icon { flex: none; }
.bubble.card-b { padding: 0; overflow: hidden; width: 192px; cursor: pointer; }
.bubble-row.me .bubble.card-b { background: #fff; color: var(--ink); }
.bubble.card-b .cb-img { aspect-ratio: 4/3; background: #efe3d6; }
.bubble.card-b .cb-body { padding: 8px 10px 10px; }
.cb-tag { display: inline-block; font-size: 9.5px; background: var(--primary-soft); color: var(--primary-deep); padding: 1px 7px; border-radius: 5px; }
.cb-t { font-size: 12.5px; font-weight: 600; margin-top: 5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-p { margin-top: 4px; font-size: 15px; }
.fb-chips { display: flex; gap: 10px; justify-content: center; margin: 2px 0 14px; }
.fb-chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; cursor: pointer; box-shadow: 0 2px 8px rgba(90, 55, 25, .06); }
.fb-chips span:active { transform: scale(.95); }
.nav-r { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--primary); cursor: pointer; font-weight: 600; }

/* 作品详情 / 评论 / 发布 */
.wd-img { aspect-ratio: 1/0.88; background: #efe3d6; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .ra { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.comment .cn { font-size: 12.5px; font-weight: 600; }
.comment .ct { font-size: 13px; color: #4a3a2c; margin-top: 3px; line-height: 1.6; }
.comment .cmeta { font-size: 10.5px; color: #b7a697; margin-top: 4px; }
.wd-like { display: flex; align-items: center; gap: 4px; background: #fdeeed; color: var(--danger); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 600; }
.wd-like.on { background: var(--danger); color: #fff; }
.wc-input { flex: 1; background: var(--bg); border-radius: 999px; padding: 11px 16px; font-size: 13.5px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick-grid .pg { aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; position: relative; background: #efe3d6; }
.pick-grid .pg.on { border-color: var(--primary); }
.pick-grid .pg.on::after { content: '✓'; position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.coop-tag { background: var(--primary-soft); color: var(--primary-deep); font-size: 10.5px; padding: 2px 8px; border-radius: 6px; }
.status-chip { font-size: 10.5px; padding: 3px 9px; border-radius: 6px; flex: none; }
.status-chip.wait { background: #fdf2e3; color: #a3691e; }
.status-chip.done { background: #e2f3e7; color: #1f8a4c; }

/* 公里数定位 */
.loc-bar { margin: 12px 14px 0; padding: 12px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.loc-bar .icon { color: var(--primary); font-size: 18px; flex: none; }
.loc-bar .lb-t { flex: 1; min-width: 0; cursor: pointer; }
.loc-bar .lb-t b { font-size: 14px; }
.loc-bar .lb-s { font-size: 11px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
.loc-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9bcb0; flex: none; }
.loc-dot.live { background: #1f8a4c; box-shadow: 0 0 0 4px rgba(31, 143, 76, .15); animation: locPulse 1.6s ease infinite; }
@keyframes locPulse { 50% { box-shadow: 0 0 0 7px rgba(31, 143, 76, .06); } }
.loc-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.loc-mini { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--primary-soft); color: var(--primary-deep); font-size: 11px; padding: 6px 11px; border-radius: 999px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.loc-mini.live { background: #e2f3e7; color: #1f8a4c; }
.loc-mini:active { transform: scale(.94); }
.mdist { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 5px; }

/* 视图切换（条状 ⇄ 田字格） */
.view-seg { display: inline-flex; background: var(--card); border-radius: 10px; padding: 3px; box-shadow: 0 2px 8px rgba(90, 55, 25, .08); }
.view-seg .vs { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; font-size: 11.5px; border-radius: 7px; color: #9d8b7a; cursor: pointer; white-space: nowrap; }
.view-seg .vs.on { background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; font-weight: 600; }
.view-seg .vs .icon { font-size: 13px; }
.dist-chip { position: absolute; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); color: var(--primary-deep); font-size: 10px; font-weight: 700; padding: 2.5px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.mg-row { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.mg-off { font-size: 10.5px; color: var(--danger); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 商城条状列表 */
.mall-list { padding: 0 14px; }
.mall-row { display: flex; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px; margin-top: 11px; box-shadow: var(--shadow); }
.mall-row:active { transform: scale(.99); }
.mr-img { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; flex: none; position: relative; background: #efe3d6; }
.mr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-t { font-size: 13.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.mr-f { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.mr-add { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #b0542f, var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; flex: none; box-shadow: 0 3px 8px rgba(163, 63, 40, .3); }
.mr-add:active { transform: scale(.9); }

/* 工具类 */
.hide { display: none !important; }
.pb-lg { padding-bottom: 10px; }


/* ================= 中国风装饰层 ================= */
/* 楷体标题族 */
.sec .st, .d-title, .nav .nt, .me-name, .poster .p-brand, .lh-name, .dialog dt,
.vip-hero .vh-name, .flash-head .ft, .sheet .sh, .verify-sheet .vs-t, .mh-info b,
.mch-list .mrow .mname, .teach .tn, .hh-search, .invite-strip .it b {
  font-family: var(--serif);
}

/* 品牌印章 */
.brand { position: relative; padding-left: 30px; flex: none !important; white-space: nowrap; }
.brand::before {
  content: '指'; position: absolute; left: 0; top: 1px;
  width: 25px; height: 25px; background: #c23b22; color: #fff;
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5), 0 2px 6px rgba(0, 0, 0, .2);
}
.brand::after { content: '匠心手作'; position: absolute; left: 2px; bottom: -13px; font-size: 8.5px; letter-spacing: 3px; opacity: .85; font-family: var(--serif); }

/* 区块标题：金色菱形 + 宋体 */
.sec .st::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
  margin-right: 8px; vertical-align: 1px;
}

/* 详情块标题：印章小方 */
.d-block h4 { font-family: var(--serif); letter-spacing: .5px; }
.d-block h4::before { background: var(--primary); width: 3px; }

/* 中式分隔：标题下细金线 */
.sec { padding-bottom: 8px; background: none; }
.sec::after { content: ''; display: block; position: absolute; }
.d-block, .order-card, .me-orders, .checkin-card, .offer-card { border-radius: 10px; }

/* 导航底金线 */
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184, 146, 90, .5) 20%, rgba(184, 146, 90, .5) 80%, transparent); }

/* pills / chips / tabs 方角化 */
.pill, .chip { border-radius: 7px; }
.mall-tabs { border-radius: 10px; }
.mall-tabs .mt.on, .cat-pills .pill.on { font-family: var(--serif); letter-spacing: 1px; }

/* 空态与评价星色 */
.rr, .rr.star, .review .rr { color: var(--gold); }

/* 核销码 / 成功弹窗 */
.ps-ico { border-radius: 50%; }

/* 印章式角标（我的作品/热门） */
.hot, .corner { letter-spacing: 1px; }

/* ============================================================
 * 多商家版（v2）：店铺归属 / 店铺主页 / 商家工作台 / 拆单结算
 * ============================================================ */

/* 店铺归属卡（课程 / 商品详情页） */
.store-bar { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin: 10px 14px 0; cursor: pointer; }
.store-bar .ar { color: var(--ink-2); flex: none; }
.store-bar:active { background: var(--primary-soft); }
.sb-emoji { width: 38px; height: 38px; border-radius: 9px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.sb-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; font-family: var(--serif); }
.sb-sub { font-size: 11px; color: var(--ink-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-tag { font-size: 10px; color: #fff; background: var(--primary); border-radius: 4px; padding: 1.5px 6px; font-weight: 500; letter-spacing: 1px; flex: none; }
.store-bar svg { width: 15px; height: 15px; color: var(--ink-2); flex: none; }

/* 卡片上的店铺行（课程卡 / 商品卡） */
.cc-store { font-size: 11px; color: var(--ink-2); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-card .pc-a, .mall-row .pc-a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-sep { font-style: normal; color: var(--ink-2); margin: 0 4px; font-weight: 400; }

/* 购物车 / 结算页：店铺分组头 */
.co-group { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: linear-gradient(90deg, rgba(156, 63, 40, .08), rgba(184, 146, 90, .06)); font-size: 12.5px; font-weight: 700; color: var(--primary-deep); font-family: var(--serif); letter-spacing: .5px; border-bottom: 1px solid var(--line); }
.co-group:first-child { border-top: none; }
.cg-n { font-size: 11px; color: var(--ink-2); font-weight: 400; letter-spacing: 0; }

/* 商家工作台 */
.mch-hero { background: linear-gradient(135deg, var(--primary-deep), var(--primary) 60%, #c05a38); color: #fff; padding: 18px 16px 24px; border-radius: 0 0 18px 18px; }
.mh-emoji2 { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 25px; flex: none; }
.mch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: -16px 14px 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 4px; box-shadow: var(--shadow); }
.mch-stats .ms { text-align: center; }
.mch-stats .ms b { font-size: 16.5px; display: block; }
.mch-stats .ms b.price { font-size: 15px; }
.mch-stats .ms span { font-size: 10.5px; color: var(--ink-2); display: block; margin-top: 3px; }
.mb-line { font-size: 11.5px; color: var(--ink-2); padding: 9px 0 0; border-top: 1px dashed var(--line); line-height: 1.7; }

/* 商品 / 课程管理行 */
.mg-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mg-row:last-child { border-bottom: none; }
.mg-img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; background: #efe3d6; }
.mg-info { flex: 1; min-width: 0; }
.mg-t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-meta { font-size: 11px; color: var(--ink-2); margin-top: 3px; }

/* 上架开关 */
.sw { width: 40px; height: 22px; border-radius: 999px; background: #cfc2b4; position: relative; transition: .2s; flex: none; cursor: pointer; }
.sw.on { background: var(--primary); }
.sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sw.on i { left: 20px; }

/* 核销台 */
.mverify-sheet { padding: 4px 2px; }
.mv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mv-row span { color: var(--ink-2); flex: none; }
.mv-row b { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 表单内 chips 复用 */
.form .chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
 * 平台管理后台（v2.1）：墨色系后台视觉
 * ============================================================ */

/* 后台 hero：墨色渐变（区别于商家工作台朱砂） */
.adm-hero { background: linear-gradient(135deg, #2f2620, #4a3a2e 55%, #6b5443); color: #fff; padding: 18px 16px 24px; border-radius: 0 0 18px 18px; }

/* 后台登录卡 */
.admin-login-card { padding: 18px 6px 6px; text-align: center; }
.admin-login-card .al-ico { width: 62px; height: 62px; margin: 0 auto; border-radius: 16px; background: linear-gradient(135deg, #2f2620, #6b5443); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.admin-login-card .al-t { font-size: 15.5px; font-weight: 800; margin-top: 12px; font-family: var(--serif); letter-spacing: 1px; }
.admin-login-card .al-s { font-size: 11px; color: var(--ink-2); margin-top: 5px; line-height: 1.7; }

/* 后台订单卡 / 统计复用商家版组件（.mch-stats/.mg-row/.sw/.status-chip） */
.cat-pills .pill { white-space: nowrap; }

/* 下架提示条（详情页） */
.off-tip { margin: 10px 14px 0; padding: 10px 14px; border-radius: 10px; background: #efe9df; border: 1px dashed #b7a697; color: #6d5c4e; font-size: 12.5px; text-align: center; }
