/* Imported layouts stay scoped to their own template and terminal. */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-"] {
  display:grid; grid-template-columns:minmax(0,1fr); gap:var(--mps-section-gap,16px); padding:0;
  color:#202732; background:transparent;
}
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-"] > .mps-band {
  grid-column:1 / -1; margin:0; padding:16px; min-width:0; border:0; border-radius:0; box-shadow:none; background:#fff;
}
.mps-sections[data-template-id^="pc-reference-"] .mps-inner { max-width:none; margin:0; }
.mps-sections[data-template-id^="pc-reference-"] .mps-heading { margin-bottom:12px; font-size:18px; font-weight:700; color:#202732; }
.mps-sections[data-template-id^="pc-reference-"] .mps-shop-product { border:1px solid #e8ebef; border-radius:var(--mps-product-radius,6px); box-shadow:none; }
.mps-sections[data-template-id^="pc-reference-"] .mps-shop-info h3 { color:#202732; font-size:14px; line-height:1.6; }
.mps-sections[data-template-id^="pc-reference-"] .mps-shop-info strong { color:var(--mps-accent,#e64750); }
.mps-sections[data-template-id^="pc-reference-"] .mps-carousel-track { aspect-ratio:1480 / 780; }
.mps-sections[data-template-id^="pc-reference-"] .mps-shortcuts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.mps-sections[data-template-id^="pc-reference-"] .mps-shortcuts a { min-width:0; padding:12px; font-weight:600; border:0; border-right:1px solid #edf0f3; border-radius:0; }
.mps-sections[data-template-id^="pc-reference-"] .mps-shortcuts a:last-child { border-right:0; }
@media (min-width:761px) {
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-red-"] { grid-template-columns:220px minmax(0,1fr) 320px; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-carousel { grid-column:1 / 3; padding:0; align-self:start; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) { grid-column:3; grid-row:1; padding:14px; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) .mps-shop-grid { gap:8px; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) .mps-shop-product { grid-template-columns:60px minmax(0,1fr); border:0; border-bottom:1px solid #eef0f4; border-radius:0; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) .mps-shop-cover { min-height:72px; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) .mps-shop-info { padding:6px 8px; gap:2px; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) .mps-shop-info h3 { grid-column:1 / -1; margin:0; font-size:13px; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) .mps-shop-category { display:none; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(2) button { min-height:32px; padding:4px 8px; font-size:12px; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-categories { grid-column:1; grid-row:3; align-self:start; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-product_grid:nth-child(5) { grid-column:2 / -1; grid-row:3; }
  .mps-sections[data-template-id^="pc-reference-red-"] > .mps-band-categories .mps-shop-categories { display:grid; grid-template-columns:minmax(0,1fr); max-height:660px; overflow:auto; }
  :is(#storeContent,.mps-preview) > .mps-sections:is([data-template-id^="pc-reference-gray-"],[data-template-id^="pc-reference-gray-products-"]) { grid-template-columns:minmax(0,1fr) 300px; }
  :is(#storeContent,.mps-preview) > .mps-sections:is([data-template-id^="pc-reference-gray-"],[data-template-id^="pc-reference-gray-products-"]) > .mps-band-carousel { grid-column:1; padding:0; }
  :is(#storeContent,.mps-preview) > .mps-sections:is([data-template-id^="pc-reference-gray-"],[data-template-id^="pc-reference-gray-products-"]) > .mps-band-member_panel { grid-column:2; grid-row:1; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-tech-"] { grid-template-columns:240px minmax(0,1fr); }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-tech-"] > .mps-band-categories { grid-column:1; grid-row:1 / 3; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id^="pc-reference-tech-"] > :is(.mps-band-search,.mps-band-product_grid) { grid-column:2; }
  .mps-sections[data-template-id^="pc-reference-tech-"] > .mps-band-categories .mps-shop-categories { display:grid; grid-template-columns:minmax(0,1fr); }
}

/* Measured from source template 39. The two hero columns share a fixed height. */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] {
  grid-template-columns:220px minmax(0,1fr) calc((100% - 12px) / 3); column-gap:12px; padding:12px 18px;
}
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > .mps-band {
  border-radius:var(--mps-card-radius,15px); padding:0; overflow:hidden;
}
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > [data-section-id="reference-banner"] { grid-column:1 / 3; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > [data-section-id="reference-recommendations"] { grid-column:3;grid-row:1;height:var(--mps-media-height,350px);border:1px solid #ededed; }
.mps-sections[data-template-id="pc-reference-red-39"] [data-section-id="reference-recommendations"] .mps-heading {
  min-height:40px;margin:0;padding:10px 14px;border:0;border-radius:0;background:var(--mps-accent);color:#fff;font-size:14px;
}
.mps-sections[data-template-id="pc-reference-red-39"] [data-section-id="reference-recommendations"] .mps-commerce-slot { padding:0 12px;max-height:calc(var(--mps-media-height,350px) - 40px);overflow:auto; }
.mps-sections[data-template-id="pc-reference-red-39"] [data-section-id="reference-notice"] { grid-column:1 / -1; }
.mps-sections[data-template-id="pc-reference-red-39"] [data-section-id="reference-notice"] .mps-notice-bar { min-height:49px;border:1px solid #ededed;border-radius:inherit;box-shadow:none;background:#fff; }
.mps-sections[data-template-id="pc-reference-red-39"] [data-section-id="reference-notice"] .mps-notice-bar > svg { color:var(--mps-accent); }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > [data-section-id="reference-categories"] { grid-column:1;grid-row:3;border-radius:4px 0 0 4px;background:var(--mps-accent); }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > [data-section-id="reference-catalog"] { grid-column:2 / -1;grid-row:3;border-radius:0 4px 4px 0;padding:16px;--mps-product-radius:4px; }
.mps-sections[data-template-id="pc-reference-red-39"] [data-section-id="reference-catalog"] .mps-shop-grid { gap:var(--mps-gap,16px); }
.mps-sections[data-template-id="pc-reference-red-39"] [data-section-id="reference-catalog"] .mps-shop-cover { aspect-ratio:1;background:#fff;padding:10px; }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-shop-categories { display:block;max-height:800px;overflow:auto;background:var(--mps-accent); }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-shop-categories button { display:flex;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 14px;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none;overflow-wrap:anywhere;text-align:left; }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-shop-categories button[aria-pressed="true"],.mps-sections[data-template-id="pc-reference-red-39"] .mps-shop-categories button:hover { background:rgb(0 0 0 / 8%); }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-category-branch summary { display:flex;align-items:center;cursor:pointer;color:#fff; }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-category-branch summary button { flex:1;width:0; }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-category-branch summary::after { content:"\203A";margin-right:14px; }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-category-branch[open] > summary::after { transform:rotate(90deg); }
.mps-sections[data-template-id="pc-reference-red-39"] .mps-category-branch > button { padding-left:26px;background:rgb(255 255 255 / 8%); }
.mps-sections[data-template-id^="pc-reference-"] .mps-reference-search { margin-bottom:14px; }
.mps-sections[data-template-id^="pc-reference-"] .mps-reference-pager { display:flex;gap:12px;align-items:center;justify-content:center;margin-top:16px; }
.mps-sections[data-template-id^="pc-reference-"] .mps-reference-pager button { min-height:36px;padding:6px 12px;border:1px solid #e5e7eb;border-radius:4px;background:#fff;color:#394150;cursor:pointer; }
.mps-sections[data-template-id^="pc-reference-"] .mps-reference-pager button:disabled { opacity:.45;cursor:default; }
.mps-band[style*="--mps-media-height"] .mps-carousel-track { height:var(--mps-media-height);min-height:0;aspect-ratio:auto; }
.mps-band[style*="--mps-media-fit"] .mps-carousel-slide .mps-image { object-fit:var(--mps-media-fit); }
@media(max-width:760px) {
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] { grid-template-columns:140px minmax(0,1fr);padding:10px; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > [data-section-id="reference-recommendations"] { grid-column:1 / -1;grid-row:2; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > [data-section-id="reference-notice"] { grid-row:3; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="pc-reference-red-39"] > :is([data-section-id="reference-catalog"],[data-section-id="reference-categories"]) { grid-row:4; }
}
@media (max-width:760px) {
  .mps-sections[data-template-id^="pc-reference-"] .mps-shortcuts { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* modern 首页严格按参考三栏、分类横条和六列推荐布局，样式仅限本模板。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="modern"] {
  display:grid; grid-template-columns:minmax(0,1fr); gap:10px; padding:0; color:#171b26; background:transparent;
}
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="modern"] > .mps-band {
  min-width:0; margin:0; padding:0; border:0; border-radius:10px; box-shadow:none; background:#fff; overflow:hidden;
}
.mps-sections[data-template-id="modern"] .mps-inner { width:100%; max-width:none; margin:0; }
.mps-sections[data-template-id="modern"] .mps-heading { display:flex; align-items:center; gap:10px; margin:0; padding:16px 10px; border:0; background:none; color:#171b26; font-size:20px; font-weight:700; line-height:1.5; }
.mps-sections[data-template-id="modern"] .mps-modern-showcase { display:grid; grid-template-columns:15.75% minmax(0,1fr) 17.375%; gap:10px; align-items:stretch; background:#f2f2f2; }
.mps-sections[data-template-id="modern"] .mps-modern-showcase > * { min-width:0; }
/* 企业模板的18px顶部外边距不适用于现代首页三栏。 */
.mps-sections[data-template-id="modern"] .mps-enterprise-categories { margin-top:0; overflow:hidden; border-radius:10px; background:linear-gradient(150deg,#25acfa,#1881fc); color:#fff; }
.mps-sections[data-template-id="modern"] .mps-enterprise-categories .mps-commerce-slot { height:100%; }
.mps-sections[data-template-id="modern"] .mps-modern-category-rail { display:flex; flex-direction:column; height:100%; min-height:0; }
.mps-sections[data-template-id="modern"] .mps-modern-category-group { display:flex; flex:1; flex-direction:column; justify-content:center; gap:8px; min-height:0; padding:8px 14px; border-bottom:1px solid rgb(255 255 255 / 13%); }
.mps-sections[data-template-id="modern"] .mps-modern-category-heading { display:flex; align-items:center; gap:4px; width:100%; min-height:24px; padding:0; border:0; background:transparent; color:#fff; font-size:14px; font-weight:600; text-align:left; }
.mps-sections[data-template-id="modern"] .mps-modern-category-heading svg { width:15px; height:15px; flex:none; }
.mps-sections[data-template-id="modern"] .mps-modern-category-heading svg:last-child { margin-left:auto; }
.mps-sections[data-template-id="modern"] .mps-modern-category-children { display:flex; gap:0; min-width:0; overflow:hidden; white-space:nowrap; }
.mps-sections[data-template-id="modern"] .mps-modern-category-child { flex:none; min-height:22px; padding:0; border:0; background:none; color:#fff; font-size:13px; line-height:22px; }
.mps-sections[data-template-id="modern"] .mps-modern-category-child + .mps-modern-category-child::before { content:" / "; white-space:pre; }
.mps-sections[data-template-id="modern"] .mps-modern-category-all { align-self:center; width:68%; min-height:36px; margin:18px auto; padding:7px 12px; border:0; border-radius:3px; background:rgb(255 255 255 / 17%); color:#fff; font-size:13px; }
.mps-sections[data-template-id="modern"] .mps-carousel { height:100%; border-radius:10px; }
.mps-sections[data-template-id="modern"] .mps-carousel-track { aspect-ratio:2.1; }
/* 现代商城首屏海报跟随轮播框的宽高铺满，避免 2.1:1 容器中出现左右留白。 */
.mps-sections[data-template-id="modern"] .mps-carousel-slide .mps-image { object-fit:fill; object-position:center; }
.mps-sections[data-template-id="modern"] .mps-carousel-controls { position:absolute; left:0; right:0; bottom:8px; display:flex; justify-content:center; gap:6px; padding:0; background:none; }
.mps-sections[data-template-id="modern"] .mps-carousel-controls > :not(.mps-modern-carousel-dot) { display:none; }
.mps-sections[data-template-id="modern"] .mps-carousel-controls .mps-modern-carousel-dot { width:16px; height:12px; min-height:12px; padding:0; border:0; border-radius:0; background:linear-gradient(transparent 4px,rgb(255 255 255 / 40%) 4px,rgb(255 255 255 / 40%) 7px,transparent 7px); }
.mps-sections[data-template-id="modern"] .mps-carousel-controls .mps-modern-carousel-dot[aria-current="true"] { width:24px; background:linear-gradient(transparent 4px,#fff 4px,#fff 7px,transparent 7px); }
.mps-sections[data-template-id="modern"] .mps-modern-member { display:flex; align-items:center; gap:8px; min-width:0; padding:12px 14px; border:0; border-radius:10px; background:#fff; text-align:center; }
.mps-sections[data-template-id="modern"] .mps-member-avatar { width:64px; height:64px; margin:0 0 2px; }
.mps-sections[data-template-id="modern"] .mps-member-avatar .mps-media,.mps-sections[data-template-id="modern"] .mps-member-avatar .mps-image { display:block; width:64px; height:64px; border-radius:50%; object-fit:cover; }
.mps-sections[data-template-id="modern"] .mps-member-name { font-size:13px; font-weight:400; line-height:22px; }
.mps-sections[data-template-id="modern"] .mps-member-actions { display:flex; justify-content:center; gap:10px; width:100%; }
.mps-sections[data-template-id="modern"] .mps-member-account,.mps-sections[data-template-id="modern"] .mps-modern-logout { display:flex; align-items:center; justify-content:center; width:auto; min-width:0; min-height:32px; margin:0; padding:5px 12px; border:1px solid #e2e5e9; border-radius:5px; background:#fff; color:#111; font-size:13px; white-space:nowrap; }
.mps-sections[data-template-id="modern"] .mps-member-account { border-color:#1677ff; background:#1677ff; color:#fff; }
.mps-sections[data-template-id="modern"] .mps-modern-member-caption { display:flex; align-items:center; gap:8px; width:100%; margin-top:4px; padding-top:8px; border-top:1px dashed #e3e6ea; color:#111; font-size:15px; }
.mps-sections[data-template-id="modern"] .mps-modern-member-caption::before,.mps-sections[data-template-id="modern"] .mps-modern-member-caption::after { content:""; flex:1; height:2px; background:linear-gradient(90deg,transparent,#238fff); }
.mps-sections[data-template-id="modern"] .mps-modern-member-caption::after { transform:rotate(180deg); }
.mps-sections[data-template-id="modern"] .mps-member-links { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 8px; padding:0; border:0; }
.mps-sections[data-template-id="modern"] .mps-member-links a { gap:6px; min-height:60px; color:#111; font-size:13px; }
.mps-sections[data-template-id="modern"] .mps-member-links .mps-shortcut-icon { display:grid; place-items:center; width:44px; height:44px; padding:0; border-radius:50%; background:#e0f1ff; color:#2c97ff; }
.mps-sections[data-template-id="modern"] .mps-member-links svg { width:22px; height:22px; }
.mps-sections[data-template-id="modern"] .mps-modern-new-badge { display:inline-flex; align-items:center; gap:3px; min-height:22px; padding:1px 7px; border-radius:5px; background:linear-gradient(90deg,#ffbd17,#ff8a00); color:#fff; font-size:13px; line-height:20px; }
.mps-sections[data-template-id="modern"] .mps-modern-new-badge svg { width:14px; height:14px; }
.mps-sections[data-template-id="modern"] .mps-modern-new-categories { display:flex; gap:10px; overflow-x:auto; padding:0 10px 20px; scrollbar-width:none; }
.mps-sections[data-template-id="modern"] .mps-modern-new-categories::-webkit-scrollbar { display:none; }
.mps-sections[data-template-id="modern"] .mps-modern-new-categories { cursor:grab; }
.mps-sections[data-template-id="modern"] .mps-modern-new-categories.is-dragging { cursor:grabbing; user-select:none; }
.mps-sections[data-template-id="modern"] .mps-modern-new-categories img { -webkit-user-drag:none; }
.mps-sections[data-template-id="modern"] .mps-category-motion-toggle { flex:none; min-height:28px; margin-left:6px; padding:2px 8px; border:1px solid #d9e8ff; border-radius:6px; background:transparent; color:#3268a4; font:inherit; font-size:12px; font-weight:400; line-height:20px; cursor:pointer; }
.mps-sections[data-template-id="modern"] .mps-category-motion-toggle[hidden] { display:none; }
.mps-sections[data-template-id="modern"] .mps-modern-new-category { display:flex; flex:0 0 110px; flex-direction:column; align-items:center; gap:10px; min-height:154px; padding:20px 10px 10px; border:1px solid #d9e8ff; border-radius:10px; background:linear-gradient(#fff 45%,#e5f2ff); color:#111; font-size:14px; }
.mps-sections[data-template-id="modern"] .mps-modern-category-image { display:grid; place-items:center; flex:none; width:88px; height:88px; overflow:hidden; border-radius:5px; background:#f2f8ff; }
.mps-sections[data-template-id="modern"] .mps-modern-category-image img { width:100%; height:100%; object-fit:contain; }
.mps-sections[data-template-id="modern"] .mps-modern-category-fallback { font-size:24px; font-weight:600; color:#258cf0; }
.mps-sections[data-template-id="modern"] .mps-modern-category-name { max-width:100%; line-height:1.5; overflow-wrap:anywhere; }
.mps-sections[data-template-id="modern"] [data-section-id="modern-featured"] .mps-heading { gap:16px; min-height:54px; padding:10px 16px; background:#269ffc url("/pc/assets/qqkami-reference/recommend-decoration.svg") right center / auto 100% no-repeat; color:#fff; font-size:24px; }
.mps-sections[data-template-id="modern"] [data-section-id="modern-featured"] .mps-heading small { font-size:13px; font-weight:400; }
.mps-sections[data-template-id="modern"] .mps-modern-category-tabs { display:flex; align-items:center; min-height:54px; gap:12px; overflow-x:auto; padding:6px 24px; border-bottom:1px solid #e5e5e5; scrollbar-width:none; }
.mps-sections[data-template-id="modern"] .mps-modern-category-tabs::-webkit-scrollbar { display:none; }
.mps-sections[data-template-id="modern"] .mps-modern-category-tab { flex:0 0 auto; min-height:32px; padding:6px 14px; border:0; border-radius:18px; background:transparent; color:#111; font-size:14px; line-height:20px; }
.mps-sections[data-template-id="modern"] .mps-modern-category-tab[aria-selected="true"] { background:#2a9fff; color:#fff; box-shadow:0 3px 10px rgb(37 147 252 / 30%); }
.mps-sections[data-template-id="modern"] .mps-modern-category-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:44px 10px; min-height:400px; align-content:start; padding:24px 20px 50px; }
.mps-sections[data-template-id="modern"] .mps-modern-category-tile { display:flex; flex-direction:column; align-items:center; gap:10px; min-width:0; min-height:106px; padding:0; border:0; background:transparent; color:#111; font-size:14px; }
.mps-sections[data-template-id="modern"] .mps-modern-category-tile .mps-modern-category-image { width:72px; height:72px; border-radius:50%; background:#f6fcff; box-shadow:0 5px 16px rgb(59 197 230 / 15%); }
.mps-sections[data-template-id="modern"] .mps-modern-category-tile:hover { color:#168aff; }
.mps-sections[data-template-id="modern"] .mps-shop-status { margin:0; min-height:64px; padding:18px; color:#8592a2; font-size:13px; text-align:center; }
.mps-sections[data-template-id="modern"] .mps-enterprise-categories .mps-shop-status { color:#fff; }
@container mps-region (max-width:1050px) {
  .mps-sections[data-template-id="modern"] .mps-modern-showcase { grid-template-columns:180px minmax(0,1fr); }
  .mps-sections[data-template-id="modern"] .mps-modern-member { grid-column:1 / -1; display:grid; grid-template-columns:64px minmax(0,1fr) minmax(200px,1fr); padding:12px 18px; }
  .mps-sections[data-template-id="modern"] .mps-modern-member .mps-member-links { grid-column:3; grid-row:1 / span 2; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .mps-sections[data-template-id="modern"] .mps-modern-member-caption { display:none; }
  .mps-sections[data-template-id="modern"] .mps-member-avatar { grid-row:1 / span 2; }
}
@container mps-region (max-width:700px) {
  .mps-sections[data-template-id="modern"] .mps-modern-showcase { grid-template-columns:minmax(0,1fr); }
  .mps-sections[data-template-id="modern"] .mps-enterprise-categories { display:none; }
  .mps-sections[data-template-id="modern"] .mps-modern-member { grid-template-columns:64px minmax(0,1fr); }
  .mps-sections[data-template-id="modern"] .mps-modern-member .mps-member-links { grid-column:1 / -1; grid-row:auto; }
  .mps-sections[data-template-id="modern"] .mps-modern-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 8px; padding:20px 10px; }
  .mps-sections[data-template-id="modern"] .mps-modern-category-tabs { padding-inline:10px; }
}
/* 接续审核：modern 不继承企业模板固定媒体高度与外边距。 */
body[data-app="mall-pc"][data-page-type="home"]:has(#storeContent > .mps-sections[data-template-id="modern"]) { background:#f2f2f2; }
.mps-sections[data-template-id="modern"] .mps-enterprise-middle { display:block; margin:0; align-self:stretch; }
.mps-sections[data-template-id="modern"] .mps-enterprise-middle .mps-carousel { width:100%; height:100%; border-radius:10px; }
.mps-sections[data-template-id="modern"] .mps-enterprise-middle .mps-carousel-track { width:100%; height:auto; min-height:0; aspect-ratio:2.1; }
.mps-sections[data-template-id="modern"] .mps-carousel-slide > a,
.mps-sections[data-template-id="modern"] .mps-carousel-slide .mps-media { display:block; width:100%; max-width:none; height:100%; }
.mps-sections[data-template-id="modern"] .mps-carousel-slide .mps-image { width:100%; max-width:none; height:100%; object-fit:fill; object-position:center; }
.mps-sections[data-template-id="modern"] .mps-modern-category-tabs { justify-content:space-around; }
@media (min-width:761px) and (max-width:1200px) {
  body:is([data-template-id="kasushou"],[data-template-id="modern"]) .site-header { grid-template-columns:minmax(0,1fr) 284px; height:auto; padding-block:12px; gap:12px 20px; }
  body:is([data-template-id="kasushou"],[data-template-id="modern"]) .site-header .store-search { grid-column:2; grid-row:1; }
  body:is([data-template-id="kasushou"],[data-template-id="modern"]) .site-header .store-navigation { grid-column:1 / -1; grid-row:2; justify-content:center; }
}

/* 通用分类/富文本组件的轻量结构，任何模板可复用；主题配色由模板各自限定。 */
.mps-sections .mps-category-groups { display:grid; grid-template-columns:repeat(var(--mps-columns,4),minmax(0,1fr)); gap:var(--mps-gap,14px); }
.mps-sections .mps-category-group { min-width:0; }
.mps-sections .mps-category-group-title { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:34px; margin:0; padding:0 8px; border:0; background:none; color:inherit; font-size:15px; font-weight:700; text-align:center; }
.mps-sections .mps-category-group-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.mps-sections .mps-category-group-links button { min-width:0; min-height:34px; padding:4px 8px; border:0; border-radius:6px; background:rgb(0 0 0 / 5%); color:inherit; font-size:13px; overflow-wrap:anywhere; }
.mps-sections .mps-category-tiles { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - (var(--mps-columns,6) - 1) * var(--mps-gap,12px)) / var(--mps-columns,6)); gap:var(--mps-gap,12px); overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
.mps-sections .mps-category-tile { display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; padding:12px 10px; border:1px solid #e6eaf2; border-radius:10px; background:#fff; color:#232a3a; }
.mps-sections .mps-category-tile-image { display:grid; place-items:center; width:100%; aspect-ratio:4 / 3; overflow:hidden; border-radius:7px; background:#f5f7fb; color:#7a8699; font-size:22px; font-weight:600; }
.mps-sections .mps-category-tile-image img { width:100%; height:100%; object-fit:cover; }
.mps-sections .mps-category-tile-name { max-width:100%; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.mps-sections .mps-category-badge { display:inline-flex; align-items:center; min-height:22px; padding:2px 10px; border-radius:11px; background:#ff7a35; color:#fff; font-size:12px; font-weight:600; }
.mps-sections .mps-category-tabs { display:grid; gap:10px; min-width:0; }
.mps-sections .mps-category-tablist { display:flex; align-items:center; gap:10px; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.mps-sections .mps-category-tablist button { flex:0 0 auto; min-height:34px; padding:5px 16px; border:0; border-radius:17px; background:transparent; color:#333; font-size:14px; white-space:nowrap; }
.mps-sections .mps-category-tablist button[aria-pressed="true"] { background:var(--mps-accent,#1677ff); color:#fff; }
.mps-sections .mps-category-subtabs { display:flex; flex-wrap:wrap; gap:8px 18px; min-width:0; }
.mps-sections .mps-category-subtabs button { min-height:30px; padding:2px 4px; border:0; background:none; color:#555; font-size:13px; }
.mps-sections .mps-category-subtabs button[aria-pressed="true"] { color:var(--mps-accent,#1677ff); font-weight:600; }
.mps-rich-text { color:#394150; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.mps-rich-text :is(h2,h3,h4) { margin:14px 0 8px; line-height:1.4; }
.mps-rich-text p { margin:8px 0; }
.mps-rich-text :is(ul,ol) { margin:8px 0; padding-left:22px; }
.mps-rich-text a { color:var(--mps-accent,#1677ff); text-decoration:underline; text-underline-offset:3px; }
.mps-rich-text img { max-width:100%; height:auto; }

/* template_id=2 / pid=20000：轮播精品首页。所有商品、分类和公告内容仍来自真实接口。 */
/* 顶栏与现代商城完全一致：逐项对照 storefront.css 中 kasushou/blue-marketplace/enterprise-mall/modern 共享规则
   及本文件 761-1200 的 kasushou/modern 环绕规则复制到本模板（那些共享规则未含 lululike，不能改 storefront.css）。
   导航文字/间距变量由 storefront.css 共享规则直接覆盖本模板，商户自定义 navStyle（--nav-*）继续生效，
   缺省导航 gap 跟随现代顶部各断点 24/16/20；不改 Logo 资产、菜单项与主色。 */
body[data-template-id="kasuteng-lululike-1314"] .site-header { display:grid; grid-template-columns:220px minmax(0,1fr) 284px; align-items:center; gap:24px; height:80px; padding:0 max(24px,calc((100% - 1240px)/2)); border-bottom:1px solid #e7ebf0; background:#fff; }
body[data-template-id="kasuteng-lululike-1314"] .store-brand { display:flex; align-items:center; flex:initial; min-width:0; gap:0; }
body[data-template-id="kasuteng-lululike-1314"] .store-brand img { display:block; width:180px; height:80px; object-fit:contain; }
body[data-template-id="kasuteng-lululike-1314"] .store-brand:not(.has-logo) span { padding-left:0; border-left:0; }
body[data-template-id="kasuteng-lululike-1314"] .store-brand span { padding-left:14px; border-left:1px solid #e7ebf0; color:#111827; font-size:21px; font-weight:800; letter-spacing:0; }
body[data-template-id="kasuteng-lululike-1314"] .store-search { grid-column:3; width:100%; max-width:none; height:38px; gap:8px; padding-left:16px; border:1px solid #1677ff; border-radius:6px; background:#fff; overflow:hidden; }
body[data-template-id="kasuteng-lululike-1314"] .store-search > svg { display:none; }
body[data-template-id="kasuteng-lululike-1314"] .store-search input { height:36px; color:#4d5664; font-size:13px; }
body[data-template-id="kasuteng-lululike-1314"] .store-search input::placeholder { color:#9da3ad; }
body[data-template-id="kasuteng-lululike-1314"] .store-search button { flex:0 0 72px; border-radius:0; background:#1677ff; font-size:13px; }
body[data-template-id="kasuteng-lululike-1314"] .site-header .account-link { display:none; }
@media (max-width:950px) {
  body[data-template-id="kasuteng-lululike-1314"] .site-header { grid-template-columns:180px minmax(0,1fr) 220px; gap:16px; padding-left:16px; padding-right:16px; }
  body[data-template-id="kasuteng-lululike-1314"] .store-navigation { gap:var(--nav-gap,16px); }
  body[data-template-id="kasuteng-lululike-1314"] .store-navigation a { font-size:var(--nav-font-size,14px); }
}
@media (min-width:761px) and (max-width:1200px) {
  body[data-template-id="kasuteng-lululike-1314"] .site-header { grid-template-columns:minmax(0,1fr) 284px; height:auto; padding-block:12px; gap:12px 20px; }
  body[data-template-id="kasuteng-lululike-1314"] .site-header .store-search { grid-column:2; grid-row:1; }
  body[data-template-id="kasuteng-lululike-1314"] .site-header .store-navigation { grid-column:1 / -1; grid-row:2; justify-content:center; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:650px) {
  body[data-template-id="kasuteng-lululike-1314"] .site-header { display:flex; height:auto; min-height:70px; flex-wrap:wrap; gap:0 14px; padding:12px 16px; }
  body[data-template-id="kasuteng-lululike-1314"] .store-brand { flex:1; }
  body[data-template-id="kasuteng-lululike-1314"] .store-brand img { width:120px; height:54px; }
  body[data-template-id="kasuteng-lululike-1314"] .store-brand span { font-size:20px; }
  body[data-template-id="kasuteng-lululike-1314"] .store-navigation { order:3; flex:0 0 100%; height:72px; gap:var(--nav-gap,20px); padding:0 4px; }
  body[data-template-id="kasuteng-lululike-1314"] .store-navigation a { font-size:var(--nav-font-size,14px); }
  body[data-template-id="kasuteng-lululike-1314"] .store-search { order:4; flex:0 0 100%; margin-top:10px; }
}
/* Grid cards need two action rows; list-row minimum widths overlap below 300px. */
body[data-app="mall-pc"] .mps-sections:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .mps-shop-grid:not([data-layout="list"]) .mps-shop-actions {
  grid-template-columns:42px minmax(0,1fr); grid-column:auto; width:100%; padding:0 12px 12px; box-sizing:border-box;
}
body[data-app="mall-pc"] .mps-sections:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .mps-shop-grid:not([data-layout="list"]) .price-and-limit { grid-column:1 / -1; min-width:0; }
body[data-app="mall-pc"] .mps-sections:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .mps-shop-grid:not([data-layout="list"]) .mps-product-limits { position:static; }
body[data-app="mall-pc"] .mps-sections:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .mps-shop-grid:not([data-layout="list"]) .store-product-buy { grid-column:2; }
body[data-app="mall-pc"] .mps-sections:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .mps-shop-grid:not([data-layout="list"]) .mps-shop-actions:not(:has(.mf-toggle-wrap)) .store-product-buy { grid-column:1 / -1; }
body[data-app="mall-pc"] .mps-sections:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .mps-shop-grid:not([data-layout="list"]) .mps-shop-info { padding-inline:12px; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] {
  display:grid; grid-template-columns:minmax(0,1fr); gap:0; padding:0;
  color:#1c2440; background:transparent;
}
/* 根占满视口宽度，蓝底首屏才能通栏；各内容块自身再对齐商户正文中轴，不动头/脚宽度。 */
body[data-app="mall-pc"][data-template-id="kasuteng-lululike-1314"] #storeContent > .mps-sections[data-template-id="kasuteng-lululike-1314"] {
  width:100%; max-width:none; margin:0;
}
/* 装修预览同一结构：外层通栏铺蓝底（压过 storefront-layout 的预览 rail 约束），内层仍按 --store-layout-rail 对齐原预览中轴，不双重缩进。 */
.mps-preview[data-preview-channel="pc"][data-template-id] > .mps-sections[data-template-id="kasuteng-lululike-1314"] {
  width:100%; max-width:none; margin-inline:0;
}
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band {
  box-sizing:border-box; width:var(--store-layout-rail,min(calc(100% - 2 * var(--store-layout-gutter,20px)),var(--store-content-width,1240px))); margin:0 auto; padding:16px;
  min-width:0; border:0; border-radius:10px; box-shadow:none; background:#fff; overflow:hidden;
}
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > :is([data-section-id="lululike-hero"],[data-section-id="lululike-nav"]) {
  width:100%; max-width:none; margin:0; border-radius:0; background:#0c16a8;
}
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > :is([data-section-id="lululike-hero"],[data-section-id="lululike-nav"]) > .mps-inner {
  width:var(--store-layout-rail,min(calc(100% - 2 * var(--store-layout-gutter,20px)),var(--store-content-width,1240px))); margin-inline:auto;
}
.mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-inner { max-width:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-heading { margin:0 0 12px; color:#17204b; font-size:18px; font-weight:700; }
/* 蓝靛通栏首屏：顶部内距20，海报随中轴等比缩放（1300 宽时 320 高），图片 fill 铺满不拉伸变形以外的留白。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > [data-section-id="lululike-hero"] { padding:20px 0 0; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-inner,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-track,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-slide,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-slide .mps-media { background:transparent; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel { padding-bottom:32px; border-radius:0; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-track { width:100%; height:auto; min-height:0; aspect-ratio:65 / 16; max-height:var(--mps-media-height,320px); overflow:hidden; border-radius:0; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-slide > a,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-slide .mps-media { display:block; width:100%; max-width:none; height:100%; margin:0; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-slide .mps-image { width:100%; height:100%; object-fit:fill; object-position:center; background:transparent; }
/* 首屏箭头左右两侧垂直居中；32px 分页区内两条短横线；既有暂停键在悬停/键盘聚焦时显现，不再内容上叠四个大按钮。 */
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls { position:absolute; inset:0; z-index:2; display:block; padding:0; background:transparent; color:#fff; pointer-events:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls :is(button,a) { pointer-events:auto; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > span { display:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label="上一张"],
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label="下一张"] {
  position:absolute; top:calc((100% - 32px) / 2); width:32px; height:32px; padding:0; border:0; border-radius:50%;
  background:rgb(0 0 0 / 22%); color:#fff; transform:translateY(-50%);
}
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label="上一张"] { left:12px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label="下一张"] { right:12px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label="上一张"]:hover,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label="下一张"]:hover { background:rgb(0 0 0 / 38%); color:#fff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label^="暂停"],
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label^="继续"] {
  position:absolute; right:12px; bottom:4px; width:28px; height:28px; min-height:28px; padding:0; border:0; border-radius:50%;
  background:rgb(0 0 0 / 22%); color:#fff; opacity:0; transition:opacity .15s ease;
}
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel:hover .mps-carousel-controls > button[aria-label^="暂停"],
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel:hover .mps-carousel-controls > button[aria-label^="继续"],
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel:focus-within .mps-carousel-controls > button[aria-label^="暂停"],
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel:focus-within .mps-carousel-controls > button[aria-label^="继续"],
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label^="暂停"]:focus-visible,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label^="继续"]:focus-visible { opacity:1; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-dots { position:absolute; left:0; right:0; bottom:0; z-index:3; display:flex; align-items:center; justify-content:center; gap:8px; height:32px; padding:0; background:transparent; pointer-events:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-dots .mps-carousel-dot { pointer-events:auto; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-dot { width:16px; height:12px; min-height:12px; padding:0; border:0; border-radius:0; background:linear-gradient(transparent 5px,rgb(255 255 255 / 45%) 5px,rgb(255 255 255 / 45%) 8px,transparent 8px); cursor:pointer; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-dot:is([aria-pressed="true"],[aria-current="true"]) { width:24px; background:linear-gradient(transparent 5px,#fff 5px,#fff 8px,transparent 8px); }
@media (prefers-reduced-motion:reduce) {
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label^="暂停"],
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hero"] .mps-carousel-controls > button[aria-label^="继续"] { transition:none; }
}
/* 同底色分组分类：四列 gap14，每组最小 120px 高且不截断文字。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > [data-section-id="lululike-nav"] { padding:0 0 18px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-heading { display:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-shop-status { margin:0; color:rgb(255 255 255 / 72%); }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-group { display:flex; flex-direction:column; min-height:120px; padding:0 0 10px; border:0; border-radius:16px; background:rgb(255 255 255 / 10%); }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-group-title { flex:none; min-height:40px; padding:0 10px; color:#fff; font-size:14px; line-height:40px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-group-links { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:0; padding:0 10px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-group-links button { min-height:30px; padding:3px 6px; border:0; border-radius:4px; background:rgb(255 255 255 / 10%); color:#fff; font-size:12px; line-height:24px; text-align:center; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-group-links button:hover,
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-group-links button:focus-visible { background:rgb(255 255 255 / 22%); color:#fff; }
/* 白色公告条：50px 白平面，前后间距10，无图标和蓝左边线；标题前两个字蓝色、其余黑色。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > [data-section-id="lululike-ticker"] { margin-top:10px; padding:0; border-radius:0; background:#fff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-bar { gap:12px; min-height:50px; padding:0 20px; border:0; border-radius:0; background:#fff; box-shadow:none; color:#333; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-bar > svg { display:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-title { flex:none; max-width:none; font-size:16px; font-weight:700; line-height:1.5; color:#2463eb; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-title {
    background:linear-gradient(90deg,#2463eb 2em,#1a1a1a 2em); -webkit-background-clip:text; background-clip:text; color:transparent;
  }
}
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-divider { flex:none; width:1px; height:16px; background:#dcdfe6; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-text { color:#333; font-size:14px; text-align:left; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-bar > a { min-height:50px; color:#909399; font-size:14px; }
/* The live headline becomes an anchor; it must not inherit the right-side More link layout. */
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-bar > .mps-notice-text { display:block; flex:1; align-self:center; min-width:0; min-height:0; max-width:none; margin-left:0; color:#333; line-height:1.5; text-align:left; }
/* 爆款新品：白底圆角10、padding 20px 16px，标题18px黑+橙色13px角标；132px 分类小卡横向滚动，不铺成大图卡。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band[data-section-id="lululike-hot"] { margin-top:10px; padding:20px 16px; border-radius:10px; background:#fff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-heading { display:flex; align-items:center; gap:10px; min-height:24px; margin:0 0 20px; padding:0; border:0; background:none; color:#111; font-size:18px; font-weight:700; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-heading::before { content:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-category-badge { min-height:22px; padding:1px 8px; border-radius:11px; background:linear-gradient(90deg,#ffbd17,#ff8a00); font-size:13px; font-weight:400; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-category-tiles { grid-auto-columns:132px; gap:10px; padding-bottom:6px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-category-tile { width:132px; min-height:134px; padding:20px 10px 10px; gap:10px; border:1px solid #d6e5fa; border-radius:12px; background:#fff; color:#41435d; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-category-tile-image { width:70px; height:70px; aspect-ratio:auto; border-radius:10px; background:#f5f7fa; font-size:24px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-category-tile-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:16px; line-height:1.4; text-align:center; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-hot"] .mps-category-tile:hover { border-color:#c4cdf2; box-shadow:0 4px 12px rgb(28 35 93 / 10%); }
/* 分类页签与商品目录拼成同一块白底，中间不留灰沟；页签116x28圆角4，选中#5389ff。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band[data-section-id="lululike-categories"] { min-height:68px; margin-top:0; padding:25px 20px 15px; border-radius:10px 10px 0 0; background:#fff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-tabs { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-caption { flex:none; display:flex; align-items:center; gap:4px; width:98px; min-height:28px; color:#000; font-size:14px; white-space:nowrap; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-caption :is(i,svg) { flex:none; width:14px; height:14px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-tablist { flex:1 1 auto; gap:10px; min-width:0; scrollbar-width:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-tablist::-webkit-scrollbar { display:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-tablist button { flex:0 0 auto; width:116px; min-height:28px; padding:0 15px; border:0; border-radius:4px; background:transparent; color:#666; font-size:14px; line-height:28px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-tablist button[aria-pressed="true"] { background:#5389ff; color:#fff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-tablist button:hover { color:#5389ff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-tablist button[aria-pressed="true"]:hover { color:#fff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-subtabs { flex:1 0 100%; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-subtabs button[aria-pressed="true"] { color:#5389ff; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-categories"] .mps-category-subtabs button:hover { color:#5389ff; }
/* 五列商品目录：无外边框阴影，标题14px两行48高；左红24px价格、右72x24蓝细边胶囊购买；不显示编号/库存/收藏/耗时。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band[data-section-id="lululike-catalog"] { margin-top:0; padding:0 20px 20px; border-radius:0 0 10px 10px; background:#fff; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-product { border:0; border-radius:0; box-shadow:none; background:none; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-cover { aspect-ratio:236 / 220; background:#f5f7fa; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-cover img { object-fit:cover; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-info { padding:5px 0 0; gap:0; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-info h3 { height:48px; color:#666; font-size:14px; font-weight:400; line-height:24px; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-info .store-product-title { min-height:48px; max-height:48px; color:#666; line-height:24px; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-product-facts { display:none !important; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; width:100%; margin:10px 0 0; padding:0; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-actions > .mf-toggle-wrap { display:none !important; }
/* The shared product meta uses width:100%; compact cards need an intrinsic price width. */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .price-and-limit { display:flex; flex:0 1 auto; align-items:baseline; gap:6px; min-width:0; width:auto; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .price-and-limit > strong { color:#f44336; font-size:24px; font-weight:400; line-height:36px; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-product-limits { font-size:12px; color:#98a0b4; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .store-product-buy { flex:none; width:72px; min-width:72px; height:24px; min-height:24px; margin:0; padding:0; border:1px solid #0080ff; border-radius:12px; background:#fff; color:#0080ff; font-size:12px; line-height:22px; text-align:center; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .store-product-buy:hover:not(:disabled) { background:#0080ff; color:#fff; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .store-product-buy:disabled { border-color:#d8dde5; background:#f7f8fa; color:#89929f; cursor:default; }
/* 主页商品区的重复搜索与旧上一页/下一页由居中的加载更多替代；顶部全局搜索不受影响。 */
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] :is(.mps-reference-search,.mps-reference-pager) { display:none; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-lululike-more { display:flex; align-items:center; justify-content:center; gap:6px; width:120px; height:40px; min-height:40px; margin:40px auto 20px; padding:0; border:0; border-radius:8px; background:#eee; color:#606266; font-size:14px; line-height:40px; cursor:pointer; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-lululike-more:hover:not(:disabled) { background:#e3e3e3; }
:is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-lululike-more:disabled { opacity:.6; cursor:default; }
/* 可选的我们优势/合作品牌组件保留给商户自行添加。 */
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-benefits"] .mps-benefits-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-benefits"] .mps-benefit-card { min-height:86px; border:0; border-right:1px solid #edf0fa; border-radius:0; box-shadow:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-benefits"] .mps-benefit-card:last-child { border-right:0; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-brand-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-brand-item { display:flex; min-height:72px; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:10px; border:1px solid #e7ebf6; border-radius:8px; color:#384166; text-decoration:none; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-brand-image,.mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-brand-image .mps-image { width:100%; height:38px; object-fit:contain; }
.mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-brand-label { font-size:13px; }
@media(max-width:960px) {
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-benefits"] .mps-benefits-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-benefits"] .mps-benefit-card:nth-child(2n) { border-right:0; }
  .mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-brand-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band { width:calc(100% - 24px); }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > :is([data-section-id="lululike-hero"],[data-section-id="lululike-nav"]) { width:100%; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > :is([data-section-id="lululike-hero"],[data-section-id="lululike-nav"]) > .mps-inner { width:calc(100% - 24px); }
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-ticker"] .mps-notice-bar { padding:0 12px; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band[data-section-id="lululike-hot"] { padding:16px 12px; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band[data-section-id="lululike-categories"] { padding:20px 12px 12px; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] > .mps-band[data-section-id="lululike-catalog"] { padding:0 12px 16px; }
  .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-nav"] .mps-category-groups { grid-auto-flow:column; grid-auto-columns:minmax(230px,72%); grid-template-columns:none; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
  :is(#storeContent,.mps-preview) > .mps-sections[data-template-id="kasuteng-lululike-1314"] [data-section-id="lululike-catalog"] .mps-shop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mps-sections[data-template-id="kasuteng-lululike-1314"] .mps-brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* 统一 KASUSHOU/LULUlike 首页的全局内容基线：顶部、海报、爆款和目录使用同一宽度。 */
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) {
  --store-content-width:1240px;
}
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .template-topbar-inner,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .site-header {
  max-width:var(--store-content-width);
}
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .store-intro,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections],
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .catalog-shell,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .service-band,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .account-view {
  width:calc(100% - 32px);
  max-width:var(--store-content-width);
  margin-left:auto;
  margin-right:auto;
}
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections] {
  box-sizing:border-box;
  margin-top:16px;
}
body[data-template-id="kasushou"] #storeContent > [data-mall-page-sections] {
  grid-template-columns:minmax(0,1fr);
  row-gap:16px;
}
body[data-template-id="kasushou"] #storeContent > [data-mall-page-sections] > .mps-band {
  grid-column:1 / -1;
  min-width:0;
}
/* 原 590/360 会把海报拉得过高；按参考海报约 2.1:1 的比例收紧首屏。 */
body[data-template-id="kasushou"] .mps-band-showcase .mps-carousel-track {
  aspect-ratio:2.12;
  height:auto;
  min-height:0;
  max-height:400px;
}
body[data-template-id="kasushou"] .mps-band-showcase .mps-showcase {
  align-items:stretch;
}
body[data-template-id="kasushou"] .mps-band-promo_grid,
body[data-template-id="kasushou"] .mps-band-product_grid {
  width:100%;
}
body[data-template-id="kasushou"] .mps-band-promo_grid .mps-inner,
body[data-template-id="kasushou"] .mps-band-product_grid .mps-inner {
  width:100%;
  max-width:none;
}
body[data-template-id="kasushou"] .mps-band-promo_grid .mps-shop-grid,
body[data-template-id="kasushou"] .mps-band-product_grid .mps-shop-grid {
  align-items:stretch;
}
@media(max-width:760px) {
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .store-intro,
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections],
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .catalog-shell,
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .service-band,
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .account-view { width:calc(100% - 24px); }
  body[data-template-id="kasushou"] .mps-band-showcase .mps-carousel-track { aspect-ratio:16 / 9; max-height:none; }
}

/* 正式页和装修预览共用同一条外边界；预览多一层 .mps-sections，需同步归零其额外内缩。 */
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .template-topbar-inner,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .site-header,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .store-intro,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections],
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .catalog-shell,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .service-band,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .account-view {
  width:min(calc(100% - 40px),var(--store-content-width));
  max-width:var(--store-content-width);
  box-sizing:border-box;
  margin-inline:auto;
}
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .template-topbar-inner,
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .site-header {
  padding-inline:24px;
}
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections] > .mps-sections {
  width:100%;
  max-width:none;
  padding:0;
}
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections] > :is(.mps-band-categories,.mps-band-product_grid),
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections] > .mps-sections > :is(.mps-band-categories,.mps-band-product_grid) {
  padding-inline:0;
}
body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections] > .mps-sections > .mps-band-showcase {
  width:100%;
}
@media(max-width:760px) {
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .template-topbar-inner,
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) .site-header {
    width:calc(100% - 24px);
    padding-inline:12px;
  }
  body:is([data-template-id="kasushou"],[data-template-id="kasuteng-lululike-1314"]) #storeContent > [data-mall-page-sections] {
    width:calc(100% - 24px);
  }
}
