/* ============================================================
   零度商城前台皮肤 — 仿 Seattle（888888.pro）风格
   作用范围：仅商城前台页面（body.mk-store），不影响会员中心
   布局：吸顶毛玻璃导航 + 左侧分类栏 + 右侧商品网格
   设计令牌对齐 888888.pro Seattle 主题
   ============================================================ */

body.mk-store {
  --mk-bg: #d8e5eb;
  --mk-panel: #ffffff;
  --mk-panel-soft: #f7f9f9;
  --mk-ink: #0f1419;
  --mk-muted: #536471;
  --mk-line: #eff3f4;
  --mk-line-strong: #cfd9de;
  --mk-accent: #1d9bf0;
  --mk-accent-ink: #ffffff;
  --mk-accent-soft: #e8f5fd;
  --mk-green: #00ba7c;
  --mk-green-soft: #e6f7f1;
  --mk-red: #f4212e;
  --mk-red-soft: #feecef;
  --mk-amber: #f4a261;
  --mk-amber-soft: #fff3e8;
  --mk-radius: 16px;
  --mk-radius-lg: 24px;
  --mk-radius-pill: 999px;
  --mk-shadow: 0 1px 2px rgba(15, 20, 25, .04), 0 4px 16px rgba(15, 20, 25, .06);
  --mk-shadow-hover: 0 4px 12px rgba(15, 20, 25, .08), 0 12px 32px rgba(15, 20, 25, .10);
  background:
    linear-gradient(180deg, rgba(216, 229, 235, .66), rgba(194, 213, 222, .88)),
    radial-gradient(ellipse at 16% 5%, rgba(255, 255, 255, .92) 0 14%, transparent 42%),
    radial-gradient(ellipse at 84% 0%, rgba(112, 157, 176, .46) 0 14%, transparent 44%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 10px),
    var(--mk-bg);
  background-attachment: fixed;
  color: var(--mk-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.mk-store[data-theme="dark"],
html[data-theme="dark"] body.mk-store {
  --mk-bg: #000000;
  --mk-panel: #000000;
  --mk-panel-soft: #16181c;
  --mk-ink: #e7e9ea;
  --mk-muted: #71767b;
  --mk-line: #2f3336;
  --mk-line-strong: #536471;
  --mk-accent: #1d9bf0;
  --mk-accent-soft: #061e2c;
  --mk-green-soft: #06251b;
  --mk-red-soft: #2a090d;
  --mk-amber-soft: #2b1b0c;
  --mk-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --mk-shadow-hover: 0 4px 12px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .5);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .95)),
    var(--mk-bg);
  background-attachment: fixed;
}

/* ---------- 吸顶导航（两行布局） ---------- */
.mk-topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--mk-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mk-line);
}
.mk-topbar-row1 {
  max-width: 1320px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
/* 独立搜索栏 */
.mk-searchbar {
  max-width: 1320px; margin: 0 auto;
  padding: 0 24px 12px;
  display: flex; align-items: center; gap: 12px;
}
.mk-searchbar .mk-quick-lottery { flex-shrink: 0; }
.mk-searchbar .mk-search { max-width: 960px; width: 100%; }
.mk-topbar-row2 {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
  height: 46px;
  border-top: 1px solid var(--mk-line);
}
.mk-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.mk-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--mk-line); }
.mk-brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0; white-space: nowrap; }

