/**
 * AIVB Frontend Styles
 * 动态列表前端样式
 */

/* ========== Header样式 ========== */
.overflow-visible {
    overflow: visible !important;
}

/* Legacy product/post list palette bridge. This appears last intentionally:
   old saved HTML carries inline spacing, but must never carry a theme colour. */
.aivb-dynamic-list :is(a, a:hover, a:focus, a:visited) { text-decoration: none !important; }
.aivb-dynamic-list :is(.custom-product-grid, .custom-post-grid) {
    gap: 20px !important;
    padding: 20px !important;
    color: var(--aivb-legacy-text);
}
.aivb-dynamic-list :is(.product-item, .custom-post-item) {
    overflow: hidden;
    background: var(--aivb-legacy-surface) !important;
    color: var(--aivb-legacy-text);
    border: 1px solid var(--aivb-legacy-border);
    border-radius: var(--aivb-legacy-radius) !important;
    box-shadow: var(--aivb-ui-shadow, 0 8px 20px rgba(15,23,42,.12)) !important;
}
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.product-contents, .custom-post-text) { color: var(--aivb-legacy-text); }
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.aivb-legacy-title-link, .custom-post-title a) { color: var(--aivb-legacy-text) !important; }
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.aivb-legacy-title-link, .custom-post-title a):hover { color: var(--aivb-theme-color) !important; }
.aivb-dynamic-list :is(.aivb-legacy-price, .price) { color: var(--aivb-theme-color) !important; }
.aivb-dynamic-list :is(.aivb-legacy-excerpt, .custom-post-excerpt, .custom-post-meta-data) { color: var(--aivb-legacy-muted) !important; }
.aivb-dynamic-list :is(.aivb-legacy-badge, .onsale) {
    background: color-mix(in srgb, var(--aivb-theme-color) 14%, var(--aivb-legacy-surface)) !important;
    border: 1px solid color-mix(in srgb, var(--aivb-theme-color) 28%, var(--aivb-legacy-surface));
    color: var(--aivb-theme-color) !important;
    border-radius: var(--aivb-legacy-button-radius) !important;
}
.aivb-dynamic-list :is(.aivb-legacy-action, .product-button, .custom-post-read-more) {
    min-height: var(--aivb-ui-button-height, 48px);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    background: var(--aivb-theme-color) !important;
    border: 1px solid var(--aivb-theme-color) !important;
    border-radius: var(--aivb-legacy-button-radius) !important;
    color: #fff !important;
}
.aivb-dynamic-list :is(.aivb-legacy-action, .product-button, .custom-post-read-more):hover {
    background: var(--aivb-theme-color-hover) !important;
    border-color: var(--aivb-theme-color-hover) !important;
    color: #fff !important;
}
.aivb-dynamic-list :is(.product-item, .custom-post-item) img { border-radius: 0; }
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.product-contents, .custom-post-text, .custom-post-meta-data) { border-color: var(--aivb-legacy-border) !important; }
@media (max-width: 767px) {
    .aivb-dynamic-list { box-sizing: border-box; padding: 16px 14px 28px; }
    .aivb-dynamic-list :is(.custom-product-grid, .custom-post-grid) { gap: 16px !important; padding: 0 !important; }
}

/* Product detail rich text base fallback. The final override is repeated at
   the end of this legacy bundle to beat older generated styles. */
