/* BuyGPT.Pro boot stylesheet extracted from Nginx sub_filter (P2-2) */
p:has(a[href*="github.com/dujiao-next"]),
p:has(a[href*="dujiao-next"]),
a[href*="github.com/dujiao-next"],
a[href*="github.com/BuyGPT.Pro"],
p:has(a[href*="github.com/BuyGPT.Pro"]),
footer a[href*="github.com"] { display: none !important; }

#buygpt-wechat-cs {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow: 0 10px 26px -6px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: box-shadow .22s ease, border-color .22s ease, background-color .22s ease, transform .18s ease;
  text-decoration: none;
  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
  -webkit-font-smoothing: antialiased;
}
#buygpt-wechat-cs:hover {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(15, 23, 42, 0.20);
  box-shadow: 0 14px 32px -6px rgba(15, 23, 42, 0.18), 0 3px 8px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
  transform: translateY(-1px);
}
.dark #buygpt-wechat-cs {
  background: rgba(28, 31, 39, 0.88);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}
.dark #buygpt-wechat-cs:hover {
  background: rgba(36, 40, 50, 0.94);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 16px 34px -6px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
#buygpt-wechat-cs.bgp-cs-dragging {
  cursor: grabbing !important;
  transition: none !important;
  transform: scale(1.03) !important;
  box-shadow: 0 20px 42px -6px rgba(15, 23, 42, 0.24), 0 4px 12px rgba(15, 23, 42, 0.10) !important;
}
.dark #buygpt-wechat-cs.bgp-cs-dragging {
  box-shadow: 0 20px 44px -6px rgba(0, 0, 0, 0.78) !important;
}
#buygpt-wechat-cs:focus:not(:focus-visible) { outline: none; }
#buygpt-wechat-cs .bgp-cs-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.26;
  padding: 12px 6px 12px 6px;
  margin: -10px -4px -10px -6px;
  cursor: grab;
  transition: opacity .18s ease;
  flex: none;
}
#buygpt-wechat-cs:hover .bgp-cs-grip { opacity: 0.54; }
#buygpt-wechat-cs.bgp-cs-dragging .bgp-cs-grip { cursor: grabbing; opacity: 0.72; }
#buygpt-wechat-cs .bgp-cs-ic {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #16c768 0%, #07b357 100%);
  box-shadow: 0 3px 9px rgba(7, 193, 96, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
#buygpt-wechat-cs .bgp-cs-wx {
  width: 15px;
  height: 15px;
  fill: #ffffff;
  display: block;
}
#buygpt-wechat-cs .bgp-cs-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.dark #buygpt-wechat-cs .bgp-cs-dot {
  background: #4ade80;
  border-color: #1c1f27;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.55);
}
#buygpt-wechat-cs.bgp-cs-off .bgp-cs-dot {
  background: #94a3b8 !important;
  box-shadow: none !important;
}
.dark #buygpt-wechat-cs.bgp-cs-off .bgp-cs-dot {
  background: #64748b !important;
  box-shadow: none !important;
}
#buygpt-wechat-cs .bgp-cs-lbl {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Scheme V1 (Desktop >768px): Left / Right Edge Magnetic Vertical Dock (2026-11-26 v1.4) */
@media (min-width: 769px) {
  #buygpt-wechat-cs.bgp-cs-dock {
    flex-direction: column;
    width: 40px;
    height: auto;
    padding: 9px 0 12px;
    gap: 7px;
    transition: width .2s cubic-bezier(.22,1,.36,1), padding .2s cubic-bezier(.22,1,.36,1), box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
  }
  #buygpt-wechat-cs.bgp-cs-dock-r {
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -6px 10px 26px -6px rgba(15, 23, 42, 0.16), -2px 2px 6px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  #buygpt-wechat-cs.bgp-cs-dock-r:hover {
    width: 44px;
    padding-right: 4px;
    transform: none;
    box-shadow: -8px 14px 32px -6px rgba(15, 23, 42, 0.20), -2px 3px 8px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
  }
  #buygpt-wechat-cs.bgp-cs-dock-l {
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 6px 10px 26px -6px rgba(15, 23, 42, 0.16), 2px 2px 6px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  #buygpt-wechat-cs.bgp-cs-dock-l:hover {
    width: 44px;
    padding-left: 4px;
    transform: none;
    box-shadow: 8px 14px 32px -6px rgba(15, 23, 42, 0.20), 2px 3px 8px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
  }
  .dark #buygpt-wechat-cs.bgp-cs-dock-r {
    box-shadow: -6px 12px 28px -6px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  }
  .dark #buygpt-wechat-cs.bgp-cs-dock-r:hover {
    box-shadow: -8px 16px 34px -6px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  .dark #buygpt-wechat-cs.bgp-cs-dock-l {
    box-shadow: 6px 12px 28px -6px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  }
  .dark #buygpt-wechat-cs.bgp-cs-dock-l:hover {
    box-shadow: 8px 16px 34px -6px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  #buygpt-wechat-cs.bgp-cs-dock.bgp-cs-dragging {
    width: 40px !important;
    padding: 9px 0 12px !important;
    transform: none !important;
  }
  #buygpt-wechat-cs.bgp-cs-dock .bgp-cs-grip {
    padding: 6px 10px 4px;
    margin: -6px 0 -2px;
  }
  #buygpt-wechat-cs.bgp-cs-dock .bgp-cs-grip svg {
    transform: rotate(90deg);
  }
  #buygpt-wechat-cs.bgp-cs-dock .bgp-cs-lbl {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    padding-top: 1px;
  }
}
#bgp-cs-snap-hint {
  position: fixed;
  z-index: 44;
  width: 4px;
  height: 124px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.92), rgba(37, 99, 235, 0.25));
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.65);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
#bgp-cs-snap-hint.on { opacity: 1; }
@media (max-width: 768px) {
  #bgp-cs-snap-hint { display: none !important; }
}

