/* Dujiao-Next 清爽商城皮肤 v11：白底 + 一个主色蓝 + 价格红。通过 nginx sub_filter 注入，不改源码 */
:root {
  --yq-blue: #1677ff;
  --yq-blue-deep: #0958d9;
  --yq-blue-soft: #eef4ff;
  --yq-red: #e5352b;
  --yq-ink: #1d2129;
  --yq-text: #4e5969;
  --yq-muted: #86909c;
  --yq-line: #e5e8ef;
  --yq-page: #f6f7f9;
  /* 圆角只用四档：标签 4、按钮/输入 8、卡片 12、胶囊 999 */
  --yq-r-xs: 4px;
  --yq-r-s: 8px;
  --yq-r: 12px;
  --yq-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 24px -16px rgba(16, 24, 40, .18);
}

/* ---------- 顶部（全站） ---------- */
/* 最上面的灰色小条随页面滚走，只留 logo 行和分类行吸顶 */
#app .market-header { top: -34px; color: var(--yq-ink); background: #fff; box-shadow: 0 1px 0 var(--yq-line); }
#app .market-utility { background: var(--yq-page); border-bottom: 0; }
#app .market-utility-inner { height: 34px; min-height: 34px; font-size: 12px; }
#app .market-utility-message,
#app .market-utility-actions { color: var(--yq-muted); }
#app .market-utility-actions a:hover,
#app .market-utility-actions button:hover { color: var(--yq-blue); }

#app .market-mainbar { background: #fff; }
#app .market-mainbar-inner { min-height: 64px; }
#app .market-brand { color: var(--yq-ink); }
#app .market-brand img,
#app .market-brand-mark { width: 36px; height: 36px; border-radius: var(--yq-r-s); background: var(--yq-blue-soft); }
#app .market-brand-mark { color: var(--yq-blue); }
#app .market-brand-copy strong { color: var(--yq-ink); font-size: 18px; letter-spacing: .02em; }
#app .market-brand-copy small { color: var(--yq-muted); font-size: 12px; }

#app .market-search {
  width: min(100%, 520px);
  height: 40px;
  border: 1.5px solid var(--yq-blue);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
#app .market-search input { font-size: 14px; }
#app .market-search button { background: var(--yq-blue); padding: 0 22px; font-size: 14px; }
#app .market-search button:hover { background: var(--yq-blue-deep); }
#app .market-search button span { display: inline; }

#app .market-action { color: var(--yq-text); font-size: 13px; }
#app .market-action:hover { color: var(--yq-blue); }
#app .market-account { height: 34px; border-color: var(--yq-blue); color: var(--yq-blue); border-radius: 999px; background: #fff; font-size: 13px; }
#app .market-account:hover { border-color: var(--yq-blue); background: var(--yq-blue); color: #fff; }
#app .market-menu-button { color: var(--yq-ink); }

/* 分类行：平铺文字标签，当前项蓝字加下划线，「全部分类」是蓝色按钮 */
#app .market-category-nav { background: #fff; border-top: 1px solid var(--yq-line); border-bottom: 0; padding: 0; }
#app .market-category-inner {
  min-height: 46px;
  gap: 2px;
  padding-block: 0;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
#app .market-category-inner a {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--yq-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}
#app .market-category-inner a:hover { background: none; color: var(--yq-blue); }
#app .market-category-inner a.is-active { background: none; box-shadow: none; color: var(--yq-blue); font-weight: 600; }
#app .market-category-inner a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--yq-blue);
}
#app .market-category-inner a.yq-nav-all {
  gap: 6px;
  height: 32px;
  margin-right: 10px;
  padding: 0 14px;
  border-radius: var(--yq-r-s);
  color: #fff;
  font-weight: 600;
  background: var(--yq-blue);
}
#app .market-category-inner a.yq-nav-all:hover { color: #fff; background: var(--yq-blue-deep); }
#app .market-category-inner a.yq-nav-all svg { width: 15px; height: 15px; }

@media (max-width: 1100px) {
  #app .market-search button span { display: none; }
}

/* ---------- 全站：价格 ---------- */
#app [class*="theme-price"] { color: var(--yq-red); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 首页 ---------- */
body.yq-home-on #app .home-page { display: none !important; }

.yq-home { background: var(--yq-page); color: var(--yq-ink); padding-bottom: 48px; }
.yq-wrap { width: min(100% - 32px, 1280px); margin-inline: auto; }

@keyframes yq-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes yq-shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.yq-rise { animation: yq-rise .4s ease both; }

/* ---------- 首页顶部：左边分类目录 + 中间轮播横幅 + 右边保障 ---------- */
.yq-top { position: relative; display: grid; grid-template-columns: 232px minmax(0, 1fr) 224px; gap: 12px; padding-top: 16px; }
.yq-chev { flex: 0 0 auto; width: 14px; height: 14px; }
.yq-cat-ph { display: grid; place-items: center; background: var(--yq-blue-soft); color: var(--yq-blue); font-weight: 700; font-size: 15px; }