.aivb-product-description-wrapper {
    --aivb-rich-primary: var(--aivb-single-primary, var(--aivb-ui-primary, var(--aivb-primary, #60a5fa)));
    --aivb-rich-accent: var(--aivb-single-accent, var(--aivb-ui-accent, var(--aivb-accent, #3b82f6)));
    --aivb-rich-page: var(--aivb-single-page, var(--aivb-ui-page, var(--aivb-surface, #fff)));
    --aivb-rich-text: var(--aivb-single-text, var(--aivb-ui-text, var(--aivb-text, #1e3a5f)));
    --aivb-rich-muted: var(--aivb-single-muted, var(--aivb-ui-muted, var(--aivb-muted, #64748b)));
    --aivb-rich-border: var(--aivb-single-border, color-mix(in srgb, var(--aivb-rich-primary) 16%, var(--aivb-rich-page)));
    --aivb-rich-radius: var(--aivb-single-radius, var(--aivb-ui-card-radius, var(--aivb-r, 8px)));
    display: block;
    max-width: 760px;
    margin: 0;
    padding: 0;
    color: var(--aivb-rich-text);
    font-family: var(--aivb-ui-body-font, inherit);
    font-size: 1rem;
    line-height: 1.66;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: anywhere;
}
.aivb-product-description-wrapper > * {
    margin-left: 0 !important;
    padding-right: 0 !important;
}
.aivb-product-description-wrapper > *:first-child { margin-top: 0 !important; }
.aivb-product-description-wrapper > *:last-child { margin-bottom: 0 !important; }
.aivb-product-description-wrapper p {
    margin: .56em 0 !important;
    color: var(--aivb-rich-text) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.64 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}
.aivb-product-description-wrapper p:first-child {
    font-size: 1rem !important;
}
.aivb-product-description-wrapper :is(h1, h2, h3, h4, h5, h6) {
    clear: both;
    margin: 1.25em 0 .45em !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--aivb-rich-text) !important;
    font-family: var(--aivb-ui-heading-font, inherit) !important;
    font-weight: 780 !important;
    letter-spacing: 0 !important;
    line-height: 1.28 !important;
    text-transform: none !important;
}
.aivb-product-description-wrapper h1 { font-size: clamp(1.45rem, 2vw, 1.9rem) !important; line-height: 1.2 !important; }
.aivb-product-description-wrapper h2 { font-size: clamp(1.28rem, 1.65vw, 1.58rem) !important; line-height: 1.24 !important; }
.aivb-product-description-wrapper h3 { font-size: clamp(1.12rem, 1.35vw, 1.32rem) !important; line-height: 1.3 !important; }
.aivb-product-description-wrapper :is(h4, h5, h6) { font-size: 1.02rem !important; line-height: 1.36 !important; }
.aivb-product-description-wrapper :is(h2, h3)::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--aivb-rich-primary);
}
.aivb-product-description-wrapper ul { list-style: disc outside !important; }
.aivb-product-description-wrapper ol { list-style: decimal outside !important; }
.aivb-product-description-wrapper :is(ul, ol) {
    margin: .72em 0 .9em !important;
    padding-left: 1.28em !important;
    padding-right: 0 !important;
    color: var(--aivb-rich-text) !important;
}
.aivb-product-description-wrapper li {
    margin: .34em 0 !important;
    padding-left: .18em !important;
    color: var(--aivb-rich-text) !important;
    font-size: 1rem !important;
    line-height: 1.62 !important;
}
.aivb-product-description-wrapper li::before { content: none !important; display: none !important; }
.aivb-product-description-wrapper li::marker { color: var(--aivb-rich-primary); font-weight: 800; }
.aivb-product-description-wrapper li :is(p, ul, ol) { margin-top: .4em !important; margin-bottom: .4em !important; }
.aivb-product-description-wrapper :is(strong, b) { color: var(--aivb-rich-text) !important; font-weight: 760 !important; }
.aivb-product-description-wrapper :is(em, i) { color: var(--aivb-rich-muted) !important; font-style: italic !important; }
.aivb-product-description-wrapper a {
    color: var(--aivb-rich-primary) !important;
    font-weight: 500 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    border-bottom: 0 !important;
}
.aivb-product-description-wrapper a:hover,
.aivb-product-description-wrapper a:focus-visible {
    color: var(--aivb-rich-accent) !important;
    text-decoration-thickness: 2px;
    outline: 0;
}
.aivb-product-description-wrapper :is(blockquote, .wp-block-quote) {
    margin: 1em 0 !important;
    padding: 14px 18px !important;
    border-left: 3px solid var(--aivb-rich-primary) !important;
    border-radius: 0 var(--aivb-rich-radius) var(--aivb-rich-radius) 0;
    background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)) !important;
    color: var(--aivb-rich-text) !important;
    box-shadow: none !important;
}
.aivb-product-description-wrapper blockquote p { margin: .35em 0 !important; }
.aivb-product-description-wrapper .wp-block-table {
    max-width: 100%;
    margin: 1.05em 0 !important;
    overflow-x: auto;
}
.aivb-product-description-wrapper :is(table, .wp-block-table table) {
    width: 100% !important;
    margin: 1.05em 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border: 1px solid var(--aivb-rich-border) !important;
    border-radius: var(--aivb-rich-radius);
    background: var(--aivb-rich-page) !important;
    box-shadow: none !important;
    font-size: .96rem !important;
}
.aivb-product-description-wrapper :is(th, td) {
    padding: 11px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--aivb-rich-border) !important;
    color: var(--aivb-rich-text) !important;
    line-height: 1.5 !important;
    text-align: left !important;
    vertical-align: top !important;
    white-space: normal !important;
}
.aivb-product-description-wrapper tr:last-child :is(th, td) { border-bottom: 0 !important; }
.aivb-product-description-wrapper :is(table tr:nth-child(even), table tr:hover) {
    background: transparent !important;
}
.aivb-product-description-wrapper th {
    background: color-mix(in srgb, var(--aivb-rich-primary) 7%, var(--aivb-rich-page)) !important;
    color: var(--aivb-rich-text) !important;
    font-size: .96rem !important;
    font-weight: 780 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.aivb-product-description-wrapper :is(figure, .wp-block-image, .wp-caption) {
    max-width: 100%;
    margin: 1em 0 !important;
}
.aivb-product-description-wrapper img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: var(--aivb-rich-radius);
    box-shadow: none !important;
}
.aivb-product-description-wrapper :is(figcaption, .wp-caption-text) {
    margin-top: .45em !important;
    color: var(--aivb-rich-muted) !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
}
.aivb-product-description-wrapper hr {
    height: 1px;
    margin: 1.15em 0 !important;
    border: 0 !important;
    background: var(--aivb-rich-border) !important;
}
.aivb-product-description-wrapper :is(code, kbd) {
    padding: .12em .36em;
    border: 1px solid var(--aivb-rich-border);
    border-radius: 5px;
    background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page));
    color: var(--aivb-rich-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
}
.aivb-product-description-wrapper pre {
    max-width: 100%;
    margin: 1em 0 !important;
    padding: 14px 16px !important;
    overflow: auto;
    border: 1px solid var(--aivb-rich-border) !important;
    border-radius: var(--aivb-rich-radius);
    background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)) !important;
    color: var(--aivb-rich-text) !important;
    box-shadow: none !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92rem !important;
    line-height: 1.55 !important;
}
.aivb-product-description-wrapper pre code {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: inherit;
}
.aivb-product-description-wrapper :is(dl, .wp-block-details) {
    margin: .95em 0 !important;
    color: var(--aivb-rich-text) !important;
}
.aivb-product-description-wrapper dt {
    margin-top: .72em;
    color: var(--aivb-rich-text) !important;
    font-weight: 780 !important;
}
.aivb-product-description-wrapper dd {
    margin: .25em 0 .72em 1.1em;
    color: var(--aivb-rich-muted) !important;
    line-height: 1.62 !important;
}
.aivb-product-description-wrapper details {
    padding: 12px 14px;
    border: 1px solid var(--aivb-rich-border);
    border-radius: var(--aivb-rich-radius);
    background: var(--aivb-rich-page);
}
.aivb-product-description-wrapper summary {
    cursor: pointer;
    color: var(--aivb-rich-text);
    font-weight: 780;
}
.aivb-product-description-wrapper .alignleft { float: left; margin: .35em 1em .7em 0 !important; }
.aivb-product-description-wrapper .alignright { float: right; margin: .35em 0 .7em 1em !important; }
.aivb-product-description-wrapper .aligncenter { margin-inline: auto !important; }

/* Default Loop cards: scoped to the opt-in preset so existing custom Loop HTML remains untouched. */
.aivb-loop-card[data-aivb-card-preset="default"]{display:flex;flex-direction:column;overflow:hidden;background:var(--aivb-loop-page,#fff);color:var(--aivb-loop-text,#1e3a5f);border:1px solid color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 20%,#dbeafe);border-radius:var(--aivb-loop-card-radius,12px);box-shadow:var(--aivb-loop-shadow,0 8px 20px rgba(15,23,42,.12));transition:transform .2s ease,box-shadow .2s ease}
.aivb-loop-card[data-aivb-card-preset="default"]:hover{transform:translateY(-3px);box-shadow:0 14px 30px color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 18%,transparent)}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__media{overflow:hidden;background:#eff6ff}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__image{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;border-radius:var(--aivb-loop-image-radius,8px)!important}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__image--product{aspect-ratio:1/1!important}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__image--post{aspect-ratio:16/9!important}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__image[src=""]{display:none!important}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__media:has(.aivb-loop-card__image[src=""]){display:none}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__body{display:flex;flex:1;flex-direction:column;gap:12px;padding:18px}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__eyebrow,.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__rating,.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--aivb-loop-muted,#64748b);font-size:.875rem}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__title{margin:0;font-size:clamp(1.15rem,1rem + .35vw,1.35rem);line-height:1.35;font-weight:700}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__title a{color:inherit;text-decoration:none}.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__title a:hover{color:var(--aivb-loop-primary,#60a5fa)}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__summary{color:var(--aivb-loop-muted,#64748b);font-size:.98rem;line-height:1.6}.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__summary p{margin:0}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}.aivb-loop-price,.aivb-loop-card[data-aivb-card-preset="default"] .price{font-size:1.2rem;font-weight:750;color:var(--aivb-loop-primary,#60a5fa)}.aivb-loop-regular-price{color:var(--aivb-loop-muted,#64748b);text-decoration:line-through}.aivb-loop-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:.75rem;font-weight:700}.aivb-loop-badge--sale{background:color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 15%,#fff);color:var(--aivb-loop-primary,#60a5fa)}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-taxonomy a{color:var(--aivb-loop-primary,#60a5fa);text-decoration:none}.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-stock{font-weight:650}.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-stock--outofstock{color:#b91c1c}.aivb-loop-rating .star-rating{margin:0;color:#f59e0b}.aivb-loop-review-count{font-size:.84rem}
.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__actions{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:4px}.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-actions{display:contents}.aivb-loop-card[data-aivb-card-preset="default"] :is(.aivb-loop-button,.aivb-loop-add-to-cart .button){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:var(--aivb-loop-button-height,48px)!important;padding:0 18px!important;border:1px solid var(--aivb-loop-primary,#60a5fa)!important;border-radius:var(--aivb-loop-button-radius,8px)!important;background:var(--aivb-loop-primary,#60a5fa)!important;color:#fff!important;font-size:.94rem!important;font-weight:700!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important}.aivb-loop-card[data-aivb-card-preset="default"] :is(.aivb-loop-button,.aivb-loop-add-to-cart .button):hover{filter:brightness(.93)}.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-button--secondary{background:transparent!important;color:var(--aivb-loop-primary,#60a5fa)!important}
.aivb-loop-card[data-aivb-card-preset="default"] :is(.aivb-loop-button--outline,.aivb-loop-add-to-cart.aivb-loop-button--outline .button){background:transparent!important;color:var(--aivb-loop-primary,#60a5fa)!important}.aivb-loop-card[data-aivb-card-preset="default"] :is(.aivb-loop-button--ghost,.aivb-loop-add-to-cart.aivb-loop-button--ghost .button){background:transparent!important;border-color:transparent!important;color:var(--aivb-loop-primary,#60a5fa)!important}
@media(max-width:640px){.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__body{padding:16px}.aivb-loop-card[data-aivb-card-preset="default"] .aivb-loop-card__actions>*{flex:1 1 auto}}

/* AI reference-card guardrails: preserve the generated hierarchy, but never let a screenshot conversion become a page-sized block. */
.aivb-reference-loop-card[data-aivb-reference-card="1"]{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;width:100%!important;max-width:440px!important;min-width:0!important;margin:0 auto!important;overflow:hidden!important;background:var(--aivb-loop-page,#fff)!important;color:var(--aivb-loop-text,#1e3a5f)!important;border:1px solid color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 18%,#dbeafe)!important;border-radius:var(--aivb-loop-card-radius,12px)!important;box-shadow:var(--aivb-loop-shadow,0 8px 20px rgba(15,23,42,.12))!important}
.aivb-reference-loop-card[data-aivb-reference-card="1"] *{box-sizing:border-box}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__image{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:300px!important;object-fit:cover!important;margin:0!important;background:#f8fafc;border-radius:var(--aivb-loop-image-radius,8px)!important}.aivb-reference-loop-card--post[data-aivb-reference-card="1"] .aivb-reference-loop-card__image{aspect-ratio:16/9!important;object-fit:cover!important}.aivb-reference-loop-card--product[data-aivb-reference-card="1"] .aivb-reference-loop-card__image{aspect-ratio:1/1!important;object-fit:cover!important}
.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__taxonomy{display:flex;flex-wrap:wrap;gap:6px;margin:16px 20px 0;color:var(--aivb-loop-primary,#60a5fa);font-size:.78rem;font-weight:750;line-height:1.2}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__taxonomy .aivb-loop-taxonomy{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 12%,#fff)}
.aivb-reference-loop-card[data-aivb-reference-card="1"] :is(h1,h2,h3,h4,h5,h6,.aivb-reference-loop-card__title){margin:18px 20px 0!important;color:var(--aivb-loop-text,#1e3a5f)!important;font-family:inherit!important;font-size:clamp(1.2rem,1.05rem + .5vw,1.5rem)!important;line-height:1.35!important}.aivb-reference-loop-card[data-aivb-reference-card="1"] :is(p,.aivb-reference-loop-card__summary){margin:12px 20px!important;color:var(--aivb-loop-muted,#64748b)!important;font-family:inherit!important;line-height:1.6!important}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__price{display:block;margin:14px 20px;color:var(--aivb-loop-primary,#60a5fa);font-size:1.2rem;font-weight:750}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__rating{display:flex;align-items:center;gap:6px;margin:12px 20px 0;color:var(--aivb-loop-muted,#64748b)}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__actions{display:flex;flex-wrap:wrap;gap:10px;margin:8px 20px 20px}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__actions :is(.aivb-loop-button,.aivb-loop-add-to-cart .button){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:var(--aivb-loop-button-height,48px)!important;padding:0 18px!important;background:var(--aivb-loop-primary,#60a5fa)!important;border:1px solid var(--aivb-loop-primary,#60a5fa)!important;border-radius:var(--aivb-loop-button-radius,8px)!important;color:#fff!important;font-weight:700!important;text-decoration:none!important}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__link{display:inline-flex;align-items:center;justify-content:center;min-height:var(--aivb-loop-button-height,48px);margin:8px 20px 20px;color:#fff!important;background:var(--aivb-loop-primary,#60a5fa)!important;border:1px solid var(--aivb-loop-primary,#60a5fa)!important;border-radius:var(--aivb-loop-button-radius,8px)!important;text-decoration:none!important;font-weight:700}
.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__specs{display:grid;gap:0;margin:14px 20px;padding:0;border:1px solid color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 18%,#dbeafe);border-radius:var(--aivb-loop-image-radius,8px);overflow:hidden}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__spec{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;border-bottom:1px solid color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 12%,#dbeafe)}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__spec:last-child{border-bottom:0}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__spec dt{color:var(--aivb-loop-muted,#64748b);font-weight:600}.aivb-reference-loop-card[data-aivb-reference-card="1"] .aivb-reference-loop-card__spec dd{margin:0;text-align:right;font-weight:700}.aivb-loop-button--inquiry{background:var(--aivb-loop-primary,#60a5fa)!important;border-color:var(--aivb-loop-primary,#60a5fa)!important;color:#fff!important}
.aivb-loop-preview-surface{display:grid;place-items:start center;min-height:160px;padding:24px;margin-top:18px;border:1px dashed color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 32%,#dbeafe);border-radius:var(--aivb-loop-card-radius,12px);background:color-mix(in srgb,var(--aivb-loop-primary,#60a5fa) 4%,#fff)}

/* ========== 容器样式 ========== */
.aivb-dynamic-list {
    margin: 30px 0;
    padding: 0;
    /* CSS变量：主题色，会被JS动态设置 */
    --aivb-theme-color: var(--aivb-primary, #60a5fa);
    --aivb-theme-color-hover: var(--aivb-accent, #3b82f6);
    --aivb-theme-color-light: color-mix(in srgb, var(--aivb-theme-color) 12%, transparent);
}

/* Legacy shortcodes use the same public palette as Query, Loop and fields.
   These variables deliberately do not consult the active WordPress theme. */
.aivb-dynamic-list {
    --aivb-theme-color: var(--aivb-primary, #60a5fa);
    --aivb-theme-color-hover: var(--aivb-accent, #3b82f6);
    --aivb-theme-color-light: color-mix(in srgb, var(--aivb-theme-color) 12%, var(--aivb-surface, #ffffff));
    --aivb-legacy-surface: var(--aivb-surface, #ffffff);
    --aivb-legacy-text: var(--aivb-text, #1e3a5f);
    --aivb-legacy-muted: var(--aivb-muted, #64748b);
    --aivb-legacy-border: var(--aivb-border, color-mix(in srgb, var(--aivb-theme-color) 18%, var(--aivb-legacy-surface)));
    --aivb-legacy-radius: var(--aivb-ui-card-radius, 8px);
    --aivb-legacy-button-radius: var(--aivb-ui-button-radius, 6px);
}

/* ========== 筛选器样式 ========== */
.aivb-filters {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.aivb-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aivb-theme-color), var(--aivb-theme-color-hover));
    border-radius: 16px 16px 0 0;
}

.aivb-filters-title {
    margin: 0 0 28px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.aivb-filters-title::before {
    content: '🎯';
    font-size: 1.4rem;
}

.aivb-filters-grid {
    display: grid;
    grid-template-rows: auto auto; /* 第一行：搜索；第二行：其余筛选 */
    grid-auto-flow: column;        /* 其余筛选横向扩展为一行 */
    grid-auto-columns: 1fr;        /* 其余筛选平分宽度 */
    gap: 16px 20px;
    margin-bottom: 20px;
}

/* 搜索框独占第一行整行 */
.aivb-filter-search {
    grid-row: 1;
    grid-column: 1 / -1;
}

/* 其余筛选放在第二行，自动均分 */
.aivb-filter-group:not(.aivb-filter-search) {
    grid-row: 2;
}

.aivb-filter-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.aivb-filter-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aivb-filter-group label::before {
    content: '▶';
    font-size: 0.6rem;
    color: var(--aivb-theme-color);
}

/* 搜索框特殊样式 */
.aivb-filter-search {
    grid-column: 1 / -1;
}

.aivb-filter-search label::before {
    content: '';
}

.aivb-filter-search .aivb-filter {
    font-size: 15px;
    padding: 14px 20px 14px 48px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
}

.aivb-filter {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aivb-filter:hover {
    border-color: var(--aivb-theme-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.aivb-filter:focus {
    outline: none;
    border-color: var(--aivb-theme-color);
    box-shadow: 0 0 0 4px var(--aivb-theme-color-light), 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.aivb-filter[multiple] {
    min-height: 120px;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

/* 价格范围和日期范围 */
.aivb-price-range,
.aivb-date-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}

.aivb-price-range span,
.aivb-date-range span {
    text-align: center;
    color: #9ca3af;
    font-weight: 700;
    font-size: 1rem;
}

/* 筛选器操作按钮 */
.aivb-filter-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

/* ========== 按钮样式 ========== */
.aivb-btn {
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.aivb-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.aivb-btn:hover::before {
    width: 300px;
    height: 300px;
}

.aivb-btn-primary {
    background: linear-gradient(135deg, var(--aivb-theme-color) 0%, var(--aivb-theme-color-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.aivb-btn-primary:hover {
    background: linear-gradient(135deg, var(--aivb-theme-color-hover) 0%, var(--aivb-theme-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.aivb-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.aivb-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.aivb-btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--aivb-theme-color);
    color: var(--aivb-theme-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aivb-btn-secondary:active {
    transform: translateY(0);
}

.aivb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========== 列表容器 ========== */
.aivb-list-container {
    min-height: 300px;
    position: relative;
}

/* ========== 加载状态 ========== */
.aivb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
}

.aivb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--aivb-theme-color);
    border-radius: 50%;
    animation: aivb-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes aivb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aivb-loading p {
    margin: 0;
    font-size: 16px;
}

/* ========== 错误状态 ========== */
.aivb-error {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.aivb-error p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.aivb-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.aivb-notice.aivb-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ========== 分页样式 ========== */
.aivb-pagination {
    margin-top: 30px;
    padding: 20px 0;
}

.aivb-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.aivb-pagination-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.aivb-pagination-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.aivb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.aivb-loop-wrapper.aivb-loop-loading {
    opacity: 0.72;
    pointer-events: none;
}

.aivb-page-btn:hover {
    background: var(--aivb-theme-color-light);
    border-color: var(--aivb-theme-color);
    color: var(--aivb-theme-color);
}

.aivb-page-btn.aivb-active {
    background: var(--aivb-theme-color);
    color: white;
    border-color: var(--aivb-theme-color);
    cursor: default;
}

.aivb-page-btn.aivb-active:hover {
    background: var(--aivb-theme-color-hover);
    border-color: var(--aivb-theme-color-hover);
    color: white;
}

.aivb-page-btn.aivb-prev,
.aivb-page-btn.aivb-next {
    font-weight: 600;
}

.aivb-pagination-dots {
    padding: 0 5px;
    color: #999;
    font-weight: bold;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .aivb-filters {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .aivb-filters-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .aivb-filters-grid {
        grid-template-rows: auto;
        grid-auto-flow: row; /* 小屏改为纵向堆叠 */
        grid-auto-columns: unset;
        gap: 14px;
    }

    .aivb-filter-actions {
        flex-direction: column;
        gap: 12px;
    }

    .aivb-btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .aivb-pagination-buttons {
        gap: 5px;
    }

    .aivb-page-btn {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .aivb-page-btn.aivb-prev,
    .aivb-page-btn.aivb-next {
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .aivb-filters {
        padding: 20px 16px;
    }

    .aivb-filters-title {
        font-size: 1.2rem;
    }

    .aivb-filters-title::before {
        font-size: 1.2rem;
    }

    .aivb-filter {
        padding: 10px 14px;
    }

    .aivb-pagination-buttons {
        gap: 4px;
    }

    .aivb-page-btn {
        min-width: 32px;
        height: 32px;
        padding: 5px 8px;
        font-size: 12px;
    }

    /* 在小屏幕上隐藏一些页码 */
    .aivb-pagination-buttons .aivb-page-btn:not(.aivb-active):not(.aivb-prev):not(.aivb-next) {
        display: none;
    }

    .aivb-pagination-buttons .aivb-page-btn.aivb-active {
        display: inline-block;
    }

    /* 显示当前页附近的页码 */
    .aivb-pagination-buttons .aivb-page-btn.aivb-active + .aivb-page-btn,
    .aivb-pagination-buttons .aivb-page-btn:has(+ .aivb-active) {
        display: inline-block;
    }
}

/* ========== 平滑过渡 ========== */
.aivb-list-container {
    transition: opacity 0.3s ease;
}

.aivb-list-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========== 无结果提示 ========== */
.no-products,
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* ========== 确保产品和文章网格在动态列表中正确显示 ========== */
.aivb-dynamic-list .custom-product-grid,
.aivb-dynamic-list .custom-post-grid {
    margin: 0;
}

/* ========== 可访问性增强 ========== */
.aivb-btn:focus,
.aivb-page-btn:focus {
    outline: 2px solid var(--aivb-theme-color);
    outline-offset: 2px;
}

/* 减少动画效果（尊重用户偏好） */
@media (prefers-reduced-motion: reduce) {
    .aivb-spinner,
    .aivb-btn,
    .aivb-page-btn,
    .aivb-filter,
    .aivb-list-container {
        animation: none;
        transition: none;
    }
}

/* ========== 产品描述样式 ========== */
.aivb-product-description-wrapper {
    max-width: 100%;
    margin: 40px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #2d3748;
    position: relative;
}

.aivb-product-description-wrapper > * {
    margin-left: 24px;
    padding-right: 20px;
}

.aivb-product-description-wrapper p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    text-align: justify;
    letter-spacing: 0.01em;
}

.aivb-product-description-wrapper p:last-child {
    margin-bottom: 0;
}

.aivb-product-description-wrapper h1,
.aivb-product-description-wrapper h2,
.aivb-product-description-wrapper h3,
.aivb-product-description-wrapper h4,
.aivb-product-description-wrapper h5,
.aivb-product-description-wrapper h6 {
    margin: 32px 0 16px 0;
    margin-left: 24px;
    padding-right: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.aivb-product-description-wrapper h1 {
    font-size: 28px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

.aivb-product-description-wrapper h2 {
    font-size: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.aivb-product-description-wrapper h3 {
    font-size: 20px;
}

.aivb-product-description-wrapper h4 {
    font-size: 18px;
}

.aivb-product-description-wrapper ul,
.aivb-product-description-wrapper ol {
    margin: 20px 0;
    margin-left: 24px;
    padding-left: 24px;
    padding-right: 20px;
}

.aivb-product-description-wrapper ul {
    list-style: none;
    padding-left: 0;
}

.aivb-product-description-wrapper ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.aivb-product-description-wrapper ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.8;
}

.aivb-product-description-wrapper ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.aivb-product-description-wrapper ol li {
    counter-increment: item;
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.aivb-product-description-wrapper ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.8;
}

.aivb-product-description-wrapper a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.aivb-product-description-wrapper a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.aivb-product-description-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    margin-left: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.aivb-product-description-wrapper blockquote {
    margin: 24px 0;
    margin-left: 24px;
    padding: 20px 24px;
    padding-right: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-style: italic;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.aivb-product-description-wrapper code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #dc2626;
}

.aivb-product-description-wrapper pre {
    margin: 24px 0;
    margin-left: 24px;
    padding: 20px;
    padding-right: 20px;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aivb-product-description-wrapper pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 14px;
}

.aivb-product-description-wrapper table {
    width: 100%;
    margin: 24px 0;
    margin-left: 24px;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aivb-product-description-wrapper table th,
.aivb-product-description-wrapper table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.aivb-product-description-wrapper table th {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.aivb-product-description-wrapper table tr:last-child td {
    border-bottom: none;
}

.aivb-product-description-wrapper table tr:nth-child(even) {
    background: #f9fafb;
}

.aivb-product-description-wrapper table tr:hover {
    background: #f0f9ff;
    transition: background 0.2s ease;
}

/* ========== 博客文章内容样式 ========== */
.aivb-post-content-wrapper {
    max-width: 100%;
    margin: 40px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.85;
    color: #2d3748;
    position: relative;
}

.aivb-post-content-wrapper > * {
    margin-left: 24px;
    padding-right: 20px;
}

.aivb-post-content-wrapper p {
    margin: 0 0 22px 0;
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
    text-align: justify;
    letter-spacing: 0.01em;
}

.aivb-post-content-wrapper p:last-child {
    margin-bottom: 0;
}

.aivb-post-content-wrapper h1,
.aivb-post-content-wrapper h2,
.aivb-post-content-wrapper h3,
.aivb-post-content-wrapper h4,
.aivb-post-content-wrapper h5,
.aivb-post-content-wrapper h6 {
    margin: 36px 0 18px 0;
    margin-left: 24px;
    padding-right: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.aivb-post-content-wrapper h1 {
    font-size: 32px;
    border-bottom: 3px solid #e5e7eb;
    padding-bottom: 16px;
    margin-top: 48px;
}

.aivb-post-content-wrapper h2 {
    font-size: 26px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-top: 40px;
}

.aivb-post-content-wrapper h3 {
    font-size: 22px;
    margin-top: 32px;
}

.aivb-post-content-wrapper h4 {
    font-size: 19px;
    margin-top: 28px;
}

.aivb-post-content-wrapper ul,
.aivb-post-content-wrapper ol {
    margin: 24px 0;
    margin-left: 24px;
    padding-left: 24px;
    padding-right: 20px;
}

.aivb-post-content-wrapper ul {
    list-style: none;
    padding-left: 0;
}

.aivb-post-content-wrapper ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    line-height: 1.9;
}

.aivb-post-content-wrapper ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.9;
}

.aivb-post-content-wrapper ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.aivb-post-content-wrapper ol li {
    counter-increment: item;
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
    line-height: 1.9;
}

.aivb-post-content-wrapper ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.9;
}

.aivb-post-content-wrapper a {
    color: #10b981;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    padding-bottom: 2px;
}

.aivb-post-content-wrapper a:hover {
    color: #059669;
    border-bottom-color: #059669;
}

.aivb-post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 28px 0;
    margin-left: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
}

.aivb-post-content-wrapper blockquote {
    margin: 28px 0;
    margin-left: 24px;
    padding: 24px 28px;
    padding-right: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #10b981;
    border-radius: 10px;
    font-style: italic;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    position: relative;
}

.aivb-post-content-wrapper blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 48px;
    color: #10b981;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.aivb-post-content-wrapper code {
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #dc2626;
    border: 1px solid #e5e7eb;
}

.aivb-post-content-wrapper pre {
    margin: 28px 0;
    margin-left: 24px;
    padding: 24px;
    padding-right: 20px;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #374151;
}

.aivb-post-content-wrapper pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 15px;
    border: none;
}

.aivb-post-content-wrapper table {
    width: 100%;
    margin: 28px 0;
    margin-left: 24px;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.aivb-post-content-wrapper table th,
.aivb-post-content-wrapper table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.aivb-post-content-wrapper table th {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.aivb-post-content-wrapper table tr:last-child td {
    border-bottom: none;
}

.aivb-post-content-wrapper table tr:nth-child(even) {
    background: #f0fdf4;
}

.aivb-post-content-wrapper table tr:hover {
    background: #dcfce7;
    transition: background 0.2s ease;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .aivb-product-description-wrapper,
    .aivb-post-content-wrapper {
        margin: 30px 0;
    }
    
    .aivb-product-description-wrapper::before,
    .aivb-post-content-wrapper::before {
        width: 3px;
    }
    
    .aivb-product-description-wrapper > *,
    .aivb-post-content-wrapper > * {
        margin-left: 16px;
        padding-right: 12px;
    }
    
    .aivb-product-description-wrapper p,
    .aivb-post-content-wrapper p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .aivb-product-description-wrapper p:first-child,
    .aivb-post-content-wrapper p:first-child {
        font-size: 17px;
    }
    
    .aivb-product-description-wrapper h1,
    .aivb-post-content-wrapper h1 {
        font-size: 24px;
    }
    
    .aivb-product-description-wrapper h2,
    .aivb-post-content-wrapper h2 {
        font-size: 20px;
    }
    
    .aivb-product-description-wrapper h3,
    .aivb-post-content-wrapper h3 {
        font-size: 18px;
    }
    
    .aivb-product-description-wrapper img,
    .aivb-post-content-wrapper img {
        margin-left: 16px;
        border-radius: 8px;
    }
    
    .aivb-product-description-wrapper blockquote,
    .aivb-post-content-wrapper blockquote {
        margin-left: 16px;
        padding: 16px 20px;
        padding-right: 12px;
    }
    
    .aivb-product-description-wrapper pre,
    .aivb-post-content-wrapper pre {
        margin-left: 16px;
        padding: 16px;
        padding-right: 12px;
    }
    
    .aivb-product-description-wrapper table,
    .aivb-post-content-wrapper table {
        margin-left: 16px;
        font-size: 14px;
    }
    
    .aivb-product-description-wrapper table th,
    .aivb-product-description-wrapper table td,
    .aivb-post-content-wrapper table th,
    .aivb-post-content-wrapper table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .aivb-product-description-wrapper,
    .aivb-post-content-wrapper {
        margin: 24px 0;
    }
    
    .aivb-product-description-wrapper > *,
    .aivb-post-content-wrapper > * {
        margin-left: 12px;
        padding-right: 8px;
    }
    
    .aivb-product-description-wrapper p,
    .aivb-post-content-wrapper p {
        font-size: 14px;
        line-height: 1.75;
        text-align: left;
    }
    
    .aivb-product-description-wrapper p:first-child,
    .aivb-post-content-wrapper p:first-child {
        font-size: 16px;
    }
    
    .aivb-product-description-wrapper h1,
    .aivb-post-content-wrapper h1 {
        font-size: 22px;
    }
    
    .aivb-product-description-wrapper h2,
    .aivb-post-content-wrapper h2 {
        font-size: 19px;
    }
    
    .aivb-product-description-wrapper h3,
    .aivb-post-content-wrapper h3 {
        font-size: 17px;
    }
    
    .aivb-product-description-wrapper ul li,
    .aivb-product-description-wrapper ol li,
    .aivb-post-content-wrapper ul li,
    .aivb-post-content-wrapper ol li {
        padding-left: 24px;
        margin-bottom: 10px;
    }
    
    .aivb-product-description-wrapper blockquote,
    .aivb-post-content-wrapper blockquote {
        margin-left: 12px;
        padding: 14px 16px;
        padding-right: 8px;
        font-size: 15px;
    }
    
    .aivb-product-description-wrapper pre,
    .aivb-post-content-wrapper pre {
        margin-left: 12px;
        padding: 12px;
        padding-right: 8px;
        font-size: 13px;
    }
    
    .aivb-product-description-wrapper table,
    .aivb-post-content-wrapper table {
        margin-left: 12px;
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    
    .aivb-product-description-wrapper table th,
    .aivb-product-description-wrapper table td,
    .aivb-post-content-wrapper table th,
    .aivb-post-content-wrapper table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
}

/* Final compatibility layer for the old dynamic-list renderer. The selectors
   are deliberately late so historical inline/card styles cannot fall back to
   a WordPress theme palette. */
.aivb-dynamic-list :is(a, a:hover, a:focus, a:visited) { text-decoration: none !important; }
.aivb-dynamic-list :is(.custom-product-grid, .custom-post-grid) { gap: 20px !important; padding: 20px !important; color: var(--aivb-legacy-text); }
.aivb-dynamic-list :is(.product-item, .custom-post-item) { overflow: hidden; background: var(--aivb-legacy-surface) !important; color: var(--aivb-legacy-text); border: 1px solid var(--aivb-legacy-border); border-radius: var(--aivb-legacy-radius) !important; box-shadow: var(--aivb-ui-shadow, 0 8px 20px rgba(15,23,42,.12)) !important; }
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.product-contents, .custom-post-text) { color: var(--aivb-legacy-text); }
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.aivb-legacy-title-link, .custom-post-title a) { color: var(--aivb-legacy-text) !important; }
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.aivb-legacy-title-link, .custom-post-title a):hover { color: var(--aivb-theme-color) !important; }
.aivb-dynamic-list :is(.aivb-legacy-price, .price) { color: var(--aivb-theme-color) !important; }
.aivb-dynamic-list :is(.aivb-legacy-excerpt, .custom-post-excerpt, .custom-post-meta-data) { color: var(--aivb-legacy-muted) !important; }
.aivb-dynamic-list :is(.aivb-legacy-badge, .onsale) { background: color-mix(in srgb, var(--aivb-theme-color) 14%, var(--aivb-legacy-surface)) !important; border: 1px solid color-mix(in srgb, var(--aivb-theme-color) 28%, var(--aivb-legacy-surface)); color: var(--aivb-theme-color) !important; border-radius: var(--aivb-legacy-button-radius) !important; }
.aivb-dynamic-list :is(.aivb-legacy-action, .product-button, .custom-post-read-more) { min-height: var(--aivb-ui-button-height, 48px); box-sizing: border-box; align-items: center; justify-content: center; background: var(--aivb-theme-color) !important; border: 1px solid var(--aivb-theme-color) !important; border-radius: var(--aivb-legacy-button-radius) !important; color: #fff !important; }
.aivb-dynamic-list :is(.aivb-legacy-action, .product-button, .custom-post-read-more):hover { background: var(--aivb-theme-color-hover) !important; border-color: var(--aivb-theme-color-hover) !important; color: #fff !important; }
.aivb-dynamic-list :is(.product-item, .custom-post-item) img { border-radius: 0; }
.aivb-dynamic-list :is(.product-item, .custom-post-item) :is(.product-contents, .custom-post-text, .custom-post-meta-data) { border-color: var(--aivb-legacy-border) !important; }
@media (max-width: 767px) {
    .aivb-dynamic-list { box-sizing: border-box; padding: 16px 14px 28px; }
    .aivb-dynamic-list :is(.custom-product-grid, .custom-post-grid) { gap: 16px !important; padding: 0 !important; }
}

/* Final product detail rich text guard. This is intentionally last for the
   legacy frontend bundle so theme or older AIVB description styles cannot win. */
.aivb-product-description-wrapper {
    --aivb-rich-primary: var(--aivb-single-primary, var(--aivb-ui-primary, var(--aivb-primary, #60a5fa)));
    --aivb-rich-accent: var(--aivb-single-accent, var(--aivb-ui-accent, var(--aivb-accent, #3b82f6)));
    --aivb-rich-page: var(--aivb-single-page, var(--aivb-ui-page, var(--aivb-surface, #fff)));
    --aivb-rich-text: var(--aivb-single-text, var(--aivb-ui-text, var(--aivb-text, #1e3a5f)));
    --aivb-rich-muted: var(--aivb-single-muted, var(--aivb-ui-muted, var(--aivb-muted, #64748b)));
    --aivb-rich-border: var(--aivb-single-border, color-mix(in srgb, var(--aivb-rich-primary) 16%, var(--aivb-rich-page)));
    --aivb-rich-radius: var(--aivb-single-radius, var(--aivb-ui-card-radius, var(--aivb-r, 8px)));
    display: block;
    max-width: 760px;
    margin: 0;
    padding: 0;
    color: var(--aivb-rich-text);
    font-family: var(--aivb-ui-body-font, inherit);
    font-size: 1rem;
    line-height: 1.66;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: anywhere;
}
.aivb-product-description-wrapper > * { margin-left: 0 !important; padding-right: 0 !important; }
.aivb-product-description-wrapper > *:first-child { margin-top: 0 !important; }
.aivb-product-description-wrapper > *:last-child { margin-bottom: 0 !important; }
.aivb-product-description-wrapper p {
    margin: .56em 0 !important;
    color: var(--aivb-rich-text) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.64 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}
.aivb-product-description-wrapper p:first-child { font-size: 1rem !important; }
.aivb-product-description-wrapper :is(h1, h2, h3, h4, h5, h6) {
    clear: both;
    margin: 1.25em 0 .45em !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--aivb-rich-text) !important;
    font-family: var(--aivb-ui-heading-font, inherit) !important;
    font-weight: 780 !important;
    letter-spacing: 0 !important;
    line-height: 1.28 !important;
    text-transform: none !important;
}
.aivb-product-description-wrapper h1 { font-size: clamp(1.45rem, 2vw, 1.9rem) !important; line-height: 1.2 !important; }
.aivb-product-description-wrapper h2 { font-size: clamp(1.28rem, 1.65vw, 1.58rem) !important; line-height: 1.24 !important; }
.aivb-product-description-wrapper h3 { font-size: clamp(1.12rem, 1.35vw, 1.32rem) !important; line-height: 1.3 !important; }
.aivb-product-description-wrapper :is(h4, h5, h6) { font-size: 1.02rem !important; line-height: 1.36 !important; }
.aivb-product-description-wrapper :is(h2, h3)::after { content: ""; display: block; width: 42px; height: 2px; margin-top: 9px; border-radius: 999px; background: var(--aivb-rich-primary); }
.aivb-product-description-wrapper ul { list-style: disc outside !important; }
.aivb-product-description-wrapper ol { list-style: decimal outside !important; }
.aivb-product-description-wrapper :is(ul, ol) { margin: .72em 0 .9em !important; padding-left: 1.28em !important; padding-right: 0 !important; color: var(--aivb-rich-text) !important; }
.aivb-product-description-wrapper li { margin: .34em 0 !important; padding-left: .18em !important; color: var(--aivb-rich-text) !important; font-size: 1rem !important; line-height: 1.62 !important; }
.aivb-product-description-wrapper li::before { content: none !important; display: none !important; }
.aivb-product-description-wrapper li::marker { color: var(--aivb-rich-primary); font-weight: 800; }
.aivb-product-description-wrapper li :is(p, ul, ol) { margin-top: .4em !important; margin-bottom: .4em !important; }
.aivb-product-description-wrapper :is(strong, b) { color: var(--aivb-rich-text) !important; font-weight: 760 !important; }
.aivb-product-description-wrapper :is(em, i) { color: var(--aivb-rich-muted) !important; font-style: italic !important; }
.aivb-product-description-wrapper a { color: var(--aivb-rich-primary) !important; font-weight: 500 !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-bottom: 0 !important; }
.aivb-product-description-wrapper a:hover, .aivb-product-description-wrapper a:focus-visible { color: var(--aivb-rich-accent) !important; text-decoration-thickness: 2px; outline: 0; }
.aivb-product-description-wrapper :is(blockquote, .wp-block-quote) { margin: 1em 0 !important; padding: 14px 18px !important; border-left: 3px solid var(--aivb-rich-primary) !important; border-radius: 0 var(--aivb-rich-radius) var(--aivb-rich-radius) 0; background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)) !important; color: var(--aivb-rich-text) !important; box-shadow: none !important; }
.aivb-product-description-wrapper blockquote p { margin: .35em 0 !important; }
.aivb-product-description-wrapper .wp-block-table { max-width: 100%; margin: 1.05em 0 !important; overflow-x: auto; }
.aivb-product-description-wrapper :is(table, .wp-block-table table) { width: 100% !important; margin: 1.05em 0 !important; border-collapse: separate !important; border-spacing: 0 !important; overflow: hidden; border: 1px solid var(--aivb-rich-border) !important; border-radius: var(--aivb-rich-radius); background: var(--aivb-rich-page) !important; box-shadow: none !important; font-size: .96rem !important; }
.aivb-product-description-wrapper :is(th, td) { padding: 11px 13px !important; border: 0 !important; border-bottom: 1px solid var(--aivb-rich-border) !important; color: var(--aivb-rich-text) !important; line-height: 1.5 !important; text-align: left !important; vertical-align: top !important; white-space: normal !important; }
.aivb-product-description-wrapper tr:last-child :is(th, td) { border-bottom: 0 !important; }
.aivb-product-description-wrapper :is(table tr:nth-child(even), table tr:hover) { background: transparent !important; }
.aivb-product-description-wrapper th { background: color-mix(in srgb, var(--aivb-rich-primary) 7%, var(--aivb-rich-page)) !important; color: var(--aivb-rich-text) !important; font-size: .96rem !important; font-weight: 780 !important; letter-spacing: 0 !important; text-transform: none !important; }
.aivb-product-description-wrapper :is(figure, .wp-block-image, .wp-caption) { max-width: 100%; margin: 1em 0 !important; }
.aivb-product-description-wrapper img { display: block; max-width: 100% !important; height: auto !important; margin: 0 !important; border-radius: var(--aivb-rich-radius); box-shadow: none !important; }
.aivb-product-description-wrapper :is(figcaption, .wp-caption-text) { margin-top: .45em !important; color: var(--aivb-rich-muted) !important; font-size: .88rem !important; line-height: 1.45 !important; text-align: left !important; }
.aivb-product-description-wrapper hr { height: 1px; margin: 1.15em 0 !important; border: 0 !important; background: var(--aivb-rich-border) !important; }
.aivb-product-description-wrapper :is(code, kbd) { padding: .12em .36em; border: 1px solid var(--aivb-rich-border); border-radius: 5px; background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)); color: var(--aivb-rich-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.aivb-product-description-wrapper pre { max-width: 100%; margin: 1em 0 !important; padding: 14px 16px !important; overflow: auto; border: 1px solid var(--aivb-rich-border) !important; border-radius: var(--aivb-rich-radius); background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)) !important; color: var(--aivb-rich-text) !important; box-shadow: none !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem !important; line-height: 1.55 !important; }
.aivb-product-description-wrapper pre code { padding: 0; border: 0; background: transparent; font-size: inherit; }
.aivb-product-description-wrapper :is(dl, .wp-block-details) { margin: .95em 0 !important; color: var(--aivb-rich-text) !important; }
.aivb-product-description-wrapper dt { margin-top: .72em; color: var(--aivb-rich-text) !important; font-weight: 780 !important; }
.aivb-product-description-wrapper dd { margin: .25em 0 .72em 1.1em; color: var(--aivb-rich-muted) !important; line-height: 1.62 !important; }
.aivb-product-description-wrapper details { padding: 12px 14px; border: 1px solid var(--aivb-rich-border); border-radius: var(--aivb-rich-radius); background: var(--aivb-rich-page); }
.aivb-product-description-wrapper summary { cursor: pointer; color: var(--aivb-rich-text); font-weight: 780; }
.aivb-product-description-wrapper .alignleft { float: left; margin: .35em 1em .7em 0 !important; }
.aivb-product-description-wrapper .alignright { float: right; margin: .35em 0 .7em 1em !important; }
.aivb-product-description-wrapper .aligncenter { margin-inline: auto !important; }

/* Final blog detail rich text guard. Mirrors the product detail reading
   rhythm and keeps post content away from old hard-coded green styles. */
.aivb-post-content-wrapper {
    --aivb-rich-primary: var(--aivb-single-primary, var(--aivb-ui-primary, var(--aivb-primary, #60a5fa)));
    --aivb-rich-accent: var(--aivb-single-accent, var(--aivb-ui-accent, var(--aivb-accent, #3b82f6)));
    --aivb-rich-page: var(--aivb-single-page, var(--aivb-ui-page, var(--aivb-surface, #fff)));
    --aivb-rich-text: var(--aivb-single-text, var(--aivb-ui-text, var(--aivb-text, #1e3a5f)));
    --aivb-rich-muted: var(--aivb-single-muted, var(--aivb-ui-muted, var(--aivb-muted, #64748b)));
    --aivb-rich-border: var(--aivb-single-border, color-mix(in srgb, var(--aivb-rich-primary) 16%, var(--aivb-rich-page)));
    --aivb-rich-radius: var(--aivb-single-radius, var(--aivb-ui-card-radius, var(--aivb-r, 8px)));
    display: block;
    max-width: 760px;
    margin: 0;
    padding: 0;
    color: var(--aivb-rich-text);
    font-family: var(--aivb-ui-body-font, inherit);
    font-size: 1rem;
    line-height: 1.66;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: anywhere;
}
.aivb-post-content-wrapper > * { margin-left: 0 !important; padding-right: 0 !important; }
.aivb-post-content-wrapper > *:first-child { margin-top: 0 !important; }
.aivb-post-content-wrapper > *:last-child { margin-bottom: 0 !important; }
.aivb-post-content-wrapper p { margin: .58em 0 !important; color: var(--aivb-rich-text) !important; font-size: 1rem !important; font-weight: 400 !important; line-height: 1.66 !important; letter-spacing: 0 !important; text-align: left !important; }
.aivb-post-content-wrapper p:first-child { font-size: 1rem !important; }
.aivb-post-content-wrapper :is(h1, h2, h3, h4, h5, h6) { clear: both; margin: 1.3em 0 .48em !important; padding: 0 !important; border: 0 !important; color: var(--aivb-rich-text) !important; font-family: var(--aivb-ui-heading-font, inherit) !important; font-weight: 780 !important; letter-spacing: 0 !important; line-height: 1.28 !important; text-transform: none !important; }
.aivb-post-content-wrapper h1 { font-size: clamp(1.46rem, 2vw, 1.92rem) !important; line-height: 1.2 !important; }
.aivb-post-content-wrapper h2 { font-size: clamp(1.3rem, 1.68vw, 1.6rem) !important; line-height: 1.24 !important; }
.aivb-post-content-wrapper h3 { font-size: clamp(1.13rem, 1.35vw, 1.34rem) !important; line-height: 1.3 !important; }
.aivb-post-content-wrapper :is(h4, h5, h6) { font-size: 1.02rem !important; line-height: 1.36 !important; }
.aivb-post-content-wrapper :is(h2, h3)::after { content: ""; display: block; width: 42px; height: 2px; margin-top: 9px; border-radius: 999px; background: var(--aivb-rich-primary); }
.aivb-post-content-wrapper ul { list-style: disc outside !important; }
.aivb-post-content-wrapper ol { list-style: decimal outside !important; }
.aivb-post-content-wrapper :is(ul, ol) { margin: .74em 0 .92em !important; padding-left: 1.28em !important; padding-right: 0 !important; color: var(--aivb-rich-text) !important; }
.aivb-post-content-wrapper li { margin: .34em 0 !important; padding-left: .18em !important; color: var(--aivb-rich-text) !important; font-size: 1rem !important; line-height: 1.62 !important; }
.aivb-post-content-wrapper li::before { content: none !important; display: none !important; }
.aivb-post-content-wrapper li::marker { color: var(--aivb-rich-primary); font-weight: 800; }
.aivb-post-content-wrapper li :is(p, ul, ol) { margin-top: .4em !important; margin-bottom: .4em !important; }
.aivb-post-content-wrapper :is(strong, b) { color: var(--aivb-rich-text) !important; font-weight: 760 !important; }
.aivb-post-content-wrapper :is(em, i) { color: var(--aivb-rich-muted) !important; font-style: italic !important; }
.aivb-post-content-wrapper a { color: var(--aivb-rich-primary) !important; font-weight: 500 !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-bottom: 0 !important; }
.aivb-post-content-wrapper a:hover, .aivb-post-content-wrapper a:focus-visible { color: var(--aivb-rich-accent) !important; text-decoration-thickness: 2px; outline: 0; }
.aivb-post-content-wrapper :is(blockquote, .wp-block-quote) { position: relative; margin: 1em 0 !important; padding: 14px 18px !important; border-left: 3px solid var(--aivb-rich-primary) !important; border-radius: 0 var(--aivb-rich-radius) var(--aivb-rich-radius) 0; background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)) !important; color: var(--aivb-rich-text) !important; box-shadow: none !important; }
.aivb-post-content-wrapper blockquote::before { content: none !important; display: none !important; }
.aivb-post-content-wrapper blockquote p { margin: .35em 0 !important; }
.aivb-post-content-wrapper .wp-block-table { max-width: 100%; margin: 1.05em 0 !important; overflow-x: auto; }
.aivb-post-content-wrapper :is(table, .wp-block-table table) { width: 100% !important; margin: 1.05em 0 !important; border-collapse: separate !important; border-spacing: 0 !important; overflow: hidden; border: 1px solid var(--aivb-rich-border) !important; border-radius: var(--aivb-rich-radius); background: var(--aivb-rich-page) !important; box-shadow: none !important; font-size: .96rem !important; }
.aivb-post-content-wrapper :is(th, td) { padding: 11px 13px !important; border: 0 !important; border-bottom: 1px solid var(--aivb-rich-border) !important; color: var(--aivb-rich-text) !important; line-height: 1.5 !important; text-align: left !important; vertical-align: top !important; white-space: normal !important; }
.aivb-post-content-wrapper tr:last-child :is(th, td) { border-bottom: 0 !important; }
.aivb-post-content-wrapper :is(table tr:nth-child(even), table tr:hover) { background: transparent !important; }
.aivb-post-content-wrapper th { background: color-mix(in srgb, var(--aivb-rich-primary) 7%, var(--aivb-rich-page)) !important; color: var(--aivb-rich-text) !important; font-size: .96rem !important; font-weight: 780 !important; letter-spacing: 0 !important; text-transform: none !important; }
.aivb-post-content-wrapper :is(figure, .wp-block-image, .wp-caption) { max-width: 100%; margin: 1em 0 !important; }
.aivb-post-content-wrapper img { display: block; max-width: 100% !important; height: auto !important; margin: 0 !important; border-radius: var(--aivb-rich-radius); box-shadow: none !important; }
.aivb-post-content-wrapper :is(figcaption, .wp-caption-text) { margin-top: .45em !important; color: var(--aivb-rich-muted) !important; font-size: .88rem !important; line-height: 1.45 !important; text-align: left !important; }
.aivb-post-content-wrapper hr { height: 1px; margin: 1.15em 0 !important; border: 0 !important; background: var(--aivb-rich-border) !important; }
.aivb-post-content-wrapper :is(code, kbd) { padding: .12em .36em; border: 1px solid var(--aivb-rich-border); border-radius: 5px; background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)); color: var(--aivb-rich-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.aivb-post-content-wrapper pre { max-width: 100%; margin: 1em 0 !important; padding: 14px 16px !important; overflow: auto; border: 1px solid var(--aivb-rich-border) !important; border-radius: var(--aivb-rich-radius); background: color-mix(in srgb, var(--aivb-rich-primary) 5%, var(--aivb-rich-page)) !important; color: var(--aivb-rich-text) !important; box-shadow: none !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem !important; line-height: 1.55 !important; }
.aivb-post-content-wrapper pre code { padding: 0; border: 0; background: transparent; font-size: inherit; }
.aivb-post-content-wrapper :is(dl, .wp-block-details) { margin: .95em 0 !important; color: var(--aivb-rich-text) !important; }
.aivb-post-content-wrapper dt { margin-top: .72em; color: var(--aivb-rich-text) !important; font-weight: 780 !important; }
.aivb-post-content-wrapper dd { margin: .25em 0 .72em 1.1em; color: var(--aivb-rich-muted) !important; line-height: 1.62 !important; }
.aivb-post-content-wrapper details { padding: 12px 14px; border: 1px solid var(--aivb-rich-border); border-radius: var(--aivb-rich-radius); background: var(--aivb-rich-page); }
.aivb-post-content-wrapper summary { cursor: pointer; color: var(--aivb-rich-text); font-weight: 780; }
.aivb-post-content-wrapper .alignleft { float: left; margin: .35em 1em .7em 0 !important; }
.aivb-post-content-wrapper .alignright { float: right; margin: .35em 0 .7em 1em !important; }
.aivb-post-content-wrapper .aligncenter { margin-inline: auto !important; }
