/* 仅在商城公开路由启用。所有购买、筛选和数量控件继续由原组件渲染。 */
@keyframes xqp-mounted { from { outline-offset: 0; } to { outline-offset: 0; } }
html[data-xique-site="commerce"][data-xqp] {
  --xqp-bg: #f2ede4; --xqp-surface: #fbf8f1; --xqp-raised: #fffdf8;
  --xqp-ink: #2a2622; --xqp-muted: #675c4d; --xqp-line: #ded4c5;
  --xqp-red: #b84a2f; --xqp-hover: #a03d25; --xqp-soft: #efe4d6;
  --xqp-gold: #e8d7b5; --xqp-gold-ink: #53402a; --xqp-stone: #ddd6ca; --xqp-stone-ink: #413c35;
  --xqp-shadow: 0 8px 26px rgba(48,38,28,.09);
  &.dark {
    --xqp-bg: #17120e; --xqp-surface: #221a14; --xqp-raised: #2c231b;
    --xqp-ink: #f6eee2; --xqp-muted: #c5b5a0; --xqp-line: #504235;
    --xqp-red: #e0805f; --xqp-hover: #ed977a; --xqp-soft: #382c22;
    --xqp-gold: #403423; --xqp-gold-ink: #e4cda1; --xqp-stone: #393431; --xqp-stone-ink: #e2d7c8;
  }
  & body {
    --ui-bg-page: var(--xqp-bg); --ui-bg-surface: var(--xqp-surface); --ui-bg-elevated: var(--xqp-raised);
    --ui-bg-muted: var(--xqp-soft); --ui-text-primary: var(--xqp-ink); --ui-text-secondary: var(--xqp-muted);
    --ui-text-muted: var(--xqp-muted); --ui-border: var(--xqp-line); --ui-accent: var(--xqp-red);
    --ui-accent-hover: var(--xqp-hover); --ui-price-primary: var(--xqp-red);
    --background: var(--xqp-bg); --foreground: var(--xqp-ink); --primary: var(--xqp-red); --primary-on: var(--xqp-raised);
    --border: var(--xqp-line); --card-bg: var(--xqp-surface); --muted: var(--xqp-muted);
    background: var(--xqp-bg); color: var(--xqp-ink); font-family: Inter,"PingFang SC","Microsoft YaHei",sans-serif;
  }
  & main .bg-background { background-color: var(--xqp-bg) !important; }
  & :is(.xique-navbar,footer,nav.theme-safe-bottom,.product-detail-page .theme-safe-bottom) { background: var(--xqp-surface) !important; border-color: var(--xqp-line); }
  & main .bg-card { background-color: var(--xqp-surface) !important; border-color: var(--xqp-line); backdrop-filter: none; }
  & main :is(input:not([type=checkbox],[type=radio]),textarea,select) { border-color: var(--xqp-line); border-radius: 8px; }
  & :is(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--xqp-red); outline-offset: 3px; }
  & .home-page .container, & .products-page > .container, & .xique-navbar > .container, & footer > .container { max-width: 1224px; padding-inline: 32px; }
  & .xique-navbar > .container { min-height: 68px; }
  & .theme-wordmark img { width: 36px; height: 36px; }
  & .home-page .xqs-hero { display: block; text-align: start; padding-block: 0 !important; border: 0; }
  & .xqs-hero, & .home-page .pass-face, & :is(.theme-price-sm,.theme-price-lg) { animation: xqp-mounted 1ms !important; }
  & .xqp-notice { display: flex; align-items: center; gap: 12px; min-height: 46px; color: var(--xqp-muted); font-size: 13px; }
  & .xqp-notice b, & .xqp-copy h1 span { color: var(--xqp-red); }
  & .xqp-notice a { margin-left: auto; padding-block: 10px; }
  & .xqp-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 258px; padding: 26px 6%; border: 1px solid var(--xqp-line); border-radius: 20px; background: var(--xqp-surface); }
  & .xqp-copy h1 { display: block; width: auto; margin: 10px 0; font-size: 36px; font-weight: 700; color: var(--xqp-ink); }
  & .xqp-copy h1 span { margin-left: 8px; }
  & .xqp-copy p { color: var(--xqp-muted); margin: 0; font-size: 14px; }
  & .xqp-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--xqp-muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
  & .xqp-kicker::before { content: ''; width: 24px; height: 2px; background: var(--xqp-red); }
  & .xqp-guide { display: inline-flex; align-items: center; margin-top: 20px; min-height: 40px; padding: 8px 15px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--xqp-red); color: var(--xqp-raised); }
  & .xqp-guide:hover { background: var(--xqp-hover); }
  & .xqp-panel ~ div > :is(h1,p), & #featured:has(.xqs-home-search) h2 + p { display: none; }
  & .xqs-benefits { justify-content: center; gap: clamp(12px,4vw,52px); padding: 14px 0; margin: 0; color: var(--xqp-muted); font-size: 13px; }
  & .xqs-benefits span::before { color: var(--xqp-red); }
  & .xqp-art { position: relative; height: 214px; }
  & .xqp-stack { position: absolute; inset: 0; pointer-events: none; }
  & .xqp-stack .xqp-preview { pointer-events: auto; cursor: pointer; }
  & .xqp-preview:focus-visible { outline: 2px solid var(--xqp-red); outline-offset: 3px; }
  & .xqp-preview {
    position: absolute; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto;
    gap: 5px; width: clamp(174px,18vw,268px); min-height: 116px; aspect-ratio: 1.85; padding: 12px;
    border-radius: 14px; border: 1px solid color-mix(in srgb,currentColor 25%,transparent); box-shadow: var(--xqp-shadow);
    top: 12px; right: 0; transform: rotate(10deg); z-index: 0;
    transition: top .46s ease-in-out, right .46s ease-in-out, transform .46s ease-in-out, z-index 0s .23s;
  }
  & .xqp-stack:not([data-swapped]) > :first-child, & .xqp-stack[data-swapped] > :last-child {
    top: 48px; right: max(74px,24%); transform: rotate(-8deg); z-index: 1;
  }
  @media (prefers-reduced-motion: reduce) { & .xqp-preview { transition: none; } }
  & :is(.pass-face,.xqp-preview) { background: #36261f !important; color: #f5ead7 !important; }
  & :is(.pass-face,.xqp-preview).surface-vellum-parchment { background: var(--xqp-gold) !important; color: var(--xqp-gold-ink) !important; }
  & :is(.pass-face,.xqp-preview):is(.surface-warm-alabaster,.surface-sage-linen) { background: var(--xqp-stone) !important; color: var(--xqp-stone-ink) !important; }
  & :is(.pass-face,.xqp-preview).surface-smoked-bronze { background: #31231b !important; color: #eacb92 !important; }
  & .xqp-preview-top, & .xqp-preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-width: 0; }
  & .xqp-mark { display: block; flex: 0 0 30px; width: 30px; height: 30px; margin-inline-start: auto; }
  & .xqp-preview-foot { font-size: clamp(10px, .83vw, 12px); line-height: 1.35; }
  & .xqp-preview-brand { margin-inline-start: auto; white-space: nowrap; }
  & :is(.xqp-preview-series,.xqp-preview-stamp,.xqp-badge) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  & .xqp-preview-series { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
  & .xqp-preview strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: clamp(15px,1.4vw,20px); line-height: 1.25; overflow-wrap: anywhere; }
  & :is(.pass-face,.xqp-preview) :is(.pass-pill,.xqp-badge) { color: inherit !important; background: transparent !important; border: 1px solid currentColor !important; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 9999px; }
  & .pass-face .pass-emblem-svg, & .pass-face .pass-emblem-box { width: 30px !important; height: 30px !important; }
  & .pass-face .pass-emblem-box { background: none; border: 0; box-shadow: none; color: inherit; }
  & .pass-face :is(.pass-micro-sheen,.pass-guilloche,.pass-watermark,.pass-pill-dot), & .pass-face::after { display: none !important; }
  & main .pass-face { min-height: 136px !important; height: auto; aspect-ratio: 2.05; padding: 16px 20px; border-radius: 14px; border: 1px solid color-mix(in srgb,currentColor 25%,transparent); }
  & :is(.pass-face,.xqp-preview)::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: currentColor; opacity: .22; box-shadow: none; mask: var(--xqp-waves) center / 100% 100% no-repeat; }
  & .xqp-preview::before { mask-image: var(--xqp-hero-waves); }
  & .pass-face > *, & .xqp-preview > * { position: relative; z-index: 1; }
  & .pass-face .pass-title { color: inherit; font: 700 clamp(18px,1.8vw,28px)/1.3 Inter,"Microsoft YaHei",sans-serif; }
  & .pass-face :is(.pass-stamp,.pass-brand) { color: inherit; font-size: 12px; letter-spacing: .05em; }
  & .home-page #featured { padding: 12px 0 32px !important; }
  & .home-page #featured > .container { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,235px); gap: 12px; }
  & #featured > .container > * { grid-column: 1/-1; min-width: 0; }
  & #featured > .container > :has(.theme-section-heading) { margin: 0; padding: 0; border: 0; }
  & #featured .theme-section-heading { font-size: 22px; }
  & #featured > .container > .xqs-categories { grid-column: 1; grid-row: 2; }
  & #featured > .container > .xqs-home-search { grid-column: 2; grid-row: 2; margin: 0; }
  & .home-page:has(.xqp-guide) .xqs-home-search a[href="#selection-guide"] { display: none; }
  & .xqs-categories { display: flex; flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 6px; margin: 0; padding: 2px 0; scrollbar-width: none; }
  & :is(.xqs-categories a,.products-page aside button) { flex: none; border: 1px solid var(--xqp-line); background: var(--xqp-raised); border-radius: 999px; padding: 8px 12px; min-height: 40px; color: var(--xqp-ink); }
  & .xqs-categories a[href='/products'], & .products-page aside button.bg-primary { color: var(--xqp-surface); background: var(--xqp-ink); }
  & :is(.home-page,.products-page) .grid:has(> .xique-luxe-card) { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 18px !important; }
  & body main .xique-luxe-card { min-width: 0; padding: 12px !important; background: var(--xqp-raised) !important; border: 1px solid var(--xqp-line) !important; border-radius: 20px !important; box-shadow: none !important; transform: none !important; }
  & body main .xique-luxe-card:hover { border-color: var(--xqp-muted) !important; box-shadow: var(--xqp-shadow) !important; }
  & .xique-luxe-pedestal { padding: 16px 6px 4px; }
  & .xique-luxe-title { font-size: 18px; color: var(--xqp-ink); }
  & .xique-luxe-desc { font-size: 14px; color: var(--xqp-muted); line-height: 1.5; }
  & .xique-luxe-footer { align-items: flex-end; border: 0; min-height: 40px; }
  & .xique-luxe-card .xique-luxe-footer > div { display: grid; gap: 4px; padding-block: 4px; }
  & .xique-luxe-footer > div > div { margin: 0; }
  & :is(.theme-price-sm,.theme-price-lg) { color: var(--xqp-red) !important; font-family: Inter,"Microsoft YaHei",sans-serif !important; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.025em; }
  & .xique-luxe-footer > div > div > span[aria-label^="批发"] { font-size: 0; }
  & .xique-luxe-footer > div > div > span[aria-label^="批发"]::after { content: '3 件起 ¥70/件'; font-size: 12px; }
  & .xique-luxe-footer .xique-luxe-cta { color: var(--xqp-ink) !important; background: transparent !important; border: 1px solid var(--xqp-line); border-radius: 8px; box-shadow: none; min-height: 40px; }
  & :is(.theme-price-sm,.theme-price-lg), & .xique-luxe-footer .text-xs { color: var(--xqp-red) !important; font-family: Inter,"Microsoft YaHei",sans-serif !important; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.025em; }
  & .xique-luxe-card .theme-price-sm { font-size: 22px !important; }
  & .product-detail-page .theme-price-lg { font-size: 36px; }
  & .product-detail-page .xique-pdp-pass-frame { border: 0; padding: 0; background: transparent; }
  & .theme-prose { color: var(--xqp-ink); line-height: 1.75; }
  & .theme-prose :is(h1,h2,h3,h4,p,span,strong,em,li) { color: inherit; }
  & .theme-prose :is(h1,h2,h3) { color: var(--xqp-ink); line-height: 1.4; margin-block: 20px 8px; font-size: 20px; }
  & .theme-prose a { color: var(--xqp-red); text-decoration: underline; text-underline-offset: 3px; }
  & .theme-prose blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--xqp-line); border-radius: 8px; background: var(--xqp-soft); }
  & .theme-prose blockquote:has(> :only-child:empty) { display: none; }
  & :is(.theme-auth-page,.notice-page,main) .bg-primary { background-color: var(--xqp-red); color: var(--xqp-raised); }
  & footer a { min-height: 40px; display: inline-flex; align-items: center; }
}
@media (max-width: 900px) {
  html[data-xqp] :is(.home-page,.products-page) .grid:has(> .xique-luxe-card) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 700px) {
  html[data-xique-site="commerce"][data-xqp] {
    & .home-page .container, & .products-page > .container, & .xique-navbar > .container, & footer > .container { padding-inline: 16px; }
    & .xique-navbar > .container { min-height: 56px; }
    & .xqp-notice { font-size: 12px; gap: 7px; min-height: 38px; }
    & .xqp-panel { grid-template-columns: 1fr; min-height: 160px; padding: 20px; }
    & .xqp-copy h1 { font-size: 26px; margin: 6px 0; }
    & .xqp-copy p { max-width: 250px; font-size: 13px; }
    & .xqp-guide { margin-top: 10px; font-size: 13px; }
    & .xqp-art { display: none; }
    & .xqs-benefits { justify-content: space-between; gap: 4px; padding-block: 8px; font-size: 12px; }
    & .home-page #featured > .container { grid-template-columns: minmax(0,1fr); gap: 8px; }
    & #featured > .container > .xqs-home-search { grid-column: 1; grid-row: 3; }
    & .home-page #featured { padding-top: 8px !important; }
    & :is(.home-page,.products-page) .grid:has(> .xique-luxe-card) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
    & body main .xique-luxe-card { padding: 6px !important; border-radius: 12px !important; }
    & main .pass-face--card { min-height: 114px !important; aspect-ratio: 1.55; padding: 8px; }
    & .pass-face--card .pass-series { font-size: 9px; }
    & .pass-face .pass-emblem-box, & .pass-face .pass-emblem-svg { width: 22px !important; height: 22px !important; }
    & .pass-face--card .pass-title { font-size: 16px; }
    & .pass-face--card .pass-stamp { font-size: 10px; }
    & .pass-face--card .pass-brand, & .xique-luxe-cta svg { display: none; }
    & .xique-luxe-pedestal { padding: 9px 3px 2px; }
    & .xique-luxe-title { font-size: 14px; }
    & .xique-luxe-desc { font-size: 12px; }
    & .xique-luxe-footer { flex-wrap: wrap; gap: 3px; }
    & .xique-luxe-footer .xique-luxe-cta { min-width: 0; padding-inline: 5px; font-size: 12px; }
    & .xique-luxe-card .theme-price-sm { font-size: 18px !important; }
    & .product-detail-page .theme-price-lg { font-size: 30px; }
  }
}