/* Scheme B1 (Desktop): keep green capsule untouched, add footer safety space so 隐私政策/服务条款 never occluded */
@media (min-width: 769px) {
  footer { padding-bottom: 58px !important; }
}
/* Scheme B1 (Mobile <=768px): 44x44 compact green circle + back-to-top neatly stacked above + auto-lift when C-1 sticky bar active */
@media (max-width: 768px) {
  #buygpt-wechat-cs {
    left: auto !important;
    top: auto !important;
    bottom: 70px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    flex-direction: row !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: none !important;
    background: #07C160 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(7, 193, 96, 0.34) !important;
    transition: bottom .22s ease, opacity .25s ease, transform .18s ease !important;
  }
  .dark #buygpt-wechat-cs { background: #1f9d55 !important; }
  #buygpt-wechat-cs .bgp-cs-grip, #buygpt-wechat-cs .bgp-cs-lbl { display: none !important; }
  #buygpt-wechat-cs .bgp-cs-ic { width: 44px !important; height: 44px !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important; }
  #buygpt-wechat-cs .bgp-cs-wx { width: 22px !important; height: 22px !important; }
  #buygpt-wechat-cs .bgp-cs-dot { right: 1px !important; bottom: 1px !important; width: 10px !important; height: 10px !important; border-width: 2px !important; }
  #buygpt-wechat-cs img { width: 22px !important; height: 22px !important; margin: 0 !important; }
  button[aria-label="回到顶部"], button[aria-label="Back to top"], button[aria-label="回到頂部"] {
    width: 36px !important;
    height: 36px !important;
    right: 16px !important;
    bottom: 124px !important;
    transition: bottom .22s ease, opacity .25s ease !important;
  }
  body.bgp-sticky-buy-on #buygpt-wechat-cs { bottom: 132px !important; }
  body.bgp-sticky-buy-on button[aria-label="回到顶部"],
  body.bgp-sticky-buy-on button[aria-label="Back to top"],
  body.bgp-sticky-buy-on button[aria-label="回到頂部"] { bottom: 186px !important; }
  body.bgp-scrolling #buygpt-wechat-cs { opacity: 0.78 !important; }
}