.mk-nav { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mk-nav::-webkit-scrollbar { display: none; }
.mk-nav a {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--mk-muted);
  padding: 7px 12px; border-radius: var(--mk-radius-pill);
  transition: color .16s ease, background .16s ease;
}
.mk-nav a:hover { color: var(--mk-ink); background: var(--mk-panel-soft, rgba(239, 243, 244, .6)); }
.mk-nav a.active { color: var(--mk-ink); font-weight: 700; background: var(--mk-panel-soft, rgba(239, 243, 244, .6)); }
.mk-nav a .nav-icon { width: 16px; height: 16px; display: inline-flex; }
.mk-nav a .nav-icon img { width: 16px; height: 16px; }
.mk-nav a .material-icons-outlined { font-size: 18px; }
.mk-cat-trigger { color: var(--mk-ink) !important; font-weight: 700 !important; }
.mk-cat-caret { font-size: 16px !important; }
.mk-2fa-link { color: var(--mk-accent) !important; }
.mk-2fa-link:hover { background: var(--mk-accent-soft, #e8f5fd) !important; }
.mk-ai-link { color: #7c3aed !important; }
.mk-ai-link:hover { background: rgba(124, 58, 237, .1) !important; }
.mk-ai-lead { background: rgba(124, 58, 237, .1); font-weight: 800 !important; }
.mk-tut-link { color: var(--mk-muted) !important; }

/* 客服下拉 */
.mk-kefu { position: relative; }
.mk-kefu-quick { display: inline-flex; flex-shrink: 0; }
.mk-kefu-quick .mk-kefu-trigger { text-decoration: none; }
.mk-kefu-quick .mk-kefu-trigger:hover { color: #1d9bf0; border-color: #1d9bf0; background: var(--mk-accent-soft, #e8f5fd); }
.mk-kefu-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--mk-muted) !important; cursor: pointer;
}
.mk-kefu-trigger:hover { color: var(--mk-accent) !important; background: var(--mk-accent-soft, #e8f5fd) !important; }
.mk-kefu-caret { font-size: 14px !important; transition: transform .2s; }
.mk-kefu:hover .mk-kefu-caret { transform: rotate(180deg); }
.mk-kefu.open .mk-kefu-caret { transform: rotate(180deg); }
.mk-kefu-menu {
  position: fixed; top: 0; left: 0;
  min-width: 220px; background: var(--mk-panel); border: 1px solid var(--mk-line);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(15,20,25,.12);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 9999;
}
.mk-kefu.open .mk-kefu-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mk-kefu-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; text-decoration: none; color: var(--mk-ink); transition: background .15s;
}
.mk-kefu-menu a:hover { background: var(--mk-accent-soft, #e8f5fd); }
.mk-kefu-ico {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.mk-kefu-ico.qq { background: #12b7f5; }
.mk-kefu-ico.tg { background: #2aabee; }
.mk-kefu-text { display: flex; flex-direction: column; line-height: 1.3; }
.mk-kefu-text strong { font-size: 14px; font-weight: 700; }
.mk-kefu-text small { font-size: 11px; color: var(--mk-muted); margin-top: 2px; }

.mk-search { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 8px; min-width: 0; }

/* 快捷入口：2FA + 教程（顶栏显眼位置） */
.mk-quick {
  display: inline-flex; align-items: center; gap: 5px;
  height: 42px; padding: 0 14px; border-radius: var(--mk-radius-pill);
  background: var(--mk-panel); border: 1px solid var(--mk-line);
  color: var(--mk-muted); font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: color .16s, border-color .16s, background .16s;
}
.mk-quick .material-icons-outlined { font-size: 18px; }
.mk-quick:hover { color: var(--mk-accent); border-color: var(--mk-accent); background: var(--mk-accent-soft, #e8f5fd); }
.mk-quick-2fa:hover { color: #16a34a; border-color: #16a34a; background: rgba(22,163,74,.08); }
.mk-quick-tut:hover { color: #f59e0b; border-color: #f59e0b; background: rgba(245,158,11,.08); }
.mk-search-box {
  display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0;
  background: var(--mk-panel); border: 1px solid var(--mk-line); border-radius: var(--mk-radius-pill);
  padding: 0 16px; height: 42px; transition: border-color .16s, box-shadow .16s;
}
.mk-search-box:focus-within { border-color: var(--mk-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 34%, transparent); }
.mk-search-box i { color: var(--mk-muted); font-size: 15px; flex-shrink: 0; }
.mk-search-box input {
  border: none; background: none; outline: none; width: 100%; min-width: 0;
  font-size: 14px; color: var(--mk-ink);
}
.mk-search-btn {
  flex-shrink: 0; width: 42px; height: 42px; border: none; border-radius: var(--mk-radius-pill);
  background: var(--mk-accent); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(29, 155, 240, .28);
  transition: filter .16s, transform .16s;
}
.mk-search-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mk-search-btn .material-icons-outlined { font-size: 20px; }

.mk-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mk-icon-btn {
  width: 40px; height: 40px; border-radius: var(--mk-radius-pill); border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--mk-muted); background: transparent; transition: background .16s, color .16s; cursor: pointer;
}
.mk-icon-btn:hover { color: var(--mk-ink); background: var(--mk-panel-soft, rgba(239, 243, 244, .6)); }
.mk-icon-btn .material-icons-outlined { font-size: 22px; }
.mk-icon-btn i { font-size: 16px; }

.mk-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 40px; padding: 0 18px; border-radius: var(--mk-radius-pill); font-size: 14px; font-weight: 700;
  transition: all .16s ease; cursor: pointer;
}
.mk-btn-primary { background: var(--mk-accent); color: #fff; box-shadow: 0 4px 12px rgba(29, 155, 240, .28); }
.mk-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.mk-btn-ghost { border: 1px solid var(--mk-line); color: var(--mk-ink); background: var(--mk-panel); }
.mk-btn-ghost:hover { border-color: var(--mk-accent); color: var(--mk-accent); }

/* 语言 / 用户下拉 */
.mk-drop { position: relative; }
.mk-drop-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--mk-panel); border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
  box-shadow: var(--mk-shadow-hover); padding: 8px; display: none; z-index: 120;
}
.mk-drop.is-open .mk-drop-menu { display: block; }
.mk-drop-menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: var(--mk-radius-sm, 8px); font-size: 14px; color: var(--mk-ink);
}
.mk-drop-menu a:hover { background: var(--mk-panel-soft, #eff3f4); }
.mk-drop-menu a.is-danger { color: var(--mk-red); }
.mk-drop-menu a.is-danger:hover { background: var(--mk-red-soft); }
.mk-drop-sep { height: 1px; background: var(--mk-line); margin: 5px 4px; }

.mk-user-btn {
  display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px;
  border: none; border-radius: var(--mk-radius-pill); background: transparent; cursor: pointer;
  transition: background .16s;
}
.mk-user-btn:hover { background: var(--mk-panel-soft, rgba(239, 243, 244, .6)); }
.mk-user-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.mk-user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.mk-user-name { font-size: 13px; font-weight: 600; color: var(--mk-ink); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-user-balance { font-size: 11px; color: var(--mk-muted); }
.mk-user-balance b { color: var(--mk-accent); }

.mk-burger { display: none; }
.mk-burger-text { font-size: 13px; font-weight: 700; }
/* 快捷入口组：整体右对齐 */
.mk-quick-group {
  margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* ---------- 移动端顶栏 ---------- */
.mk-pagebar {
  display: none; position: sticky; top: 110px; z-index: 90;
  background: color-mix(in srgb, var(--mk-bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mk-line);
  padding: 12px 16px; align-items: center; justify-content: space-between;
}
.mk-pagebar-title { font-weight: 700; font-size: 15px; }

/* ---------- 主体布局 ---------- */
.mk-main {
  max-width: 1320px; margin: 0 auto; padding: 24px 24px 48px;
  display: flex; gap: 24px; align-items: flex-start;
}

/* 左分类栏 */
.mk-rail {
  width: 240px; flex-shrink: 0;
  position: sticky; top: 134px;
  background: var(--mk-panel); border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius-lg); box-shadow: var(--mk-shadow);
  max-height: calc(100vh - 112px); display: flex; flex-direction: column; overflow: hidden;
}
.mk-rail-head {
  padding: 16px 16px 8px; font-size: 12px; font-weight: 600;
  color: var(--mk-muted); letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
}
.mk-rail-list { overflow-y: auto; padding: 4px 12px 16px; }
.mk-rail-list::-webkit-scrollbar { display: none; }
.mk-cat-group { margin-bottom: 4px; }
.mk-cat-group-head {
  display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 14px 10px 5px; font-size: 12.5px; font-weight: 800;
  color: var(--mk-muted); letter-spacing: .02em;
}
.mk-cat-group-head:hover { color: var(--mk-ink); }
.mk-cat-group-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-cat-group-arrow { font-size: 18px; transition: transform .2s; }
.mk-cat-group.is-open .mk-cat-group-arrow { transform: rotate(180deg); }
.mk-cat.mk-cat-sub { padding-left: 22px; display: none; }
.mk-cat-group.is-open .mk-cat.mk-cat-sub { display: flex; }
.mk-cat.mk-cat-sub .mk-cat-name { font-weight: 500; }
.mk-cat {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--mk-radius-pill); margin-bottom: 2px;
  font-size: 14px; color: var(--mk-ink); font-weight: 500;
  transition: background .16s, color .16s;
}
.mk-cat:hover { background: var(--mk-panel-soft, #eff3f4); }
.mk-cat.is-primary { background: var(--mk-accent-soft); color: var(--mk-accent); font-weight: 700; }
.mk-cat.is-disabled { opacity: .45; pointer-events: none; }
.mk-cat-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--mk-panel-soft, #f7f9f9) center/cover no-repeat; border: 1px solid var(--mk-line);
}
.mk-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-cat-count {
  font-size: 11.5px; color: var(--mk-muted); background: var(--mk-panel-soft, #f7f9f9);
  border-radius: var(--mk-radius-pill); padding: 1px 8px; flex-shrink: 0;
}
.mk-cat.is-primary .mk-cat-count { background: var(--mk-accent-soft); color: var(--mk-accent); }
.mk-rail-close { display: none; }
.mk-rail-backdrop { display: none; }

/* 桌面端：点击「商品分类」弹出分类浮层 */
@media (min-width: 992px) {
  body.mk-store.mk-rail-open .mk-rail {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 200;
    width: 300px; max-height: none;
    border-radius: 0 18px 18px 0;
    box-shadow: 8px 0 40px rgba(15, 20, 25, .22);
  }
  body.mk-store.mk-rail-open .mk-rail-close { display: inline-flex; }
  body.mk-store.mk-rail-open .mk-rail-backdrop {
    display: block; position: fixed; inset: 0; z-index: 190;
    background: rgba(15, 20, 25, .3); opacity: 1; pointer-events: auto;
  }
}

/* 右内容区 */
.mk-content { flex: 1; min-width: 0; }

/* Banner 标题区 */
.mk-hero {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px; padding: 4px 2px;
  background: none; border: none; cursor: pointer; text-align: left;
  font: inherit;
}
.mk-hero:hover { opacity: .85; }
.mk-hero-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mk-accent); background: var(--mk-accent-soft);
  padding: 4px 10px; border-radius: var(--mk-radius-pill);
}
.mk-hero-title { font-size: 22px; font-weight: 800; color: var(--mk-ink); display: inline-flex; align-items: center; gap: 4px; }
.mk-hero-curcat { color: var(--mk-ink-2); font-weight: 600; }
.mk-hero-arrow { font-size: 20px; color: var(--mk-ink-2); margin-left: 2px; }

/* 分类选择栏（搜索框下方，888888 风格） */
.mk-cat-bar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin-bottom: 14px; padding: 10px 14px;
  background: #1a1f2e; color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  font: inherit; text-align: left;
  transition: opacity .16s;
}
.mk-cat-bar:hover { opacity: .9; }
.mk-cat-bar-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mk-cat-bar-icon { font-size: 20px; color: #1d9bf0; }
.mk-cat-bar-label { font-size: 14px; font-weight: 700; white-space: nowrap; }
.mk-cat-bar-name {
  flex: 1; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mk-cat-bar-arrow { font-size: 20px; color: rgba(255,255,255,.5); flex-shrink: 0; }

/* 公告条 */
.mk-notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--mk-amber-soft); border: 1px solid color-mix(in srgb, var(--mk-amber) 30%, transparent);
  color: #92540f; border-radius: var(--mk-radius);
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; line-height: 1.55;
}
.mk-notice i { flex-shrink: 0; margin-top: 1px; }
.mk-notice a { color: inherit; text-decoration: underline; }

/* ---------- 商品列表（横向卡片，888888 Seattle 风格） ---------- */
.mk-content .item-list {
  display: flex !important; flex-direction: column;
  gap: 10px; margin: 0;
}
.mk-content .item-list::before, .mk-content .item-list::after { display: none; }
.mk-content .item-message { color: var(--mk-muted); padding: 30px 0; text-align: center; }

.mk-content .item-card-cell { display: block; padding: 0; }
.mk-content .acg-card {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  background: var(--mk-panel); border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius); overflow: hidden;
  transition: border-color .16s, background .16s;
}
.mk-content .item-card-cell:hover .acg-card {
  border-color: var(--mk-line-strong); background: var(--mk-panel-soft, #f7f9f9);
}
.mk-content .acg-thumb {
  flex-shrink: 0; width: 48px; height: 48px; aspect-ratio: auto;
  border-radius: 12px;
  background-color: var(--mk-panel-soft, #f7f9f9) !important;
  background-size: cover !important; background-position: center !important;
}
.mk-content .acg-body {
  padding: 0 52px 0 0; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0;
}
.mk-content .acg-body .tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 0; }
.mk-content .goods-title {
  font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--mk-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 0;
}
.mk-content .stat-row { margin: 0 !important; display: flex; align-items: baseline; gap: 8px; }
.mk-content .price { font-size: 17px; font-weight: 800; color: var(--mk-red); line-height: 1.2; }
.mk-content .price .unit { font-size: 12px; font-weight: 700; margin-right: 1px; }
.mk-content .stat-bottom {
  display: flex; gap: 10px;
  font-size: 11px; color: var(--mk-muted);
}
.mk-content .buy-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  background: var(--mk-accent); color: #fff;
  font-size: 0; transition: all .16s;
}
.mk-content .buy-btn .material-icons-outlined { font-size: 18px; }
.mk-content .item-card-cell:hover .buy-btn {
  background: var(--mk-accent-hover, #1a8cd8); color: #fff;
}

/* 徽章 */
.mk-content .badge-soft {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 3px 7px; border-radius: 6px;
}
.mk-content .badge-soft-success { background: var(--mk-green-soft); color: var(--mk-green); }
.mk-content .badge-soft-primary { background: var(--mk-accent-soft); color: var(--mk-accent); }
.mk-content .badge-soft-info { background: var(--mk-accent-soft); color: var(--mk-accent); }
.mk-content .badge-soft-warning, .mk-content .badge-soft-warn { background: var(--mk-amber-soft); color: var(--mk-amber); }
.mk-content .badge-soft-danger { background: var(--mk-red-soft); color: var(--mk-red); }

/* 售罄 */
.mk-content .acg-card.soldout .acg-thumb { filter: grayscale(1); opacity: .55; }
.mk-content .acg-card.soldout .buy-btn { background: var(--mk-muted); cursor: not-allowed; }
.mk-content .soldout-ribbon {
  position: absolute; top: 10px; right: -30px; transform: rotate(38deg);
  background: var(--mk-red); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 34px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* ---------- 面板（商品详情/订单查询共用） ---------- */
body.mk-store .panel {
  background: var(--mk-panel); border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius); box-shadow: var(--mk-shadow); overflow: hidden;
}
body.mk-store .panel-header {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px; border-bottom: 1px solid var(--mk-line);
}
body.mk-store .panel-header .icon {
  width: 32px; height: 32px; border-radius: var(--mk-radius-pill); flex-shrink: 0;
  background: var(--mk-accent-soft); color: var(--mk-accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
body.mk-store .panel-title { margin: 0; font-size: 15px; font-weight: 700; }
body.mk-store .panel-body { padding: 18px; }

/* 商品详情 */
body.mk-store .acg-cover {
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 10px; width: 100%;
  height: auto !important; aspect-ratio: 4 / 3; max-height: 360px;
}
body.mk-store .item-cover {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: var(--mk-radius);
}
@media (max-width: 767px) {
  body.mk-store .acg-cover { max-height: 240px; padding: 8px; }
}
body.mk-store .item-buy h4 { font-size: 20px; font-weight: 800; margin: 2px 0 10px; }
body.mk-store .item-buy .price { font-size: 28px; font-weight: 800; color: var(--mk-red); }
body.mk-store .buy-divider { height: 1px; background: var(--mk-line); margin: 14px 0; }
body.mk-store .form-label { font-size: 13px; font-weight: 600; color: var(--mk-muted); }
body.mk-store .form-control {
  background: var(--mk-panel); border: 1px solid var(--mk-line-strong); color: var(--mk-ink);
  border-radius: var(--mk-radius-sm, 10px); font-size: 14px;
}
body.mk-store .form-control:focus { border-color: var(--mk-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 34%, transparent); }

/* SKU 选择 */
body.mk-store .sku-list { display: flex; flex-wrap: wrap; gap: 8px; }
body.mk-store .sku {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--mk-line); background: var(--mk-panel); color: var(--mk-ink);
  border-radius: var(--mk-radius); padding: 8px 14px; font-size: 13.5px; transition: all .16s;
}
body.mk-store .sku:hover { border-color: var(--mk-accent); color: var(--mk-accent); }
body.mk-store .sku.is-primary {
  border-color: var(--mk-accent); color: var(--mk-accent);
  background: var(--mk-accent-soft); font-weight: 700;
}
body.mk-store .badge-money { font-size: 12px; color: var(--mk-muted); }
body.mk-store .sku.is-primary .badge-money { color: var(--mk-accent); }

/* 数量 */
body.mk-store .qty-group { display: inline-flex; align-items: stretch; width: auto; }
body.mk-store .qty-group button {
  width: 40px; border: 1px solid var(--mk-line); background: var(--mk-panel);
  color: var(--mk-ink); font-size: 16px; cursor: pointer;
}
body.mk-store .qty-group .change-num-sub { border-radius: var(--mk-radius-sm, 10px) 0 0 var(--mk-radius-sm, 10px); }
body.mk-store .qty-group .change-num-add { border-radius: 0 var(--mk-radius-sm, 10px) var(--mk-radius-sm, 10px) 0; }
body.mk-store .qty-group input {
  width: 64px; border-radius: 0; border-left: none; border-right: none; text-align: center;
}

/* 支付方式列表 */
body.mk-store .pay-list { display: flex; flex-wrap: wrap; gap: 9px; }
body.mk-store .pay-list .pay-item,
body.mk-store .pay-list label,
body.mk-store .pay-list a {
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 9px 14px;
  background: var(--mk-panel); font-size: 13.5px; cursor: pointer; transition: all .16s;
}
body.mk-store .pay-list .active,
body.mk-store .pay-list .is-active {
  border-color: var(--mk-accent); background: var(--mk-accent-soft); color: var(--mk-accent); font-weight: 700;
}

/* 描述区图片自适应 */
body.mk-store .item-detail .panel-body img { max-width: 100%; height: auto; border-radius: var(--mk-radius-sm, 8px); }

/* 订单查询 */
body.mk-store .btn-search-query {
  background: var(--mk-accent); color: #fff; border: none; border-radius: var(--mk-radius-pill);
  padding: 9px 22px; font-weight: 700;
}
body.mk-store .order-list .order-card,
body.mk-store .order-list > * {
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 14px; margin-bottom: 10px;
  background: var(--mk-panel);
}

/* ---------- 页脚 ---------- */
.mk-footer {
  border-top: 1px solid var(--mk-line); margin-top: 8px;
  padding: 24px 20px 32px; text-align: center;
  color: var(--mk-muted); font-size: 12.5px;
}

/* ---------- 移动端 ---------- */
.mk-bottom-nav {
  display: none;
}
@media (max-width: 991px) {
  /* 防止任何元素撑出横向滚动 */
  html, body { overflow-x: hidden; max-width: 100%; }
  .mk-search-box input { min-width: 0; }
  .mk-topbar-row2 { display: none; }
  .mk-topbar-row1 { padding: 0 12px; gap: 8px; }
  .mk-brand-name { display: inline-block; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .mk-search { max-width: none; flex: 1; }
  .mk-burger { display: inline-flex; }
  /* 移动端第一行只留 logo+店名+客服+教程+汉堡，隐藏主题/语言/登录注册避免重叠 */
  .mk-actions .mk-theme-btn,
  .mk-actions .mk-lang,
  .mk-actions .mk-btn { display: none !important; }
  .mk-actions { gap: 0; }
  /* 移动端快捷入口：保留客服/2FA/教程 文字，隐藏次要入口，整体紧凑 */
  .mk-quick { padding: 0 6px; height: 34px; gap: 2px; font-size: 11px; }
  .mk-quick-text { font-size: 11px; }
  .mk-quick-home, .mk-quick-order, .mk-quick-alive { display: none !important; }
  /* 手机端：抽奖按钮放在搜索框左侧，搜索框让出约 1/3 */
  .mk-searchbar .mk-quick-lottery {
    display: inline-flex !important; flex: 0 0 auto; min-width: 86px; justify-content: center;
    height: 42px; padding: 0 12px; gap: 4px; font-size: 13px;
  }
  .mk-searchbar .mk-quick-lottery .mk-quick-text { font-size: 13px; }
  .mk-searchbar .mk-search { flex: 1 1 auto; min-width: 0; }
  /* 菜单按钮：三横在上、文字在下，节省横向空间 */
  .mk-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: 42px; height: 40px; padding: 0; gap: 0; border-radius: 8px;
  }
  .mk-burger .material-icons-outlined { font-size: 22px; line-height: 1; }
  .mk-burger-text { font-size: 9px; line-height: 1; margin-top: 1px; font-weight: 600; }
  .mk-pagebar { display: none; }
  .mk-main { padding: 16px 12px 88px; }
  .mk-bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    height: 64px;
    background: color-mix(in srgb, var(--mk-panel) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--mk-line);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .mk-bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: var(--mk-muted); font-size: 11px; font-weight: 600;
    transition: color .16s;
  }
  .mk-bn-item .material-icons-outlined { font-size: 24px; }
  .mk-bn-item:hover, .mk-bn-item.is-active { color: var(--mk-accent); }
  .mk-kefu-bn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .mk-kefu-bn .mk-kefu-trigger { gap: 2px; flex-direction: column; }
  .mk-kefu-bn .mk-kefu-caret { display: none; }
  .mk-rail {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 200;
    width: 280px; max-width: 84vw; border-radius: 0; max-height: none;
    transform: translateX(-102%); transition: transform .22s ease;
  }
  body.mk-store.mk-rail-open .mk-rail { transform: translateX(0); }
  .mk-rail-close { display: inline-flex; }
  .mk-rail-backdrop {
    display: block; position: fixed; inset: 0; z-index: 190;
    background: rgba(15, 20, 25, .42); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  body.mk-store.mk-rail-open .mk-rail-backdrop { opacity: 1; pointer-events: auto; }
  .mk-content .item-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .mk-user-meta { display: none; }

  /* 移动端导航抽屉 */
  .mk-mobile-drawer {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: 300;
    width: 300px; max-width: 86vw;
    background: var(--mk-panel);
    transform: translateX(102%); transition: transform .25s ease;
    display: flex; flex-direction: column;
    box-shadow: -8px 0 30px rgba(15,20,25,.15);
  }
  body.mk-md-open .mk-mobile-drawer { transform: translateX(0); }
  .mk-md-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--mk-line);
  }
  .mk-md-title { font-size: 17px; font-weight: 700; }
  .mk-md-list { flex: 1; overflow-y: auto; padding: 8px 0 24px; }
  .mk-md-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px; font-size: 15px; font-weight: 600; color: var(--mk-ink);
    text-decoration: none; border: none; background: none; width: 100%; text-align: left;
    cursor: pointer; transition: background .15s;
  }
  .mk-md-item:hover { background: var(--mk-panel-soft, rgba(239,243,244,.6)); }
  .mk-md-item .material-icons-outlined { font-size: 22px; color: var(--mk-muted); }
  .mk-md-section {
    padding: 14px 18px 6px; font-size: 12px; font-weight: 700;
    color: var(--mk-muted); text-transform: uppercase; letter-spacing: .05em;
  }
  .mk-md-backdrop {
    display: none; position: fixed; inset: 0; z-index: 290;
    background: rgba(15,20,25,.45); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  body.mk-md-open .mk-md-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .mk-md-kefu .mk-kefu-ico { width: 28px; height: 28px; font-size: 11px; }
}

/* 桌面端隐藏移动端抽屉 */
@media (min-width: 992px) {
  .mk-mobile-drawer, .mk-md-backdrop { display: none !important; }
}
@media (max-width: 480px) {
  .mk-content .item-list { grid-template-columns: repeat(2, 1fr); }
}

/* 抽奖中心入口（金色强调） */
.mk-quick-lottery { color: #b45309 !important; }
.mk-quick-lottery:hover { color: #d97706 !important; border-color: #f59e0b !important; background: rgba(245, 158, 11, .1) !important; }
body.mk-store[data-theme="dark"] .mk-quick-lottery,
html[data-theme="dark"] body.mk-store .mk-quick-lottery { color: #fbbf24 !important; }
body.mk-store[data-theme="dark"] .mk-quick-lottery:hover,
html[data-theme="dark"] body.mk-store .mk-quick-lottery:hover { color: #fcd34d !important; border-color: #fbbf24 !important; background: rgba(251, 191, 36, .12) !important; }
body.mk-store.mk-lottery .mk-quick-lottery { color: #ffd98a !important; }
body.mk-store.mk-lottery .mk-quick-lottery:hover { color: #ffe9b8 !important; border-color: #ffd98a !important; background: rgba(255, 217, 138, .14) !important; }
/* 2026-11-02 浅粉混色背景 */
html:not([data-theme="dark"]) body.mk-store:not(.mk-lottery) {
  --mk-bg: #fbe3ec;
  background: linear-gradient(135deg, #ffeef4 0%, #fbe3f1 30%, #efe6fb 60%, #fdeee2 100%) fixed;
  background-attachment: fixed;
}

/* 2026-11-04 手机端快捷分类胶囊条（对齐 ios88 chips 设计） */
.mk-quickcats, .mk-quicksubs { display: none; }
@media (max-width: 991px) {
  .mk-quickcats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mk-quicksubs { padding-top: 0; margin-top: -4px; margin-bottom: 2px; gap: 7px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mk-quicksubs.is-show { display: flex; }
  .mk-quickcats::-webkit-scrollbar, .mk-quicksubs::-webkit-scrollbar { display: none; }
  .mk-qpill {
    flex-shrink: 0; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none;
    background: rgba(255,255,255,.82); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.65); color: #7c6575;
  }
  .mk-qpill.is-primary { background: linear-gradient(135deg,#ff8fab,#fb6f92); color: #fff; border-color: transparent; }
  .mk-qsub { font-size: 12px; padding: 5px 11px; background: rgba(255,255,255,.6); }
  body.mk-store[data-theme='dark'] .mk-qpill, html[data-theme='dark'] body.mk-store .mk-qpill { background: rgba(30,41,59,.85); color: #cbd5e1; border-color: rgba(255,255,255,.12); }
  body.mk-store[data-theme='dark'] .mk-qpill.is-primary, html[data-theme='dark'] body.mk-store .mk-qpill.is-primary { background: linear-gradient(135deg,#ff8fab,#fb6f92); color: #fff; border-color: transparent; }
}