/* 左：分类目录 */
.yq-dir { display: flex; flex-direction: column; min-height: 340px; border: 1px solid var(--yq-line); border-radius: var(--yq-r); background: #fff; }
.yq-dir-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 11px 11px 0 0; background: var(--yq-blue); color: #fff; font-size: 14px; font-weight: 600; }
.yq-dir-head svg { width: 16px; height: 16px; }
.yq-dir ul { flex: 1 1 auto; margin: 0; padding: 6px; list-style: none; }
.yq-dir-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: var(--yq-r-s);
  color: var(--yq-ink);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.yq-dir-row img,
.yq-dir-row .yq-cat-ph { width: 36px; height: 36px; border-radius: var(--yq-r-s); object-fit: cover; }
.yq-dir-name { min-width: 0; }
.yq-dir-name b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.yq-dir-name small { display: block; overflow: hidden; color: var(--yq-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.yq-dir-row em { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--yq-page); color: var(--yq-muted); font-size: 12px; font-style: normal; line-height: 20px; text-align: center; }
.yq-dir-row em:empty { visibility: hidden; }
.yq-dir-row .yq-chev { color: #c0c6d0; }
.yq-dir-item:hover > .yq-dir-row,
.yq-dir-row:focus-visible { background: var(--yq-blue-soft); color: var(--yq-blue); outline: 0; }
.yq-dir-item:hover > .yq-dir-row .yq-chev { color: var(--yq-blue); }
.yq-dir-item:hover > .yq-dir-row em { background: #fff; color: var(--yq-blue); }
.yq-dir-all { display: flex; align-items: center; gap: 6px; height: 42px; margin: 0 14px; border-top: 1px solid var(--yq-line); color: var(--yq-text); font-size: 13px; text-decoration: none; }
.yq-dir-all em { margin-left: auto; color: var(--yq-muted); font-size: 12px; font-style: normal; }
.yq-dir-all:hover { color: var(--yq-blue); }

/* 鼠标移到某个分类上，右边展开它下面的子分类（盖在横幅上） */
.yq-dir-fly {
  position: absolute;
  left: 231px;
  right: 0;
  top: 16px;
  bottom: 0;
  z-index: 6;
  display: none;
  flex-direction: column;
  padding: 16px 22px 18px;
  border: 1px solid var(--yq-blue);
  border-radius: var(--yq-r);
  background: #fff;
  box-shadow: var(--yq-shadow);
}
@media (hover: hover) {
  .yq-dir-item:hover > .yq-dir-fly,
  .yq-dir-item:focus-within > .yq-dir-fly { display: flex; }
}
.yq-fly-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--yq-line); }
.yq-fly-head b { color: var(--yq-ink); font-size: 16px; font-weight: 700; }
.yq-fly-head span { color: var(--yq-muted); font-size: 12px; }
.yq-fly-head a { margin-left: auto; color: var(--yq-blue); font-size: 13px; text-decoration: none; }
.yq-fly-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; align-content: start; overflow-y: auto; }
.yq-kid { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--yq-line); border-radius: var(--yq-r-s); background: #fff; color: var(--yq-ink); text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.yq-kid:hover { border-color: var(--yq-blue); background: var(--yq-blue-soft); color: var(--yq-blue); }
.yq-kid-mark { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--yq-r-s); background: hsl(var(--h, 217) 90% 95%); color: hsl(var(--h, 217) 70% 42%); font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .02em; }
.yq-kid span { min-width: 0; }
.yq-kid b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.yq-kid small { display: block; color: var(--yq-muted); font-size: 12px; white-space: nowrap; }
.yq-fly-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-content: start; overflow-y: auto; }
.yq-fly-prod { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--yq-line); color: var(--yq-ink); font-size: 14px; text-decoration: none; }
.yq-fly-prod span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yq-fly-prod b { flex: 0 0 auto; color: var(--yq-red); font-weight: 700; }
.yq-fly-prod:hover span { color: var(--yq-blue); }
.yq-fly-empty { display: grid; place-items: center; flex: 1; color: var(--yq-muted); font-size: 14px; }