.dark [style*="color: rgb(0"] *,
.dark [style*="color: rgb(0"],
.dark [style*="color: rgb(45"],
.dark [style*="color:rgb(0"] *,
.dark [style*="color:rgb(0"],
.dark [style*="color: black"],
.dark [style*="color:black"] { color: inherit !important; }

html.dark .bgp-hero-box .bg-white,
html.dark section .bg-white.text-gray-900 {
  --ui-bg-elevated: #ffffff !important;
  --ui-text-primary: #111827 !important;
  background-color: #ffffff !important;
  color: #111827 !important;
}

a[href*="register"].theme-link-muted {
  visibility: hidden !important; height: 0 !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important; display: block !important;
}


/* ==========================================================================
 * BuyGPT.Pro UI V9 Flagship Design System (2026-12-03 test1)
 * Core Rule: Avoid unnecessary secondary labels & nested borders; Vue-safe!
 * ========================================================================== */
[data-bgp-v9-hide="1"] { display: none !important; }

/* 1) Sleeker bottom-right WeChat CS pill & slimmer edge dock on desktop */
@media (min-width: 769px) {
  #buygpt-wechat-cs:not(.bgp-cs-dock) {
    bottom: 24px;
    right: 20px;
    height: 40px;
    padding: 0 14px 0 9px;
    border-radius: 999px;
    font-size: 13px;
  }
  #buygpt-wechat-cs.bgp-cs-dock {
    width: 34px;
    padding: 8px 0 10px;
    opacity: 0.9;
  }
  #buygpt-wechat-cs.bgp-cs-dock:hover {
    width: 38px;
    opacity: 1;
  }
  #buygpt-wechat-cs.bgp-cs-dock .bgp-cs-lbl {
    font-size: 11.5px;
    letter-spacing: 1.5px;
  }
}

/* 2) Product Cards (/ & /products): 2-line titles, locked symmetric badge baseline, 1 neutral badge */
main a[href^="/products/"] h3,
main .bg-card h3,
main [class*="rounded-2xl"] h3,
main [class*="rounded-3xl"] h3 {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.38 !important;
}
@media (min-width: 640px) {
  [data-bgp-card-v9] h3 {
    font-size: 15.5px !important;
    letter-spacing: -0.01em !important;
    min-height: 2.76em !important;
    max-height: 2.76em !important;
    margin-bottom: 6px !important;
  }
  [data-bgp-card-v9] p[data-bgp-sum]::before {
    min-height: 3.1em !important;
  }
}
main [data-sh-level="INV"] {
  display: none !important;
}
p[data-bgp-sum] {
  font-size: 0 !important;
  line-height: 0 !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
  margin-top: 6px !important;
  margin-bottom: 4px !important;
}
p[data-bgp-sum]::before {
  content: attr(data-bgp-sum);
  font-size: 12.8px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--muted-foreground, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.dark p[data-bgp-sum]::before {
  color: #94a3b8;
}
[data-bgp-badge-clean] {
  background: rgba(15, 23, 42, 0.045) !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  color: #475569 !important;
  font-weight: 500 !important;
}
html.dark [data-bgp-badge-clean] {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

/* 3) Product Detail: keep original Vault image size untouched; tighten right buy-box spacing */
html.bgp-detail-route [data-bgp-buycol] {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}
html.bgp-detail-route [data-bgp-buycol] > * + * {
  margin-top: 8px !important;
}
html.bgp-detail-route [data-bgp-qty-row] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-top: 4px !important;
}
html.bgp-detail-route [data-bgp-qty-row] > * {
  margin: 0 !important;
}
html.bgp-detail-route main h1 {
  font-size: clamp(1.45rem, 2.1vw, 1.85rem) !important;
  line-height: 1.28 !important;
}
html.bgp-detail-route #bgp-price-ref {
  margin-top: 4px !important;
  font-size: 12.5px !important;
}
html.bgp-detail-route #bgp-price-ref small {
  display: inline !important;
  margin-left: 6px !important;
}

/* 4) Checkout: equal-height payment channel cards & coupon toggle */
html.bgp-pay-route main div.grid:has(> button.text-left) {
  align-items: stretch !important;
}
html.bgp-pay-route main div.grid > button.text-left {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.bgp-coupon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color .15s;
}
.bgp-coupon-toggle:hover { color: #2563eb; }
html.dark .bgp-coupon-toggle { color: #94a3b8; }
html.dark .bgp-coupon-toggle:hover { color: #60a5fa; }

/* 5) Blog inline code & balanced footer typography */
.bgp-inline-code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.875em;
  padding: 0.14em 0.42em;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.055);
  border: 1px solid rgba(15, 23, 42, 0.085);
  color: inherit;
}
html.dark .bgp-inline-code {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.13);
}
footer p {
  text-wrap: pretty;
}
/* ==========================================================================
 * Sprint-24: 0ms Zero-Flash Structural Pre-Lock & Opus 5.5 Lower-Home UI (v1.8)
 * ========================================================================== */
:root {
  --bgp-ink: #0f172a;
  --bgp-ink-2: #334155;
  --bgp-muted: #64748b;
  --bgp-line: rgba(15, 23, 42, 0.085);
  --bgp-line-strong: rgba(15, 23, 42, 0.18);
  --bgp-surface: #ffffff;
  --bgp-surface-hover: #f8fafc;
  --bgp-row-hover: rgba(15, 23, 42, 0.024);
  --bgp-pill-on-bg: #0f172a;
  --bgp-pill-on-fg: #ffffff;
}
html.dark {
  --bgp-ink: #f5f5f7;
  --bgp-ink-2: #cbd5e1;
  --bgp-muted: #94a3b8;
  --bgp-line: rgba(255, 255, 255, 0.09);
  --bgp-line-strong: rgba(255, 255, 255, 0.20);
  --bgp-surface: #141519;
  --bgp-surface-hover: #1a1c22;
  --bgp-row-hover: rgba(255, 255, 255, 0.035);
  --bgp-pill-on-bg: #f5f5f7;
  --bgp-pill-on-fg: #0f172a;
  color-scheme: dark;
}

/* 1) Eliminate Windows 15px scrollbar shift + kill first-frame Tailwind transition/stagger flashes */
html {
  scrollbar-gutter: stable;
}
html.bgp-preload *,
html.bgp-preload *::before,
html.bgp-preload *::after {
  transition: none !important;
}
html.bgp-preload .theme-slide-up,
.home-page #featured .theme-slide-up,
.products-page .theme-slide-up {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 2) 0ms Top Notice 44px Space Pre-Lock (prevents navbar & page 44px jump on refresh) */
html.bgp-has-tn body {
  padding-top: 44px !important;
}
html.bgp-has-tn body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 39;
}
html.dark.bgp-has-tn body::before {
  background: #161617;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
html.bgp-has-tn:not(.bgp-tn-scrolled) #app nav.fixed {
  top: 44px;
  transition-property: padding, box-shadow, background-color, border-color !important;
}

/* 3) Prevent #buygpt-wechat-cs dock jump on refresh before saved dock state restores */
@keyframes bgpSafeReveal {
  to { opacity: 1; visibility: visible; }
}
#buygpt-wechat-cs:not([data-bgp-cs-init="1"]) {
  opacity: 0;
  animation: bgpSafeReveal 0s 0.22s forwards;
}