/* 中：轮播横幅 */
.yq-banner { position: relative; min-width: 0; height: 340px; border-radius: var(--yq-r); background: var(--yq-blue); overflow: hidden; }
.yq-dir + .yq-banner { height: auto; min-height: 340px; }
.yq-slides { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.yq-slides::-webkit-scrollbar { display: none; }
.yq-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 100%;
  gap: 24px;
  padding: 0 52px 0 44px;
  background: linear-gradient(115deg, hsl(var(--h) 88% 54%) 0%, hsl(calc(var(--h) + 16) 78% 43%) 100%);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  scroll-snap-align: start;
}
.yq-slide:hover { color: #fff; }
.yq-slide::before,
.yq-slide::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.yq-slide::before { right: -90px; top: -140px; width: 400px; height: 400px; }
.yq-slide::after { right: 180px; bottom: -150px; width: 260px; height: 260px; background: rgba(255, 255, 255, .06); }
.yq-slide.has-img { background-position: center; background-size: cover; background-repeat: no-repeat; }
.yq-slide.has-img > *,
.yq-slide.has-img::before,
.yq-slide.has-img::after { display: none; }
.yq-slide-copy { position: relative; z-index: 1; min-width: 0; }
.yq-slide-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 600; }
.yq-slide-title { display: block; margin-top: 12px; font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; }
.yq-slide-copy p { max-width: 340px; margin: 10px 0 0; color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.7; }
.yq-slide-btn { display: inline-flex; align-items: center; height: 38px; margin-top: 20px; padding: 0 22px; border-radius: var(--yq-r-s); background: #fff; color: hsl(var(--h) 80% 40%); font-size: 14px; font-weight: 700; transition: transform .15s; }
.yq-slide:hover .yq-slide-btn { transform: translateX(3px); }
.yq-art { position: relative; z-index: 1; flex: 0 0 auto; }
.yq-art i { font-style: normal; box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .45); }
.yq-art-codes { display: grid; grid-template-columns: repeat(3, 78px); gap: 10px; }
.yq-art-codes i { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 10px; background: #fff; }
.yq-art-codes b { color: hsl(var(--h) 70% 44%); font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; }
.yq-art-codes small { color: var(--yq-muted); font-size: 11px; }
.yq-art-rows { display: flex; flex-direction: column; gap: 10px; width: 260px; }
.yq-art-rows i { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 52px; padding: 0 16px; border-radius: 10px; background: #fff; color: var(--yq-ink); font-size: 14px; font-weight: 600; }
.yq-art-rows i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yq-art-rows i b { flex: 0 0 auto; color: var(--yq-red); font-size: 14px; font-weight: 700; }
.yq-art-icons { width: 200px; }
.yq-art-icons i { justify-content: flex-start; }
.yq-art-icons svg { flex: 0 0 auto; width: 18px; height: 18px; color: hsl(var(--h) 80% 40%); }
.yq-bn-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .22);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s, background .15s;
}
.yq-bn-prev { left: 8px; }
.yq-bn-next { right: 8px; }
.yq-banner:hover .yq-bn-arrow,
.yq-bn-arrow:focus-visible { opacity: 1; }
.yq-bn-arrow:hover { background: rgba(0, 0, 0, .4); }
.yq-dots { position: absolute; left: 44px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.yq-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .2s, background .2s; }
.yq-dots button.is-on { width: 22px; background: #fff; }

/* 右：一句话 + 两个按钮 + 三条保障 */
.yq-side { display: flex; flex-direction: column; min-width: 0; padding: 18px 16px 16px; border: 1px solid var(--yq-line); border-radius: var(--yq-r); background: #fff; }
.yq-side h1 { margin: 0; color: var(--yq-ink); font-size: 18px; font-weight: 800; line-height: 1.35; }
.yq-side h1 span { color: var(--yq-blue); }
.yq-side p { display: -webkit-box; margin: 6px 0 0; overflow: hidden; color: var(--yq-muted); font-size: 12px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.yq-side-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.yq-side-btns .yq-btn { height: 36px; padding: 0; font-size: 13px; }
.yq-assure,
.yq-assure-bar { margin: 0; padding: 0; list-style: none; }
.yq-assure { display: grid; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--yq-line); }
.yq-assure li,
.yq-assure-bar li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.yq-assure i,
.yq-assure-bar i { display: grid; place-items: center; grid-row: 1 / 3; width: 32px; height: 32px; border-radius: var(--yq-r-s); background: var(--yq-blue-soft); color: var(--yq-blue); }
.yq-assure svg,
.yq-assure-bar svg { width: 16px; height: 16px; }
.yq-assure b,
.yq-assure-bar b { color: var(--yq-ink); font-size: 13px; font-weight: 600; }
.yq-assure small,
.yq-assure-bar small { color: var(--yq-muted); font-size: 12px; }
.yq-assure-bar { display: none; }

/* 分类目录块：一个一级分类一块，下面是子分类标签。手机首页和「全部分类」下拉共用 */
.yq-dirlist { display: none; }
.yq-blks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.yq-blk { min-width: 0; padding: 2px 12px; border: 1px solid var(--yq-line); border-radius: var(--yq-r); background: #fff; }
.yq-blk-head { display: flex; align-items: center; gap: 10px; min-height: 52px; color: var(--yq-ink); text-decoration: none; }
.yq-blk-head img,
.yq-blk-head .yq-cat-ph { flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--yq-r-s); object-fit: cover; }
.yq-blk-head b { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.yq-blk-head em { flex: 0 0 auto; color: var(--yq-muted); font-size: 12px; font-style: normal; }
.yq-blk-go { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 2px; margin-left: auto; color: var(--yq-blue); font-size: 13px; }
.yq-blk-go .yq-chev { width: 12px; height: 12px; }
.yq-blk-head:hover b,
.yq-blk-head.is-cur b { color: var(--yq-blue); }
.yq-blk-kids { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; }
.yq-blk-kid { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--yq-r-s); background: var(--yq-page); color: var(--yq-ink); font-size: 13px; text-decoration: none; transition: background .15s, color .15s; }
.yq-blk-kid em { color: var(--yq-muted); font-size: 12px; font-style: normal; }
.yq-blk-kid:hover,
.yq-blk-kid.is-cur { background: var(--yq-blue-soft); color: var(--yq-blue); }
.yq-blk-kid.is-cur { font-weight: 600; box-shadow: inset 0 0 0 1px var(--yq-blue); }
.yq-blk-kid:hover em,
.yq-blk-kid.is-cur em { color: var(--yq-blue); }

/* 导航条「全部分类」的下拉目录（全站） */
#app .market-category-nav { position: relative; }
#app .market-category-inner a.yq-nav-all .yq-chev { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .15s; }
#app .market-category-inner a.yq-nav-all.is-open .yq-chev { transform: rotate(-90deg); }
.yq-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; border-top: 1px solid var(--yq-line); background: var(--yq-page); box-shadow: 0 1px 0 var(--yq-line), 0 28px 36px -28px rgba(16, 24, 40, .4); }
.yq-mega[hidden] { display: none; }
.yq-mega-in { width: min(100% - 32px, 1280px); max-height: min(70vh, 560px); margin-inline: auto; padding: 16px 0 12px; overflow-y: auto; }
.yq-mega-all { display: block; margin-top: 12px; padding: 4px 0; color: var(--yq-blue); font-size: 13px; text-align: center; text-decoration: none; }

.yq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--yq-r-s);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.yq-btn svg { width: 16px; height: 16px; }
.yq-btn-main { background: var(--yq-blue); color: #fff; }
.yq-btn-main:hover { background: var(--yq-blue-deep); color: #fff; }
.yq-btn-line { border-color: #c9d3e3; background: #fff; color: var(--yq-ink); }
.yq-btn-line:hover { border-color: var(--yq-blue); color: var(--yq-blue); }


/* 分区 */
.yq-section { margin-top: 32px; }
.yq-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.yq-section-head h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 20px; font-weight: 700; color: var(--yq-ink); }
.yq-section-head h2 img { align-self: center; width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.yq-section-head h2 em { color: var(--yq-muted); font-size: 13px; font-style: normal; font-weight: 400; }
.yq-more { color: var(--yq-muted); font-size: 13px; text-decoration: none; transition: color .15s; }
.yq-more:hover { color: var(--yq-blue); }

.yq-chips { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.yq-chips::-webkit-scrollbar { display: none; }
.yq-chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--yq-line);
  border-radius: 999px;
  background: #fff;
  color: var(--yq-text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.yq-chip:hover { border-color: var(--yq-blue); color: var(--yq-blue); }
.yq-chip.is-on { border-color: var(--yq-blue); background: var(--yq-blue); color: #fff; }

/* 商品卡片 */
.yq-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.yq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--yq-line);
  border-radius: var(--yq-r);
  overflow: hidden;
  background: #fff;
  color: var(--yq-ink);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.yq-card:hover { transform: translateY(-2px); border-color: var(--yq-blue); box-shadow: var(--yq-shadow); }
.yq-card-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f2f4f8; }
.yq-card-img img { width: 100%; height: 100%; object-fit: cover; }
.yq-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  padding: 0 7px;
  border-radius: var(--yq-r-xs);
  background: var(--yq-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
}
.yq-soldout { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(255, 255, 255, .7); }
.yq-soldout span { padding: 0 14px; border-radius: 999px; background: rgba(29, 33, 41, .72); color: #fff; font-size: 12px; font-weight: 600; line-height: 26px; }
.yq-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.yq-card-title {
  display: -webkit-box;
  min-height: 2.9em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.yq-card:hover .yq-card-title { color: var(--yq-blue); }
.yq-meta { display: flex; align-items: center; gap: 4px; min-height: 18px; color: var(--yq-muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.yq-meta svg { flex: 0 0 auto; width: 12px; height: 12px; color: var(--yq-blue); }
.yq-meta .yq-dot { opacity: .6; }
.yq-stock.is-low { color: var(--yq-red); }
.yq-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 2px; }
.yq-price { color: var(--yq-red); font-weight: 700; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yq-price small { font-size: 12px; margin-right: 1px; }
.yq-price em { margin-left: 2px; font-size: 12px; font-style: normal; font-weight: 400; color: var(--yq-muted); }
.yq-go {
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--yq-blue);
  border-radius: 999px;
  color: var(--yq-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  transition: background .15s, color .15s;
}
.yq-card:hover .yq-go { background: var(--yq-blue); color: #fff; }
.yq-card.is-out .yq-price { color: var(--yq-muted); }
.yq-card.is-out .yq-go { border-color: var(--yq-line); color: var(--yq-muted); background: none; }

.yq-empty { padding: 40px 0; color: var(--yq-muted); text-align: center; }

/* 自动封面：按地区生成的文字封面（--h 是色相），放在图片位置上 */
.yq-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  container-type: inline-size;
  overflow: hidden;
  background: linear-gradient(155deg, hsl(var(--h, 217) 85% 97%), hsl(var(--h, 217) 80% 92%));
  color: hsl(var(--h, 217) 48% 30%);
  font-style: normal;
  text-align: left;
}
.yq-cover-kind {
  position: absolute;
  left: 8%;
  top: 8%;
  display: flex;
  align-items: center;
  gap: .4em;
  font-size: 11px;
  font-size: clamp(10px, 5.6cqw, 22px);
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .75;
}
.yq-cover-kind svg { width: 1.3em; height: 1.3em; }
.yq-cover-text { position: absolute; left: 8%; right: 8%; top: 31%; z-index: 1; display: flex; flex-direction: column; gap: .25em; }
.yq-cover-name {
  font-size: 28px;
  font-size: clamp(20px, 15.5cqw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .02em;
  white-space: nowrap;
}
.yq-cover-sub {
  font-size: 13px;
  font-size: clamp(11px, 6.4cqw, 26px);
  font-weight: 500;
  line-height: 1.4;
  opacity: .82;
}
.yq-cover-code {
  position: absolute;
  right: 4%;
  bottom: -3%;
  font-family: "Inter", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 96px;
  font-size: 46cqw;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: hsl(var(--h, 217) 75% 86%);
}
/* 详情页的大封面：不叠在图片上，自己占一块方形位置 */
.yq-cover.yq-cover-block { position: relative; inset: auto; aspect-ratio: 1 / 1; width: 100%; max-width: 440px; margin-inline: auto; border-radius: var(--yq-r); }
[data-yq-cvhide] { display: none !important; }

/* 加载骨架 */
.yq-skel-line, .yq-skel-card i, .yq-skel-card b {
  display: block;
  border-radius: var(--yq-r-s);
  background: linear-gradient(90deg, rgba(160, 175, 200, .16), rgba(160, 175, 200, .3), rgba(160, 175, 200, .16));
  background-size: 200% 100%;
  animation: yq-shine 1.4s linear infinite;
}
.yq-skel-line { height: 16px; margin: 14px 0; }
.yq-skel-line.yq-skel-top { height: 340px; margin: 16px 0 0; border-radius: var(--yq-r); }
.yq-skel-card i { aspect-ratio: 1 / 1; border-radius: var(--yq-r); }
.yq-skel-card b { height: 12px; margin-top: 10px; }
.yq-skel-card b.short { width: 50%; }

/* 悬浮客服 */
.yq-float {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yq-blue);
  box-shadow: 0 8px 20px -8px rgba(22, 119, 255, .7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.yq-float:hover { background: var(--yq-blue-deep); color: #fff; }
.yq-float svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .yq-rise, .yq-skel-line, .yq-skel-card i, .yq-skel-card b { animation: none; }
}

/* ---------- 商品中心 ---------- */
#app .products-page { background: var(--yq-page); padding-top: 0; }
#app .products-page > .container > div:first-child { margin: 0 0 20px; padding: 28px 0 0; text-align: left; }
#app .products-page > .container > div:first-child h1 { margin-bottom: 4px; color: var(--yq-ink); font-size: 24px; font-weight: 700; letter-spacing: 0; }
#app .products-page > .container > div:first-child p { max-width: none; margin: 0; padding: 0; border: 0; color: var(--yq-muted); font-size: 14px; }

/* 侧栏分类 */
#app .products-page aside { width: 232px; }
#app .products-page aside > div {
  top: 128px;
  padding: 16px 12px;
  border: 1px solid var(--yq-line);
  border-radius: var(--yq-r);
  background: #fff;
  box-shadow: none;
}
#app .products-page aside label { display: none; }
#app .products-page aside > div > div:first-child { margin: 0 0 16px; }
#app .products-page aside > div > div:first-child > div { margin-top: 0; }
#app .products-page aside input {
  height: 38px;
  padding-left: 36px;
  border: 1px solid var(--yq-line);
  border-radius: var(--yq-r-s);
  background: var(--yq-page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center / 16px;
  box-shadow: none;
}
#app .products-page aside input:focus { border-color: var(--yq-blue); background-color: #fff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
#app .products-page aside h2 { margin: 0 4px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--yq-line); font-size: 14px; font-weight: 600; color: var(--yq-ink); }
#app .products-page aside ul { display: flex; flex-direction: column; gap: 2px; }
#app .products-page aside ul > li,
#app .products-page aside li > div > * { margin: 0; }
#app .products-page aside li > div { display: flex; flex-direction: column; gap: 2px; }
#app .products-page aside li > div > div { gap: 4px; }
#app .products-page aside li button:not(.rounded-full) {
  position: relative;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--yq-r-s);
  color: var(--yq-text);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
#app .products-page aside li button:not(.rounded-full):hover { background: var(--yq-page); color: var(--yq-blue); }
#app .products-page aside li button.bg-primary:not(.rounded-full) { background: var(--yq-blue-soft); color: var(--yq-blue); font-weight: 600; }
#app .products-page aside li button img { width: 22px; height: 22px; border-radius: 6px; }
#app .products-page aside li button.rounded-full {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--yq-muted);
  box-shadow: none;
  transform: none;
}
#app .products-page aside li button.rounded-full:hover { background: var(--yq-page); color: var(--yq-blue); }
#app .products-page aside li button.rounded-full.bg-primary { background: var(--yq-blue-soft); color: var(--yq-blue); }
#app .products-page aside li button.rounded-full svg { width: 15px; height: 15px; }
#app .products-page aside ul.pl-4 { margin: 2px 0 6px 22px; padding-left: 8px; border-left: 1px solid var(--yq-line); }
#app .products-page aside ul.pl-4 button:not(.rounded-full) { min-height: 34px; font-size: 13px; }
#app .products-page aside ul.pl-4 button img { width: 18px; height: 18px; border-radius: 4px; }

/* 商品卡片：和首页卡片同一套样子 */
#app .products-page main .grid { gap: 14px; }
@media (min-width: 1024px) { #app .products-page main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { #app .products-page main .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
#app .products-page .grid > .group {
  border-color: var(--yq-line);
  border-radius: var(--yq-r);
  background: #fff;
  box-shadow: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
#app .products-page .grid > .group:hover { transform: translateY(-2px); border-color: var(--yq-blue); box-shadow: var(--yq-shadow); }
#app .products-page .grid > .group > div:first-child { aspect-ratio: 1 / 1; background: #f2f4f8; }
#app .products-page .grid > .group > div:first-child > div.absolute:not(.yq-cover) { background: transparent; }
/* 原生的「售罄」角标：挪到右上角做成白色小胶囊，免得压住封面左上角的字 */
#app .products-page .grid > .group > div:first-child > div.absolute.inline-flex:not(.yq-cover) {
  left: auto;
  right: 8px;
  top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--yq-ink);
  font-size: 11px;
}
#app .products-page .grid > .group > div:nth-child(2) { padding: 10px 12px 12px; }
#app .products-page .grid > .group > div:nth-child(2) > div:first-child { margin-bottom: 4px; color: var(--yq-muted); font-size: 12px; letter-spacing: 0; text-transform: none; }
#app .products-page .grid > .group h3 {
  min-height: 2.9em;
  margin-bottom: 6px;
  color: var(--yq-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  -webkit-line-clamp: 2;
}
#app .products-page .grid > .group:hover h3 { color: var(--yq-blue); }
#app .products-page .grid > .group h3 + div { gap: 4px; margin-bottom: 8px; }
#app .products-page .grid > .group h3 + div > div {
  padding: 0 6px;
  border: 0;
  border-radius: var(--yq-r-xs);
  background: var(--yq-page);
  color: var(--yq-text);
  font-size: 11px;
  font-weight: 400;
  line-height: 20px;
}
#app .products-page .grid > .group p { display: none; }
#app .products-page .grid > .group .border-t { padding-top: 8px; border-color: #f0f2f5; }
#app .products-page .grid > .group .border-t span.text-xs { display: none; }
#app .products-page .grid > .group [class*="theme-price"] { font-family: inherit; font-size: 18px; }
/* 价格由脚本写到 data-yq-p 上，显示成和首页一样的「¥20.80」 */
#app .products-page .grid > .group [class*="theme-price"][data-yq-p] { font-size: 0; }
#app .products-page .grid > .group [class*="theme-price"][data-yq-p]::before { content: "¥" attr(data-yq-p); font-size: 18px; }
#app .products-page .grid > .group [class*="theme-price"][data-yq-from]::after { content: "起"; margin-left: 2px; color: var(--yq-muted); font-size: 12px; font-weight: 400; }
#app .products-page .grid > .group .border-t > div:last-child > svg,
#app .products-page .grid > .group .border-t > div:last-child > span { display: none; }
#app .products-page .grid > .group .border-t button {
  width: 30px;
  height: 30px;
  border-color: var(--yq-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--yq-blue);
  box-shadow: none;
}
#app .products-page .grid > .group:hover .border-t button { background: var(--yq-blue); color: #fff; }

/* ---------- 商品详情 ---------- */
#app .product-detail-page { padding-top: 20px; background: var(--yq-page); }
#app .product-detail-page nav.mb-8 { margin-bottom: 16px; }
#app .product-detail-page [class*="rounded-3xl"] {
  margin-bottom: 16px;
  border-color: var(--yq-line);
  border-radius: var(--yq-r);
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#app .product-detail-page [class*="bg-secondary"][class*="border-r"] { background: #fafbfc; border-color: var(--yq-line); }
#app .product-detail-page h1 { margin-bottom: 12px; color: var(--yq-ink); font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
#app .product-detail-page h2 { color: var(--yq-ink); }
#app .product-detail-page [class*="theme-price"] { font-family: inherit; }
/* 主图：原 4:3 裁切会切掉方图，改为 1:1 完整显示 */
#app main img[class*="aspect-[4/3]"].object-cover {
  display: block;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border-color: var(--yq-line);
  border-radius: var(--yq-r);
  background: #fff;
  box-shadow: none;
}

/* ---------- 页脚 ---------- */
#app > div > footer { border-top: 1px solid var(--yq-line); background: #fff; color: var(--yq-muted); }
#app > div > footer > .container { padding-top: 36px; padding-bottom: 28px; }
#app > div > footer > .container > .grid { margin-bottom: 28px; }
#app > div > footer h2,
#app > div > footer h3,
#app > div > footer h4,
#app > div > footer strong { color: var(--yq-ink); }
#app > div > footer h3 { font-size: 17px; }
#app > div > footer h4 { font-size: 14px; }
#app > div > footer a { color: var(--yq-text); }
#app > div > footer a:hover { color: var(--yq-blue); }
#app > div > footer .border-t { padding-top: 20px; border-color: var(--yq-line); }

/* 页脚上方的购物流程条（脚本插入） */
.yq-promise { border-bottom: 1px solid var(--yq-line); background: #fff; }
.yq-promise-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(100% - 32px, 1280px); margin-inline: auto; padding: 22px 0; }
.yq-step { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yq-step i { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--yq-r-s); background: var(--yq-blue-soft); color: var(--yq-blue); }
.yq-step i svg { width: 20px; height: 20px; }
.yq-step b { display: block; color: var(--yq-ink); font-size: 14px; font-weight: 600; }
.yq-step b span { margin-right: 6px; color: var(--yq-blue); font-size: 12px; font-weight: 700; }
.yq-step small { color: var(--yq-muted); font-size: 12px; }

/* ---------- 卡速售商品：注意事项弹窗 + 纯文本描述换行 ---------- */
#app .yq-desc { white-space: pre-line; word-break: break-all; font-size: 14px; line-height: 1.75; color: var(--yq-text); }
.yq-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .45); animation: yq-fade .18s ease-out; }
.yq-modal-card { width: 100%; max-width: 480px; background: #fff; border-radius: var(--yq-r); box-shadow: 0 24px 60px rgba(15, 23, 42, .25); overflow: hidden; }
.yq-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--yq-line); }
.yq-modal-head b { font-size: 16px; color: var(--yq-ink); padding-left: 10px; border-left: 3px solid var(--yq-blue); line-height: 1.1; }
.yq-modal-x { width: 30px; height: 30px; border-radius: var(--yq-r-s); font-size: 20px; line-height: 1; color: var(--yq-muted); background: none; border: 0; cursor: pointer; }
.yq-modal-x:hover { background: var(--yq-page); color: var(--yq-ink); }
.yq-modal-body { padding: 18px 20px; max-height: 60vh; overflow: auto; white-space: pre-line; word-break: break-all; font-size: 14px; line-height: 1.8; color: var(--yq-text); }
.yq-modal-body a { color: var(--yq-blue); text-decoration: underline; }
.yq-modal-foot { padding: 0 20px 18px; display: flex; justify-content: flex-end; }
.yq-modal-ok { min-width: 120px; height: 40px; border-radius: var(--yq-r-s); border: 0; background: var(--yq-blue); color: #fff; font-weight: 600; cursor: pointer; }
.yq-modal-ok:hover { background: var(--yq-blue-deep); }
@keyframes yq-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 虚拟三级分类：首页二级标签行 + 商品中心左侧栏品牌小标题 ---------- */
.yq-subchips[hidden] { display: none; }
.yq-subchips { margin-top: -4px; }
.yq-chip.yq-sub { background: var(--yq-page); border-color: transparent; }
.yq-chip.yq-sub:hover { border-color: var(--yq-blue); }
.yq-chip.yq-sub.is-on { background: var(--yq-blue-soft); color: var(--yq-blue); border-color: var(--yq-blue); }
#app .products-page aside li.yq-bfirst { position: relative; cursor: pointer; }
#app .products-page aside li.yq-bfirst::before {
  content: attr(data-yq-brand) "  ·  " attr(data-yq-count);
  display: flex; align-items: center;
  margin-bottom: 2px; padding: 9px 34px 9px 24px; border-radius: var(--yq-r-s);
  font-size: 13px; font-weight: 600; color: var(--yq-ink); transition: background-color .15s;
  background: radial-gradient(circle, #1677ff 0 3px, transparent 3.5px) 8px center / 10px 10px no-repeat;
}
#app .products-page aside li.yq-bfirst:hover::before { background-color: var(--yq-page); }
#app .products-page aside li.yq-bfirst::after {
  content: ""; position: absolute; right: 14px; top: 15px; width: 7px; height: 7px;
  border-right: 2px solid var(--yq-muted); border-bottom: 2px solid var(--yq-muted); transform: rotate(45deg); transition: transform .2s, top .2s;
}
#app .products-page aside li.yq-bfirst.yq-open::after { top: 18px; transform: rotate(-135deg); }
#app .products-page aside li.yq-bsub > button { margin-left: 8px; }
/* 折叠状态：只剩品牌标题一行 */
#app .products-page aside li.yq-bsub.yq-bhide:not(.yq-bfirst) { display: none; }
#app .products-page aside li.yq-bfirst.yq-bhide > * { display: none; }