/* 4) Attribute-Free 0ms Pre-Lock for ProductCard on / and /products (zero reliance on JS timing!) */
/* 4a. Hide "分类 · XXX" and "价格" secondary labels at 0ms */
.home-page #featured .grid > .rounded-2xl > div.flex-col > div.uppercase.tracking-wider:first-child,
.products-page .grid > .rounded-2xl > div.flex-col > div.uppercase.tracking-wider:first-child,
.home-page #featured .grid > .rounded-2xl div.border-t.mt-auto > div.flex-col > span.uppercase.tracking-wider:first-child,
.products-page .grid > .rounded-2xl div.border-t.mt-auto > div.flex-col > span.uppercase.tracking-wider:first-child {
  display: none !important;
}
/* 4b. Lock 2-line h3 title height & typography at 0ms */
@media (min-width: 640px) {
  .home-page #featured .grid > .rounded-2xl h3,
  .products-page .grid > .rounded-2xl h3 {
    font-size: 15.5px !important;
    letter-spacing: -0.01em !important;
    line-height: 1.38 !important;
    min-height: 2.76em !important;
    max-height: 2.76em !important;
    margin-bottom: 6px !important;
  }
}
/* 4c. Lock badge row at 0ms: hide Guest badge (child 2) & non-soldout Stock badge (child 4), neutralize Delivery badge & hide inner SVG */
.home-page #featured .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(2)[class*="warning"],
.products-page .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(2)[class*="warning"],
.home-page #featured .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(4):not([class*="destructive"]),
.products-page .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(4):not([class*="destructive"]),
.home-page #featured .grid .theme-badge-success,
.products-page .grid .theme-badge-success {
  display: none !important;
}
.home-page #featured .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(1),
.home-page #featured .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(3),
.products-page .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(1),
.products-page .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(3) {
  background: rgba(15, 23, 42, 0.045) !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  color: #475569 !important;
  font-weight: 500 !important;
}
html.dark .home-page #featured .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(1),
html.dark .home-page #featured .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(3),
html.dark .products-page .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(1),
html.dark .products-page .grid > .rounded-2xl > div.flex-col > h3 + div.flex > :nth-child(3) {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}
.home-page #featured .grid > .rounded-2xl > div.flex-col > h3 + div.flex svg,
.products-page .grid > .rounded-2xl > div.flex-col > h3 + div.flex svg {
  display: none !important;
}
/* 4d. Pre-lock card description <p> height & hide raw DB text before pre-paint microtask stamps data-bgp-sum */
@media (min-width: 768px) {
  .home-page #featured .grid > .rounded-2xl > div.flex-col > p:not([data-bgp-sum]):not([data-bgp-raw-ok]),
  .products-page .grid > .rounded-2xl > div.flex-col > p:not([data-bgp-sum]):not([data-bgp-raw-ok]) {
    min-height: 39.7px !important;
    max-height: 39.7px !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
    opacity: 0;
    animation: bgpSafeReveal 0s 0.18s forwards;
  }
}

/* 5) 0ms Section Subtitles & False-Empty Dashed Box Suppression */
/* Home #featured subtitle replaced at 0ms in pure CSS */
.home-page #featured > .container > .mb-8 p.text-muted-foreground {
  font-size: 0 !important;
  line-height: 0 !important;
}
.home-page #featured > .container > .mb-8 p.text-muted-foreground::before {
  content: "充入本人账号或独享成品号 · 支付宝直付 · 可开普票与专票";
  font-size: 14px;
  line-height: 1.5;
}
/* Suppress Home.vue transient dashed "暂无精选商品 / 暂无文章" box during 80ms API flight */
.home-page #featured div.border-dashed {
  opacity: 0;
  min-height: 420px;
  border-color: transparent !important;
  animation: bgpSafeReveal 0.2s 1.4s forwards;
}
.home-page #featured ~ section:not(#bgp-home-faq) div.border-dashed {
  opacity: 0;
  min-height: 156px;
  border-color: transparent !important;
  animation: bgpSafeReveal 0.2s 1.4s forwards;
}
/* Products page: hide redundant "浏览我们的精选商品" filler subtitle at 0ms & tighten top header */
.products-page > .container > .text-center > h1 + p.text-muted-foreground {
  display: none !important;
}
.products-page > .container > .mb-12.mt-12.text-center {
  margin-top: 28px !important;
  margin-bottom: 28px !important;
}
/* Detail page: prevent raw HTML <table> prose flash before pre-paint descLayout runs */
html.bgp-detail-route main .prose:not(.bgp-v7):not([data-bgp-prose-ready]) {
  opacity: 0;
  animation: bgpSafeReveal 0s 0.18s forwards;
}