/* ---------- 规格合并：详情页规格按钮、被合并的卡片隐藏 ---------- */
[data-yq-vhide] { display: none !important; }
.yq-variants { margin-bottom: 2rem; }
.yq-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.yq-vbtn {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 9px;
  border: 1px solid var(--yq-line); border-radius: var(--yq-r-s); background: #fff; color: var(--yq-ink); text-decoration: none;
  transition: border-color .15s, background .15s;
}
.yq-vbtn:hover { border-color: var(--yq-blue); }
.yq-vbtn.is-on { border-color: var(--yq-blue); background: var(--yq-blue-soft); box-shadow: inset 0 0 0 1px var(--yq-blue); }
.yq-vbtn.is-on::after {
  content: ""; position: absolute; right: 9px; top: 9px; width: 6px; height: 10px;
  border-right: 2px solid var(--yq-blue); border-bottom: 2px solid var(--yq-blue); transform: rotate(45deg) scale(.9);
}
.yq-vl { font-size: 14px; font-weight: 600; line-height: 1.2; }
.yq-vp { color: var(--yq-red); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.yq-vp small { font-size: 11px; margin-right: 1px; }
.yq-vs { font-size: 12px; color: var(--yq-muted); }
.yq-vbtn.is-out { opacity: .55; }
.yq-vbtn.is-out .yq-vp { color: var(--yq-muted); text-decoration: line-through; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1280px) { .yq-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .yq-top { grid-template-columns: 232px minmax(0, 1fr); }
  .yq-side { display: none; }
  .yq-art-codes { grid-template-columns: repeat(3, 66px); gap: 8px; }
  .yq-art-rows { width: 220px; }
}
@media (max-width: 1024px) {
  .yq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yq-promise-in { grid-template-columns: repeat(2, 1fr); }
}
/* 窄屏：左侧目录收起，横幅通栏，下面放保障条和展开的分类目录 */
@media (max-width: 900px) {
  .yq-top { display: block; }
  .yq-dir { display: none; }
  .yq-banner, .yq-dir + .yq-banner { height: 240px; min-height: 0; }
  .yq-assure-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .yq-assure-bar li { padding: 10px; border: 1px solid var(--yq-line); border-radius: var(--yq-r); background: #fff; }
  .yq-dirlist { display: block; margin-top: 24px; }
  .yq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 手机端：顶部不吸顶（原先占去约 1/4 屏），去掉为旧固定头预留的大块空白 */
@media (max-width: 767px) {
  #app .market-header { position: relative; top: 0; }
  #app .market-utility { display: none; }
  #app .market-brand-copy small { display: none; }
  #app .market-mainbar-inner { min-height: 56px; }
  #app .market-category-inner { min-height: 42px; }
  #app .market-category-inner a { height: 42px; padding: 0 11px; }
  #app .market-category-inner a.is-active::after { left: 11px; right: 11px; }
  #app .market-category-inner a.yq-nav-all { height: 30px; margin-right: 6px; padding: 0 12px; }
  #app main > [class*="pt-2"]:not(.home-page):not(.products-page) { padding-top: 16px; }
  #app main > [class*="pt-2"] nav.mb-8 { margin-bottom: 16px; }
  #app .product-detail-page h1 { font-size: 20px; }

  .yq-home { padding-bottom: 32px; }
  .yq-top { padding-top: 12px; }
  .yq-skel-line.yq-skel-top { height: 172px; margin-top: 12px; }
  .yq-banner, .yq-dir + .yq-banner { height: 172px; }
  .yq-slide { gap: 12px; padding: 0 16px 14px 18px; }
  .yq-slide::before { right: -150px; top: -190px; }
  .yq-slide::after { display: none; }
  .yq-slide-tag { padding: 1px 8px; font-size: 11px; }
  .yq-slide-title { margin-top: 6px; font-size: 22px; }
  .yq-slide-copy p { display: -webkit-box; margin-top: 4px; overflow: hidden; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .yq-slide-btn { height: 28px; margin-top: 10px; padding: 0 12px; font-size: 12px; }
  .yq-art-codes { grid-template-columns: repeat(2, 46px); gap: 6px; }
  .yq-art-codes i { height: 38px; border-radius: 8px; }
  .yq-art-codes i:nth-child(n+7) { display: none; }
  .yq-art-codes b { font-size: 13px; }
  .yq-art-codes small { font-size: 10px; line-height: 1.2; }
  .yq-art-rows, .yq-art-icons { gap: 6px; width: 112px; }
  .yq-art-rows i { height: 34px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
  .yq-art-rows i b { display: none; }
  .yq-art-icons svg { width: 14px; height: 14px; }
  .yq-bn-arrow { display: none; }
  .yq-dots { left: 18px; bottom: 10px; }
  .yq-dots button { width: 6px; height: 6px; }
  .yq-dots button.is-on { width: 16px; }
  .yq-assure-bar { margin-top: 10px; }
  .yq-assure-bar li { grid-template-columns: 24px auto; justify-content: center; column-gap: 6px; padding: 8px 4px; }
  .yq-assure-bar i { grid-row: auto; width: 24px; height: 24px; border-radius: 6px; }
  .yq-assure-bar svg { width: 14px; height: 14px; }
  .yq-assure-bar b { font-size: 12px; white-space: nowrap; }
  .yq-assure-bar small { display: none; }
  .yq-dirlist { margin-top: 20px; }
  .yq-blks { grid-template-columns: 1fr; gap: 10px; }
  .yq-mega-in { max-height: 68vh; padding: 12px 0 10px; }
  .yq-btn { height: 40px; padding: 0 12px; }
  .yq-section { margin-top: 24px; }
  .yq-section-head h2 { font-size: 18px; }
  .yq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .yq-card-body { padding: 8px 10px 10px; }
  .yq-card-title { font-size: 13px; }
  .yq-price { font-size: 18px; }
  .yq-go { padding: 0 10px; }
  .yq-float { right: 12px; bottom: 76px; width: 44px; height: 44px; }
  .yq-float span { display: none; }
  .yq-promise-in { gap: 14px 10px; padding: 16px 0; }
  .yq-step { gap: 8px; }
  .yq-step i { width: 32px; height: 32px; }
  .yq-step i svg { width: 16px; height: 16px; }
  .yq-step b { font-size: 13px; }
  .yq-step b span { display: none; }
  .yq-step small { display: none; }
  #app .products-page > .container > div:first-child { padding-top: 16px; margin-bottom: 12px; }
  #app .products-page > .container > div:first-child h1 { font-size: 20px; }
  #app > div > footer > .container { padding-top: 24px; padding-bottom: 20px; }
  #app > div > footer h3 { font-size: 16px; }
}

/* ---------- 对齐：顶部、页脚和中间内容用同一个宽度（原生顶部是 1360、页脚 1536，内容 1280，左右对不齐） ---------- */
#app .market-container { width: min(100% - 32px, 1280px); }
#app > div > footer > .container,
#app main > div > .container { width: min(100% - 32px, 1280px); max-width: none; padding-inline: 0; }

/* ---------- 菜单条（电脑版）：「全部分类」和下面的分类栏同宽、坐在蓝色底线上；其余是圆角标签 ---------- */
@media (min-width: 901px) {
  #app .market-category-nav { border-top: 0; box-shadow: inset 0 -2px 0 var(--yq-blue); }
  #app .market-category-inner { min-height: 50px; gap: 4px; }
  #app .market-category-inner a { height: 34px; padding: 0 16px; border-radius: 999px; transition: color .15s, background .15s; }
  #app .market-category-inner a:hover { background: var(--yq-blue-soft); color: var(--yq-blue); }
  #app .market-category-inner a.is-active { background: var(--yq-blue-soft); color: var(--yq-blue); }
  #app .market-category-inner a.is-active::after { display: none; }
  #app .market-category-inner a.yq-nav-all {
    align-self: flex-end;
    width: 232px;
    height: 44px;
    margin-right: 14px;
    padding: 0 16px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(135deg, #3a8bff, var(--yq-blue));
    font-size: 15px;
    letter-spacing: .02em;
  }
  #app .market-category-inner a.yq-nav-all:hover,
  #app .market-category-inner a.yq-nav-all.is-open { background: linear-gradient(135deg, var(--yq-blue), var(--yq-blue-deep)); color: #fff; }
  #app .market-category-inner a.yq-nav-all svg { width: 16px; height: 16px; }
  #app .market-category-inner a.yq-nav-all .yq-chev { margin-left: auto; }
}

/* 商品中心：翻页处的「本页 N 件商品」 */
.yq-pageinfo { padding: 0 12px 0 14px; border-left: 1px solid var(--yq-line); color: var(--yq-text); font-size: 13px; white-space: nowrap; }
.yq-pageinfo.is-alone { display: block; margin-top: 24px; padding: 0; border: 0; color: var(--yq-muted); text-align: center; }

/* 横幅右侧放不下时的「还有 N 款」 */
.yq-art-rows i.is-more { background: rgba(255, 255, 255, .88); color: var(--yq-text); }
.yq-art-rows i.is-more b { color: var(--yq-blue); font-size: 13px; }
.yq-art-codes i.is-more b { letter-spacing: 0; }
@media (max-width: 767px) {
  .yq-art-rows i.is-more b { display: none; }
}

/* ---------- 背景墙：从上到下的渐变 + 银河动态效果（只在浅色模式） ----------
   每层都比屏幕多出一格花纹，只做平移，所以渐变看起来不动、星星在流动；不占用页面滚动 */
:root:not(.dark) #app > div { isolation: isolate; }
:root:not(.dark) #app > div::before,
:root:not(.dark) #app > div::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
/* 银河主题，一共四层（都只做平移/旋转/透明度，不费性能）：
   1 渐变底 + 慢慢横移的星云光晕  2 远处的小星点缓缓上升  3 近处的四角星上升并闪烁  4 右上角的行星轨道慢慢转 */
:root:not(.dark) #app > div::before {
  width: calc(100% + 1600px);
  background:
    radial-gradient(360px 240px at 320px 170px, rgba(22, 119, 255, .17), transparent 100%) repeat-x 0 0 / 1600px 100%,
    radial-gradient(330px 230px at 1120px 330px, rgba(54, 207, 201, .15), transparent 100%) repeat-x 0 0 / 1600px 100%,
    radial-gradient(380px 250px at 760px 640px, rgba(114, 99, 247, .1), transparent 100%) repeat-x 0 0 / 1600px 100%,
    linear-gradient(180deg, #d6e6ff 0%, #e9f1fd 34%, #f4f6fa 68%, #f6f7f9 100%);
  animation: yq-sky-flow 150s linear infinite;
}
:root:not(.dark) #app > div::after {
  right: 0;
  bottom: auto;
  height: calc(100% + 640px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cg fill='%231677ff'%3E%3Ccircle opacity='.5' cx='42' cy='58' r='1.4'/%3E%3Ccircle opacity='.35' cx='188' cy='24' r='1'/%3E%3Ccircle opacity='.45' cx='305' cy='96' r='1.6'/%3E%3Ccircle opacity='.3' cx='466' cy='44' r='1.1'/%3E%3Ccircle opacity='.45' cx='590' cy='128' r='1.3'/%3E%3Ccircle opacity='.35' cx='112' cy='212' r='1.1'/%3E%3Ccircle opacity='.5' cx='388' cy='248' r='1.5'/%3E%3Ccircle opacity='.3' cx='540' cy='300' r='1'/%3E%3Ccircle opacity='.45' cx='66' cy='372' r='1.5'/%3E%3Ccircle opacity='.35' cx='246' cy='420' r='1.1'/%3E%3Ccircle opacity='.45' cx='452' cy='452' r='1.4'/%3E%3Ccircle opacity='.3' cx='600' cy='520' r='1.1'/%3E%3Ccircle opacity='.45' cx='150' cy='560' r='1.3'/%3E%3Ccircle opacity='.35' cx='350' cy='598' r='1'/%3E%3C/g%3E%3Cg fill='%2336cfc9'%3E%3Ccircle opacity='.6' cx='240' cy='150' r='1.5'/%3E%3Ccircle opacity='.5' cx='520' cy='196' r='1.2'/%3E%3Ccircle opacity='.6' cx='170' cy='318' r='1.3'/%3E%3Ccircle opacity='.5' cx='330' cy='508' r='1.5'/%3E%3Ccircle opacity='.5' cx='560' cy='610' r='1.2'/%3E%3C/g%3E%3Cg fill='%237263f7'%3E%3Ccircle opacity='.45' cx='96' cy='130' r='1.3'/%3E%3Ccircle opacity='.4' cx='430' cy='352' r='1.5'/%3E%3Ccircle opacity='.4' cx='28' cy='482' r='1.2'/%3E%3Ccircle opacity='.45' cx='500' cy='560' r='1.3'/%3E%3C/g%3E%3C/svg%3E") repeat 0 0 / 640px 640px;
  animation: yq-sky-rise-far 180s linear infinite;
}
:root:not(.dark) #app > div > main::before,
:root:not(.dark) #app > div > main::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
:root:not(.dark) #app > div > main::before {
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 900px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 900'%3E%3Cpath fill='%231677ff' opacity='.5' d='M120 81Q120 90 129 90Q120 90 120 99Q120 90 111 90Q120 90 120 81Z'/%3E%3Cpath fill='%2336cfc9' opacity='.7' d='M640 173Q640 180 647 180Q640 180 640 187Q640 180 633 180Q640 180 640 173Z'/%3E%3Cpath fill='%237263f7' opacity='.45' d='M380 349Q380 360 391 360Q380 360 380 371Q380 360 369 360Q380 360 380 349Z'/%3E%3Cpath fill='%231677ff' opacity='.4' d='M800 474Q800 480 806 480Q800 480 800 486Q800 480 794 480Q800 480 800 474Z'/%3E%3Cpath fill='%231677ff' opacity='.5' d='M70 592Q70 600 78 600Q70 600 70 608Q70 600 62 600Q70 600 70 592Z'/%3E%3Cpath fill='%2336cfc9' opacity='.65' d='M540 710Q540 720 550 720Q540 720 540 730Q540 720 530 720Q540 720 540 710Z'/%3E%3Cpath fill='%237263f7' opacity='.4' d='M270 814Q270 820 276 820Q270 820 270 826Q270 820 264 820Q270 820 270 814Z'/%3E%3C/svg%3E") repeat 0 0 / 900px 900px;
  animation: yq-sky-rise-near 110s linear infinite, yq-sky-twinkle 4.5s ease-in-out infinite alternate;
}
:root:not(.dark) #app > div > main::after {
  top: -420px;
  right: -500px;
  width: 1100px;
  height: 1100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 1100' fill='none'%3E%3Cg stroke='%231677ff' stroke-width='1.2'%3E%3Ccircle opacity='.22' cx='550' cy='550' r='260'/%3E%3Ccircle opacity='.2' cx='550' cy='550' r='390' stroke-dasharray='3 10' stroke-linecap='round'/%3E%3Ccircle opacity='.16' cx='550' cy='550' r='530'/%3E%3C/g%3E%3Ccircle fill='%231677ff' opacity='.55' cx='366' cy='734' r='7'/%3E%3Ccircle fill='%2336cfc9' opacity='.75' cx='212' cy='355' r='5'/%3E%3Cg transform='translate(175 925)'%3E%3Ccircle fill='%237263f7' opacity='.5' r='9'/%3E%3Cellipse stroke='%237263f7' stroke-width='1.4' opacity='.5' rx='17' ry='5' transform='rotate(-24)'/%3E%3C/g%3E%3Ccircle fill='%231677ff' opacity='.4' cx='290' cy='550' r='3.5'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: yq-sky-orbit 240s linear infinite;
}
@media (max-width: 900px) {
  :root:not(.dark) #app > div > main::after { top: -260px; right: -300px; width: 660px; height: 660px; }
}
@keyframes yq-sky-flow { to { transform: translate3d(-1600px, 0, 0); } }
@keyframes yq-sky-rise-far { to { transform: translate3d(0, -640px, 0); } }
@keyframes yq-sky-rise-near { to { transform: translate3d(0, -900px, 0); } }
@keyframes yq-sky-twinkle { from { opacity: .45; } to { opacity: 1; } }
@keyframes yq-sky-orbit { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  :root:not(.dark) #app > div::before,
  :root:not(.dark) #app > div::after,
  :root:not(.dark) #app > div > main::before,
  :root:not(.dark) #app > div > main::after { animation: none; }
}
/* 让背景墙透出来：这几个页面原来自己铺了一层浅灰底 */
:root:not(.dark) .yq-home,
:root:not(.dark) #app .products-page,
:root:not(.dark) #app .product-detail-page { background: transparent; }

/* ---------- 右上角：游客查单 / 购物车 / 登录 ----------
   登录是主入口：放大成星空渐变胶囊，头像图标套一圈行星光环，右上角两颗小星星在闪 */
#app .market-account {
  position: relative;
  border: 0;
  background: linear-gradient(120deg, #1677ff 0%, #3f6dff 55%, #7263f7 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(47, 99, 255, .65);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
#app .market-account:hover {
  background: linear-gradient(120deg, #1677ff 0%, #3f6dff 55%, #7263f7 100%);
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(47, 99, 255, .75);
}
@media (min-width: 901px) {
  #app .market-main-actions { gap: 4px; }
  #app .market-action {
    height: 40px;
    padding: 0 14px;
    gap: 7px;
    border-radius: 999px;
    font-size: 14px;
    transition: background .18s ease, color .18s ease;
  }
  #app .market-action svg { width: 19px; height: 19px; color: var(--yq-blue); }
  #app .market-action:hover { background: var(--yq-blue-soft); }
  #app .market-account {
    height: 44px;
    margin-left: 12px;
    padding: 0 26px 0 22px;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
  }
  #app .market-account svg { width: 19px; height: 19px; }
  /* 行星光环：套在头像图标外面的一圈斜椭圆 */
  #app .market-account::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 35px;
    height: 12px;
    margin-top: -6px;
    border: 1.5px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    transform: rotate(-22deg);
    pointer-events: none;
  }
  /* 两颗四角星 */
  #app .market-account::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 9px;
    width: 18px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16' fill='%23fff'%3E%3Cpath d='M12 0Q12 5 17 5Q12 5 12 10Q12 5 7 5Q12 5 12 0Z'/%3E%3Cpath opacity='.75' d='M4 9Q4 12 7 12Q4 12 4 15Q4 12 1 12Q4 12 4 9Z'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
    animation: yq-sky-twinkle 1.8s ease-in-out infinite alternate;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app .market-account::after { animation: none; }
}

/* 右上角改成上下两行：上面 查单 + 购物车，下面一条长方形的「注册 / 登录」；搜索框拉长把中间的空白补上 */
@media (min-width: 901px) {
  #app .market-search { flex: 1 1 auto; max-width: none; }
  #app .market-main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 4px;
    flex: none;
    width: 252px;
  }
  #app .market-action { height: 28px; padding: 0 8px; justify-content: center; font-size: 13px; }
  #app .market-action svg { width: 17px; height: 17px; }
  #app .market-account {
    grid-column: 1 / -1;
    height: 38px;
    margin-left: 0;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
  }
  #app .market-account span { width: 98px; text-align: center; white-space: nowrap; }
  /* 图标 19 + 间距 12 + 文字 98 = 129，光环跟着图标走 */
  #app .market-account::before { left: calc(50% - 72.5px); }
  #app .market-account::after { top: 4px; right: 12px; }
}

/* 右上角第二版：整块在顶栏里上下居中；查单 / 购物车做成两块等宽的浅蓝小方块，和下面的登录条左右对齐 */
@media (min-width: 901px) {
  #app .market-mainbar-inner { height: auto; min-height: 92px; padding-block: 10px; align-items: center; }
  #app .market-main-actions { gap: 8px; align-self: center; align-content: center; }
  #app .market-action {
    height: 30px;
    padding: 0;
    gap: 6px;
    border: 1px solid #d9e6ff;
    border-radius: 8px;
    background: #f3f7ff;
    color: #2b4a7a;
    font-size: 13px;
    font-weight: 500;
  }
  #app .market-action svg { width: 16px; height: 16px; }
  #app .market-action:hover { border-color: var(--yq-blue); background: #fff; color: var(--yq-blue); }
  #app .market-account { height: 36px; }
}