/* 6) Opus 5.5 Redesign: Homepage 「最新动态」 (100% Vue-safe CSS + data-bgp-date) */
.home-page hr.theme-section-divider {
  display: none !important;
}
.home-page #featured ~ section:not(#bgp-home-faq),
[data-bgp-news] {
  padding-top: 36px !important;
  padding-bottom: 40px !important;
}
.home-page #featured ~ section:not(#bgp-home-faq) > .container > div:first-child,
[data-bgp-news] > .container > div:first-child {
  align-items: center !important;
  margin-bottom: 20px !important;
}
.home-page #featured ~ section:not(#bgp-home-faq) h2,
[data-bgp-news] h2 {
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: var(--bgp-ink) !important;
}
/* Cut redundant "教程、价格变动与官方动态" secondary label */
.home-page #featured ~ section:not(#bgp-home-faq) h2 + p,
[data-bgp-news] h2 + p {
  display: none !important;
}
/* Refined pill links for 博客 / 公告 */
.home-page #featured ~ section:not(#bgp-home-faq) > .container > div:first-child a,
[data-bgp-news] > .container > div:first-child a {
  display: inline-flex !important;
  align-items: center !important;
  height: 30px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1px solid var(--bgp-line) !important;
  background: var(--bgp-surface) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--bgp-muted) !important;
  text-decoration: none !important;
  transition: color .14s ease, border-color .14s ease !important;
}
.home-page #featured ~ section:not(#bgp-home-faq) > .container > div:first-child a:hover,
[data-bgp-news] > .container > div:first-child a:hover {
  color: var(--bgp-ink) !important;
  border-color: var(--bgp-line-strong) !important;
  background: var(--bgp-surface-hover) !important;
}
/* Crisp hairline 3-col article cards */
.home-page #featured ~ section:not(#bgp-home-faq) article,
[data-bgp-news] article {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 20px 22px !important;
  border: 1px solid var(--bgp-line) !important;
  border-radius: 14px !important;
  background: var(--bgp-surface) !important;
  --tw-shadow: 0 0 #0000 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .15s ease !important;
}
@media (hover: hover) {
  .home-page #featured ~ section:not(#bgp-home-faq) article:hover,
  [data-bgp-news] article:hover {
    border-color: var(--bgp-line-strong) !important;
    background: var(--bgp-surface-hover) !important;
  }
}
.home-page #featured ~ section:not(#bgp-home-faq) article:focus-visible,
[data-bgp-news] article:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45) !important;
}
.home-page #featured ~ section:not(#bgp-home-faq) article > div:first-child,
[data-bgp-news] article > div:first-child {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: var(--bgp-muted) !important;
  font-variant-numeric: tabular-nums !important;
}
.home-page #featured ~ section:not(#bgp-home-faq) article > div[data-bgp-date]:first-child,
[data-bgp-news] article > div[data-bgp-date]:first-child {
  font-size: 0 !important;
  line-height: 0 !important;
}
.home-page #featured ~ section:not(#bgp-home-faq) article > div[data-bgp-date]:first-child::before,
[data-bgp-news] article > div[data-bgp-date]:first-child::before {
  content: attr(data-bgp-date);
  font-size: 12px;
  line-height: 1.2;
}
.home-page #featured ~ section:not(#bgp-home-faq) article h3,
[data-bgp-news] article h3 {
  margin: 0 !important;
  font-size: 15.5px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: var(--bgp-ink) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.9em;
}
.home-page #featured ~ section:not(#bgp-home-faq) article p,
[data-bgp-news] article p {
  margin: 0 !important;
  font-size: 13.2px !important;
  line-height: 1.62 !important;
  color: var(--bgp-muted) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
/* Cut repetitive blue "阅读更多" text inside clickable card */
.home-page #featured ~ section:not(#bgp-home-faq) article > div:last-child,
[data-bgp-news] article > div:last-child {
  display: none !important;
}

/* 7) Opus 5.5 Redesign: Homepage 「常见问题」 (#bgp-home-faq) Single-Surface Hairline Accordion */
#bgp-home-faq {
  padding: 36px 0 60px !important;
}
#bgp-home-faq .bgp-faq-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
#bgp-home-faq h2 {
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: var(--bgp-ink) !important;
  margin: 0 !important;
}
#bgp-home-faq .bgp-faq-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bgp-muted);
  text-decoration: none;
  transition: color .15s ease;
  white-space: nowrap;
}
#bgp-home-faq .bgp-faq-more:hover {
  color: var(--bgp-ink);
}
#bgp-home-faq .bgp-faq-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#bgp-home-faq .bgp-faq-tabs::-webkit-scrollbar {
  display: none;
}
#bgp-home-faq .bgp-faq-tabs button {
  flex: none;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--bgp-line);
  background: var(--bgp-surface);
  color: var(--bgp-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: color .14s ease, border-color .14s ease;
}
#bgp-home-faq .bgp-faq-tabs button:hover {
  color: var(--bgp-ink);
  border-color: var(--bgp-line-strong);
}
#bgp-home-faq .bgp-faq-tabs button[aria-selected="true"] {
  background: var(--bgp-pill-on-bg) !important;
  color: var(--bgp-pill-on-fg) !important;
  border-color: transparent !important;
  font-weight: 600;
}
#bgp-home-faq .bgp-faq-list {
  border: 1px solid var(--bgp-line);
  border-radius: 14px;
  background: var(--bgp-surface);
  overflow: hidden;
}
#bgp-home-faq .bgp-faq-item + .bgp-faq-item {
  border-top: 1px solid var(--bgp-line);
}
#bgp-home-faq .bgp-faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
  color: var(--bgp-ink);
  outline: none;
  user-select: none;
  transition: background-color .15s ease;
}
#bgp-home-faq .bgp-faq-item > summary::-webkit-details-marker {
  display: none;
}
@media (hover: hover) {
  #bgp-home-faq .bgp-faq-item > summary:hover {
    background: var(--bgp-row-hover);
  }
}
#bgp-home-faq .bgp-faq-item > summary:focus {
  outline: none !important;
}
#bgp-home-faq .bgp-faq-item > summary:focus-visible {
  outline: none !important;
  box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, 0.45);
}
#bgp-home-faq .bgp-faq-chev {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--bgp-muted);
  transition: transform .2s ease, color .15s ease;
}
#bgp-home-faq .bgp-faq-item[open] > summary {
  font-weight: 600;
}
#bgp-home-faq .bgp-faq-item[open] .bgp-faq-chev {
  transform: rotate(180deg);
  color: var(--bgp-ink);
}
#bgp-home-faq .bgp-faq-a {
  padding: 0 22px 18px;
  max-width: 78ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--bgp-ink-2);
}
@media (max-width: 640px) {
  .home-page #featured ~ section:not(#bgp-home-faq) article,
  [data-bgp-news] article {
    padding: 16px 18px !important;
  }
  .home-page #featured ~ section:not(#bgp-home-faq) article h3,
  [data-bgp-news] article h3 {
    min-height: 0;
  }
  #bgp-home-faq .bgp-faq-item > summary {
    padding: 14px 16px;
    font-size: 14.5px;
  }
  #bgp-home-faq .bgp-faq-a {
    padding: 0 16px 16px;
    font-size: 13.5px;
  }
}
