/*
 * Xicart pages: home sections, header, footer, shop, product, checkout.
 *
 * Spec: visual-spec.md sections B (home layout) and D (shop / product / checkout).
 * The markup these rules target is produced by the shortcodes in functions.php.
 */

/* ==========================================================================
 * 1. Hero — dark, tech-flavoured (B5)
 * ========================================================================== */
.xc-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--xc-grad-hero);
    padding: 88px 0 96px;
    margin-bottom: var(--xc-s-10);
}
.xc-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center right;
    opacity: .30;
    mix-blend-mode: screen;
}
.xc-hero::before {
    /* faint circuit-board grid */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(122, 162, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 162, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.xc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 16, 23, .96) 0%, rgba(10, 16, 23, .84) 42%, rgba(10, 16, 23, .26) 100%);
}
.xc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--xc-s-9);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--xc-fluid);
}
.xc-hero__eyebrow {
    display: inline-block;
    font-size: var(--xc-fs-eyebrow);
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8fb6ff;
    padding: 7px 13px;
    border: 1px solid rgba(143, 182, 255, .34);
    border-radius: var(--xc-r-pill);
    margin-bottom: var(--xc-s-5);
}
.xc-hero__title {
    font-size: var(--xc-fs-display);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.035em;
    color: #fff;
    margin: 0 0 var(--xc-s-3);
    max-width: 13ch;
}
.xc-hero__sub {
    font-size: var(--xc-fs-h3);
    font-weight: 600;
    letter-spacing: -.02em;
    background: linear-gradient(92deg, #7fb2ff 0%, #5ee7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 var(--xc-s-5);
}
.xc-hero__desc {
    font-size: var(--xc-fs-body-lg);
    line-height: 1.65;
    color: var(--xc-text-inv-2);
    max-width: 52ch;
    margin: 0 0 var(--xc-s-7);
}
.xc-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--xc-s-3);
    margin-bottom: var(--xc-s-8);
}
.xc-hero__stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--xc-s-8);
    margin: 0;
    padding: var(--xc-s-6) 0 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.xc-hero__stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xc-hero__stats strong {
    font-size: var(--xc-fs-h4);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}
.xc-hero__stats span {
    font-size: var(--xc-fs-caption);
    color: var(--xc-text-inv-3);
}

/* floating product cards */
.xc-hero__media {
    position: relative;
    min-height: 380px;
}
.xc-hero__chip {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-radius: var(--xc-r-lg);
    padding: 12px;
    box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .62);
    text-decoration: none;
    transition: transform .35s var(--xc-ease), box-shadow .35s;
    animation: xcFloat 7s ease-in-out infinite;
}
.xc-hero__chip img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    border-radius: var(--xc-r-sm);
}
.xc-hero__chip-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xc-grad-brand);
    color: #fff;
    font-size: 34px;
    box-shadow: var(--xc-sh-brand);
}
.xc-hero__chip-label {
    font-size: var(--xc-fs-caption);
    font-weight: 600;
    color: var(--xc-text-1);
    white-space: nowrap;
}
.xc-hero__chip:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 34px 72px -18px rgba(0, 0, 0, .7);
}
.xc-hero__chip--1 { top: 4%;    left: 6%;  width: 172px; animation-delay: 0s; }
.xc-hero__chip--2 { top: 30%;   right: 2%; width: 158px; animation-delay: -2.2s; }
.xc-hero__chip--3 { bottom: 12%; left: 16%; width: 150px; animation-delay: -4.4s; }
.xc-hero__chip--4 { bottom: 2%; right: 22%; width: 140px; animation-delay: -1.1s; }
@keyframes xcFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ==========================================================================
 * 2. Feature strip (B6)
 * ========================================================================== */
.xc-features { margin-bottom: var(--xc-s-10); }
.xc-features__list {
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--xc-s-5);
    background: var(--xc-bg-soft);
    border: 1px solid var(--xc-border);
    border-radius: var(--xc-r-lg);
    padding: 26px 30px;
}
.xc-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}
.xc-feature__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--xc-primary-050);
    color: var(--xc-primary-500);
    font-size: 20px;
    transition: transform .25s var(--xc-ease), background-color .25s, color .25s;
}
.xc-feature:hover .xc-feature__icon {
    background: var(--xc-grad-brand);
    color: #fff;
    transform: scale(1.06);
}
.xc-feature__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.xc-feature__body strong {
    font-size: var(--xc-fs-body);
    font-weight: 600;
    color: var(--xc-text-1);
}
.xc-feature__body em {
    font-style: normal;
    font-size: var(--xc-fs-caption);
    color: var(--xc-text-3);
}

/* ==========================================================================
 * 3. Circular category tiles (B4)
 * ========================================================================== */
.xc-cat-tiles { margin-bottom: var(--xc-s-10); }
.xc-cat-tiles__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: var(--xc-s-4);
}
.xc-cat-tile a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 18px 8px;
    border-radius: var(--xc-r-lg);
    background: var(--xc-bg-soft);
    border: 1px solid var(--xc-border);
    transition: transform .25s var(--xc-ease), box-shadow .25s, border-color .25s, background-color .25s;
}
.xc-cat-tile a:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: var(--xc-primary-400);
    box-shadow: var(--xc-sh-brand);
}
.xc-cat-tile__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xc-grad-brand);
    color: #fff;
    font-size: 28px;
    box-shadow: var(--xc-sh-brand);
    transition: transform .25s;
}
.xc-cat-tile a:hover .xc-cat-tile__icon { transform: scale(1.06); }
.xc-cat-tile__name {
    font-size: var(--xc-fs-body-sm);
    font-weight: 600;
    color: var(--xc-text-1);
    text-align: center;
    line-height: 1.35;
}
.xc-cat-tile__count {
    font-size: var(--xc-fs-caption);
    font-weight: 500;
    color: var(--xc-text-3);
    text-align: center;
}

/* ==========================================================================
 * 3b. Latest Articles cards (home page module)
 * ========================================================================== */
.xc-articles{ margin: 0 0 var(--xc-s-10); }
.xc-articles__grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: var(--xc-container-xl); margin: 0 auto; padding: 0 var(--xc-fluid);
}
.xc-article-card{
  background: #fff; border: 1px solid var(--xc-border); border-radius: var(--xc-r-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.xc-article-card:hover{ transform: translateY(-4px); box-shadow: var(--xc-sh-3); border-color: var(--xc-primary-200); }
.xc-article-card__media{ display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--xc-bg-soft); }
.xc-article-card__img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.xc-article-card:hover .xc-article-card__img{ transform: scale(1.04); }
.xc-article-card__ph{
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 48px; font-weight: 700; color: var(--xc-primary-300);
  background: linear-gradient(145deg, #EAF3F9, #D8EBF6);
}
.xc-article-card__body{ padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.xc-article-card__title{ font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; }
.xc-article-card__title a{ color: var(--xc-ink); text-decoration: none; }
.xc-article-card__title a:hover{ color: var(--xc-brand); }
.xc-article-card__excerpt{ margin: 0; color: var(--xc-text-3); font-size: .92rem; line-height: 1.6; }
.xc-article-card__more{
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--xc-primary-500); text-decoration: none; font-size: .9rem;
}
.xc-article-card__more:hover{ color: var(--xc-primary-600); }
@media (max-width: 991px){ .xc-articles__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px){ .xc-articles__grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
 * 4. Header / footer (B1 / B2 / B3 / B12 / B13)
 * ========================================================================== */

/* top bar */
.header-top,
.header-bottom {
    font-size: var(--xc-fs-body-sm);
}
.header-top {
    background: var(--xc-ink-800);
    color: var(--xc-text-inv-2);
}
.header-top a { color: var(--xc-text-inv-2); }
.header-top a:hover { color: #fff; }
.header-top .porto-sicon-title { color: #fff; }

/* main header */
.sticky-header,
.header-middle {
    background: #fff;
}
.sticky-header {
    border-bottom: 1px solid var(--xc-border);
}
.header-logo img {
    max-height: 40px;
    width: auto;
}
.header-search .porto-searchform input[type="search"] {
    height: 44px;
    border-radius: var(--xc-r-pill);
    border: 1px solid var(--xc-border);
    background: var(--xc-bg-soft);
    padding: 0 18px;
    font-size: var(--xc-fs-body);
    color: var(--xc-text-1);
}
.header-search .porto-searchform input[type="search"]:focus {
    background: #fff;
    border-color: var(--xc-primary-400);
    box-shadow: 0 0 0 3px rgba(27, 92, 232, .10);
    outline: none;
}
.header-sicon a,
.header-sicon .porto-sicon-title {
    font-size: var(--xc-fs-body-sm);
    color: var(--xc-text-1);
}
.header-sicon i { font-size: 20px; }

/* category nav strip */
.header-bottom {
    background: var(--xc-bg-soft);
    border-bottom: 1px solid var(--xc-border);
}
.header-bottom .menu > li > a {
    font-size: var(--xc-fs-body);
    font-weight: 600;
    color: var(--xc-text-1);
    transition: color .18s ease;
}
.header-bottom .menu > li > a:hover { color: var(--xc-primary-600); }

/* footer */
.footer {
    background: var(--xc-ink-900);
    color: var(--xc-text-inv-3);
}
.footer .widget-title,
.footer .porto-heading-title {
    font-size: var(--xc-fs-h5);
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--xc-s-4);
}
.footer a {
    color: var(--xc-text-inv-3);
    font-size: var(--xc-fs-body);
    line-height: 2.1;
    transition: color .18s ease, transform .18s ease;
}
.footer a:hover {
    color: #fff;
    transform: translateX(2px);
}
.footer .porto-input-box input[type="email"] {
    background: transparent;
    border: 1px solid rgba(122, 162, 255, .22);
    color: #fff;
    height: 44px;
    border-radius: var(--xc-r-sm);
}
.footer .porto-input-box input[type="email"]::placeholder { color: rgba(255, 255, 255, .45); }
.footer-bottom {
    border-top: 1px solid rgba(122, 162, 255, .14);
    padding-top: var(--xc-s-6);
    font-size: var(--xc-fs-body-sm);
}
.footer .social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(122, 162, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer .social a:hover {
    background: var(--xc-primary-500);
    border-color: var(--xc-primary-500);
    color: #fff;
    transform: none;
}

/* ==========================================================================
 * 5. Shop page (D1)
 * ========================================================================== */
.woocommerce .products-container { margin-bottom: var(--xc-s-9); }
.woocommerce-result-count,
.woocommerce-ordering { font-size: var(--xc-fs-body-sm); color: var(--xc-text-3); }
.woocommerce-ordering select {
    height: 40px;
    border: 1px solid var(--xc-border-strong);
    border-radius: var(--xc-r-sm);
    padding: 0 34px 0 12px;
    font-size: var(--xc-fs-body-sm);
    color: var(--xc-text-1);
    background-color: #fff;
    box-shadow: none;
}
.woocommerce-ordering select:focus {
    border-color: var(--xc-primary-500);
    box-shadow: 0 0 0 3px var(--xc-primary-100);
    outline: none;
}
.woocommerce-pagination { margin-top: var(--xc-s-8); }
.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 6px;
    justify-content: center;
    border: none;
}
.woocommerce-pagination ul.page-numbers li { border: none; }
.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--xc-r-sm);
    border: 1px solid var(--xc-border);
    background: #fff;
    font-size: var(--xc-fs-body-sm);
    color: var(--xc-text-1);
    box-shadow: none;
}
.woocommerce-pagination ul.page-numbers .current {
    background: var(--xc-grad-brand);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}
/* shop toolbar */
.woocommerce-toolbar {
    border-bottom: 1px solid var(--xc-border);
    padding-bottom: var(--xc-s-4);
    margin-bottom: var(--xc-s-6);
}

/* ==========================================================================
 * 6. Product page (D2)
 * ========================================================================== */
.single-product div.product { margin-bottom: var(--xc-s-10); }
.single-product .woocommerce-product-gallery { margin-bottom: var(--xc-s-5); }
.single-product .summary .product_title {
    font-size: var(--xc-fs-h2);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    color: var(--xc-text-1);
    margin-bottom: var(--xc-s-3);
}
.single-product .summary .price {
    font-size: var(--xc-fs-price-xl);
    font-weight: 700;
    color: var(--xc-text-1);
    letter-spacing: -.03em;
    margin: var(--xc-s-4) 0;
}
.single-product .summary .price del {
    font-size: var(--xc-fs-price-md);
    color: var(--xc-text-3);
    font-weight: 400;
    margin-right: 8px;
}
.single-product .summary .price ins { text-decoration: none; }
.single-product form.cart .button,
.single-product .single_add_to_cart_button {
    height: 52px;
    padding: 0 34px;
    border-radius: var(--xc-r-md);
    background: var(--xc-grad-brand);
    color: #fff;
    font-weight: 600;
    font-size: var(--xc-fs-body-lg);
    box-shadow: var(--xc-sh-brand);
    border: 0;
    transition: transform .2s var(--xc-ease), box-shadow .2s;
}
.single-product form.cart .button:hover,
.single-product .single_add_to_cart_button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(27, 92, 232, .5);
}
.single-product .woocommerce-tabs ul.tabs {
    gap: var(--xc-s-6);
    border-bottom: 1px solid var(--xc-border);
    margin-bottom: var(--xc-s-6);
}
.single-product .woocommerce-tabs ul.tabs li {
    padding: 12px 0;
    margin: 0;
    border: 0;
    font-size: var(--xc-fs-body);
    font-weight: 500;
    color: var(--xc-text-3);
}
.single-product .woocommerce-tabs ul.tabs li.active { color: var(--xc-primary-500); }
.single-product .woocommerce-tabs ul.tabs li.active::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--xc-primary-500);
    margin-top: 10px;
    border-radius: 2px;
}

/* ==========================================================================
 * 7. Cart + checkout (D3)
 * ========================================================================== */
.woocommerce-checkout .col-lg-7,
.woocommerce-checkout .col-lg-5 { margin-bottom: var(--xc-s-7); }
.woocommerce-checkout h3 {
    font-size: var(--xc-fs-h4);
    font-weight: 600;
    letter-spacing: -.02em;
}
.woocommerce form .form-row label {
    font-size: var(--xc-fs-body-sm);
    color: var(--xc-text-2);
    margin-bottom: 6px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
    height: 46px;
    border: 1px solid var(--xc-border-strong);
    border-radius: var(--xc-r-md);
    padding: 0 14px;
    font-size: var(--xc-fs-body);
    color: var(--xc-text-1);
    background-color: #fff;
    box-shadow: none;
    transition: border-color .18s, box-shadow .18s;
}
.woocommerce form .form-row textarea { height: auto; padding: 12px 14px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--xc-primary-500);
    box-shadow: 0 0 0 3px var(--xc-primary-100);
    outline: none;
}
.woocommerce-checkout #order_review_heading { margin-bottom: var(--xc-s-5); }
.woocommerce-checkout #order_review {
    background: var(--xc-bg-soft);
    border: 1px solid var(--xc-border);
    border-radius: var(--xc-r-lg);
    padding: var(--xc-s-6);
    position: sticky;
    top: 100px;
}
.woocommerce-checkout #payment #payment_method {
    background: #fff;
    border-radius: var(--xc-r-md);
}
.woocommerce-checkout #place_order {
    height: 54px;
    width: 100%;
    border-radius: var(--xc-r-md);
    border: 0;
    background: var(--xc-grad-brand);
    color: #fff;
    font-weight: 600;
    font-size: var(--xc-fs-body-lg);
    box-shadow: var(--xc-sh-brand);
    transition: transform .2s var(--xc-ease), box-shadow .2s;
}
.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(27, 92, 232, .5);
}
.woocommerce-checkout .wc-proceed-to-checkout .button { width: 100%; }
.woocommerce table.shop_table {
    border-radius: var(--xc-r-lg);
    border: 1px solid var(--xc-border);
    overflow: hidden;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: var(--xc-border);
    padding: var(--xc-s-4);
}

/* trust strip */
.xc-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--xc-s-6);
    padding: var(--xc-s-5) var(--xc-s-6);
    margin-bottom: var(--xc-s-7);
    background: var(--xc-bg-soft);
    border: 1px solid var(--xc-border);
    border-radius: var(--xc-r-lg);
    font-size: var(--xc-fs-body-sm);
    color: var(--xc-text-2);
}
.xc-trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.xc-trust-bar i { color: var(--xc-primary-500); }

/* ==========================================================================
 * 8. Wishlist + blog + account (secondary pages)
 * ========================================================================== */
.woocommerce-wishlist .woocommerce-table,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation ul {
    border-color: var(--xc-border);
}
.blog .post-item .post-title,
.blog .entry-title {
    font-size: var(--xc-fs-h4);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--xc-text-1);
}

/* ==========================================================================
 * 9. Mobile
 * ========================================================================== */
@media (max-width: 991px) {
    .xc-hero { padding: 56px 0 64px; }
    .xc-hero__grid { grid-template-columns: 1fr; gap: var(--xc-s-7); }
    .xc-hero__title { font-size: var(--xc-fs-h1); max-width: none; }
    .xc-hero__media { min-height: 260px; }
    .xc-hero__chip--1 { width: 140px; }
    .xc-hero__chip--2 { width: 128px; }
    .xc-hero__chip--3 { width: 124px; }
    .xc-hero__chip--4 { width: 116px; }
    .xc-hero__chip img { width: 96px; height: 96px; }
    .xc-hero__stats { gap: var(--xc-s-6); }
    .xc-cat-tiles__list { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--xc-s-3); }
    .xc-features__list { grid-template-columns: repeat(2, 1fr); }
    .woocommerce-checkout #order_review { position: static; }
}
@media (max-width: 767px) {
    /* touch targets stay >= 44px */
    .xc-btn { height: 46px; }
    .header-search .porto-searchform input[type="search"] { height: 44px; }
    .woocommerce form .form-row input.input-text,
    .woocommerce form .form-row select { height: 46px; }
    .xc-hero__chip { padding: 8px; }
    .xc-hero__chip img { width: 84px; height: 84px; }
    .xc-hero__chip--1 { width: 120px; }
    .xc-hero__chip--2 { width: 112px; }
    .xc-hero__chip--3 { width: 108px; }
    .xc-hero__chip--4 { width: 102px; }
}
@media (max-width: 575px) {
    .xc-hero { padding: 40px 0 48px; }
    .xc-hero__title { font-size: 32px; }
    .xc-hero__stats { gap: var(--xc-s-5); }
    .xc-hero__stats strong { font-size: var(--xc-fs-body-lg); }
    .xc-cat-tiles__list { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
    .xc-features__list { grid-template-columns: 1fr; gap: var(--xc-s-4); }
    .xc-btn { height: 46px; padding: 0 20px; }
}

/* ==========================================================================
   补丁：与子主题 functions.php 的最终结构对齐
   ========================================================================== */

/* hero 幽灵按钮（浅色描边，深色底上用） */
.xc-btn--ghost-light{
  background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.3);
  backdrop-filter:blur(6px);
}
.xc-btn--ghost-light:hover{ background:rgba(255,255,255,.16); color:#fff; transform:translateY(-2px); }

/* 分类瓦片：functions.php 输出没有 .container 包裹，这里兼容两种 */
.xc-cat-tiles{ padding:0 var(--xc-fluid); }
.xc-cat-tiles__list{ max-width:var(--xc-container-xl); margin:0 auto; }
.xc-feature__body em{ font-style:normal; }

/* 卡片壳：网格 item 本身即卡片（post_class 加了 xc-card） */
.xc-card{ padding:0; }
.xc-card .xc-card__media{ padding:8px 8px 0; }
.xc-card .xc-card__body{ padding:14px 14px 16px; }

/* Trending 横排卡：网格 item 内是横向布局 */
.xc-card:has(.xc-trend-card__body){
  display:flex; align-items:center; gap:16px; flex-direction:row;
  padding:10px 16px; background:var(--xc-bg-soft);
}
.xc-card:has(.xc-trend-card__body) .xc-card__media{
  flex:0 0 120px; width:120px; padding:0; order:0;
}
.xc-card:has(.xc-trend-card__body) .xc-card__media .img-thumbnail{
  width:120px; height:120px; border-radius:10px;
}
.xc-card:has(.xc-trend-card__body) .xc-card__media .img-thumbnail img{
  width:120px; height:120px; object-fit:cover;
}
.xc-card:has(.xc-trend-card__body) .xc-trend-card__body{
  flex:1 1 auto; min-width:0; padding:0;
  display:flex; flex-direction:column; gap:2px; align-items:flex-start;
}
.xc-card:has(.xc-trend-card__body) .xc-card__title{
  font-size:var(--xc-fs-body); margin:0; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; max-width:100%;
}
.xc-card:has(.xc-trend-card__body) .xc-card__title a{ display:block; overflow:hidden; text-overflow:ellipsis; }
.xc-card:has(.xc-trend-card__body) .xc-card__price{ font-size:var(--xc-fs-body); }
.xc-card:has(.xc-trend-card__body) .xc-card__price .price{ font-size:var(--xc-fs-price-md); font-weight:600; }
.xc-trend-card__arrow{ flex:0 0 auto; color:var(--xc-text-3); }
.xc-trend-card__arrow:hover{ color:var(--xc-primary-500); }

/* 标题层级：区块标题必须明显大于正文 */
.page-wrapper h2.vc_custom_heading,
.page-wrapper .vc_custom_heading,
.page-wrapper .porto-heading h2,
.page-wrapper h2{
  color:var(--xc-text-1); letter-spacing:-.03em; font-weight:700;
}
.page-wrapper h2{ font-size:var(--xc-fs-h2); line-height:1.25; }
.page-wrapper h3{ font-size:var(--xc-fs-h3); line-height:1.3; }

/* 别名：兼容开发同事版本使用的类名 */
.xc-trend__body{ flex:1 1 auto; min-width:0; padding:0; display:flex; flex-direction:column; gap:2px; align-items:flex-start; }
.xc-trend__arrow{ flex:0 0 auto; color:var(--xc-text-3); }
.xc-trend__arrow:hover{ color:var(--xc-primary-500); }
.xc-card:has(.xc-trend__body),
.xc-card:has(.xc-trend-card__body),
.xc-card:has(.xc-list__media){
  display:flex; align-items:center; gap:16px; flex-direction:row;
  padding:10px 16px; background:var(--xc-bg-soft);
}
.xc-card:has(.xc-trend__body) .xc-card__media,
.xc-card:has(.xc-trend-card__body) .xc-card__media,
.xc-card:has(.xc-list__media) .xc-card__media{ flex:0 0 120px; width:120px; padding:0; }
.xc-card:has(.xc-trend__body) .xc-card__media .img-thumbnail,
.xc-card:has(.xc-trend-card__body) .xc-card__media .img-thumbnail,
.xc-card:has(.xc-list__media) .xc-card__media .img-thumbnail{ width:120px; height:120px; border-radius:10px; }
.xc-card:has(.xc-trend__body) .xc-card__media .img-thumbnail img,
.xc-card:has(.xc-trend-card__body) .xc-card__media .img-thumbnail img,
.xc-card:has(.xc-list__media) .xc-card__media .img-thumbnail img{ width:120px; height:120px; object-fit:cover; }
.xc-card:has(.xc-trend__body) .xc-card__title,
.xc-card:has(.xc-trend-card__body) .xc-card__title{ font-size:var(--xc-fs-body); margin:0; }

/* 别名：兼容开发同事版本使用的类名 */
.xc-trend__body{ flex:1 1 auto; min-width:0; padding:0; display:flex; flex-direction:column; gap:2px; align-items:flex-start; }
.xc-trend__arrow{ flex:0 0 auto; color:var(--xc-text-3); }
.xc-trend__arrow:hover{ color:var(--xc-primary-500); }
.xc-card:has(.xc-trend__body),
.xc-card:has(.xc-trend-card__body),
.xc-card:has(.xc-list__media){
  display:flex; align-items:center; gap:16px; flex-direction:row;
  padding:10px 16px; background:var(--xc-bg-soft);
}
.xc-card:has(.xc-trend__body) .xc-card__media,
.xc-card:has(.xc-trend-card__body) .xc-card__media,
.xc-card:has(.xc-list__media) .xc-card__media{ flex:0 0 120px; width:120px; padding:0; }
.xc-card:has(.xc-trend__body) .xc-card__media .img-thumbnail,
.xc-card:has(.xc-trend-card__body) .xc-card__media .img-thumbnail,
.xc-card:has(.xc-list__media) .xc-card__media .img-thumbnail{ width:120px; height:120px; border-radius:10px; }
.xc-card:has(.xc-trend__body) .xc-card__media .img-thumbnail img,
.xc-card:has(.xc-trend-card__body) .xc-card__media .img-thumbnail img,
.xc-card:has(.xc-list__media) .xc-card__media .img-thumbnail img{ width:120px; height:120px; object-fit:cover; }
.xc-card:has(.xc-trend__body) .xc-card__title,
.xc-card:has(.xc-trend-card__body) .xc-card__title{ font-size:var(--xc-fs-body); margin:0; }

/* ==========================================================================
   商店页侧栏（写在 shop builder 的 col-lg-3 里，主区 col-lg-9）
   ========================================================================== */
.xc-shop-sidebar-col{ position:relative; }
.xc-shop-sidebar .sidebar-content{ display:flex; flex-direction:column; gap:var(--xc-s-5); }

.xc-shop-sidebar .widget{
  background:#fff; border:1px solid var(--xc-border); border-radius:var(--xc-r-lg);
  padding:18px 20px 20px;
}
.xc-shop-sidebar .widget-title{
  margin:0 0 14px; padding:0 0 10px; border:0;
  border-bottom:1px solid var(--xc-divider);
  font-size:var(--xc-fs-h5); font-weight:600; letter-spacing:-.02em; color:var(--xc-text-1);
  text-transform:none;
}
.xc-shop-sidebar .xc-filter-list{ list-style:none; margin:0; padding:0; }
.xc-shop-sidebar .xc-filter-list li{ border:0; padding:0; }
.xc-shop-sidebar .xc-filter-list li a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  min-height:36px; padding:4px 0;
  font-size:var(--xc-fs-body-sm); color:var(--xc-text-2); text-decoration:none;
  transition:color .18s, padding-left .18s;
}
.xc-shop-sidebar .xc-filter-list li a:hover{ color:var(--xc-primary-500); padding-left:4px; }
.xc-shop-sidebar .xc-filter-list li .count{ font-size:var(--xc-fs-caption); color:var(--xc-text-3); }

/* 价格 */
.xc-shop-sidebar .xc-price-form__row{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.xc-shop-sidebar .xc-price-form__row input{
  flex:1 1 0; min-width:0; height:40px;
  border:1px solid var(--xc-border-strong); border-radius:var(--xc-r-sm);
  padding:0 10px; font-size:var(--xc-fs-body-sm); color:var(--xc-text-1); background:#fff;
  transition:border-color .18s, box-shadow .18s;
}
.xc-shop-sidebar .xc-price-form__row input:focus{
  border-color:var(--xc-primary-500); box-shadow:0 0 0 3px var(--xc-primary-100); outline:none;
}
.xc-shop-sidebar .xc-price-form__sep{ color:var(--xc-text-3); }
.xc-shop-sidebar .xc-price-form__submit{
  width:100%; height:40px; border:0; border-radius:var(--xc-r-sm);
  background:var(--xc-grad-brand); color:#fff;
  font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  box-shadow:var(--xc-sh-brand); cursor:pointer; transition:transform .2s, box-shadow .2s;
}
.xc-shop-sidebar .xc-price-form__submit:hover{ transform:translateY(-1px); box-shadow:0 12px 26px -8px rgba(27,92,232,.5); color:#fff; }
.xc-shop-sidebar .xc-price-form__clear{
  display:block; margin-top:10px; text-align:center;
  font-size:var(--xc-fs-caption); color:var(--xc-text-3); text-decoration:underline;
}
.xc-shop-sidebar .xc-price-form__clear:hover{ color:var(--xc-primary-500); }

/* 服务承诺 */
.xc-shop-sidebar .xc-promise-list{ list-style:none; margin:0; padding:0; }
.xc-shop-sidebar .xc-promise-list li{
  display:flex; align-items:flex-start; gap:10px; padding:7px 0;
  font-size:var(--xc-fs-body-sm); color:var(--xc-text-2); line-height:1.5;
}
.xc-shop-sidebar .xc-promise-list i{
  flex:0 0 18px; margin-top:1px; font-size:16px; color:var(--xc-primary-500);
}

/* 移动端：侧栏折叠在产品列表上方 */
@media (max-width:991px){
  .xc-shop-sidebar-col{ margin-bottom:var(--xc-s-6); }
  .xc-shop-sidebar .widget{ padding:16px 18px 18px; }
}

/* ==========================================================================
   页眉：Logo / 搜索 / 购物车（demo 导入后这三块是空的）
   ========================================================================== */
.xc-header-logo{
  display:inline-flex; align-items:center;
  text-decoration:none; padding:4px 0;
}
.xc-header-logo__img{
  display:block; height:40px; width:auto; max-width:none;
}
@media (max-width:575px){
  .xc-header-logo__img{ height:32px; }
}

/* 搜索 */
.xc-header-search{
  display:flex; align-items:center; position:relative;
  width:100%; max-width:420px; height:44px;
  border:1px solid var(--xc-border-strong); border-radius:var(--xc-r-md);
  background:#fff; overflow:hidden;
  transition:border-color .2s, box-shadow .2s;
}
.xc-header-search:focus-within{ border-color:var(--xc-primary-500); box-shadow:0 0 0 3px var(--xc-primary-100); }
.xc-header-search input[type=search]{
  flex:1 1 auto; min-width:0; height:100%;
  border:0; outline:none; background:transparent;
  padding:0 14px; font-size:var(--xc-fs-body); color:var(--xc-text-1);
}
.xc-header-search input[type=search]::placeholder{ color:var(--xc-text-3); }
.xc-header-search button{
  flex:0 0 auto; width:46px; height:100%; border:0; cursor:pointer;
  background:transparent; color:var(--xc-text-2);
  display:inline-flex; align-items:center; justify-content:center;
  transition:color .2s, background-color .2s;
}
.xc-header-search button:hover{ color:var(--xc-primary-500); background:var(--xc-primary-050); }
.xc-header-search button i{ font-size:17px; }

/* 购物车 */
.xc-header-cart{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:var(--xc-r-md);
  background:var(--xc-bg-muted); color:var(--xc-text-1);
  text-decoration:none; font-size:20px;
  transition:background-color .2s, color .2s, transform .2s;
}
.xc-header-cart:hover{ background:var(--xc-primary-500); color:#fff; transform:translateY(-1px); }
.xc-header-cart__count{
  position:absolute; top:-5px; right:-5px;
  min-width:19px; height:19px; padding:0 5px;
  border-radius:var(--xc-r-pill);
  background:var(--xc-sale); color:#fff;
  font-size:10px; font-weight:700; line-height:19px; text-align:center;
  box-shadow:0 2px 6px rgba(217,45,32,.4);
}
.xc-header-cart:not(.has-items) .xc-header-cart__count{ display:none; }

/* 页眉中间行：logo / 搜索 / 购物车 与右侧图标的排布 */
.header-middle .vc_column_container.flex-1{ display:flex; align-items:center; }
.header-middle .vc_column_container.flex-auto{ display:flex; align-items:center; justify-content:flex-end; gap:14px; flex-wrap:wrap; }
.header-middle .xc-header-search{ flex:1 1 260px; max-width:380px; margin-right:auto; }
@media (max-width:991px){
  .header-middle .xc-header-search{ order:10; flex:1 1 100%; max-width:none; margin:10px 0 0; }
}

/* ==========================================================================
   标题层级修正
   区块标题不在 .page-wrapper 内（首页是直接渲染的 vc_row），所以不能带前缀
   ========================================================================== */
.vc_custom_heading,
h2.vc_custom_heading,
h2.vc_do_custom_heading{
  font-size:var(--xc-fs-h2) !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  letter-spacing:-.03em !important;
  color:var(--xc-text-1) !important;
}
h2{ color:var(--xc-text-1); letter-spacing:-.03em; }

/* ==========================================================================
   Hero 修正：高度不足 + 悬浮卡溢出到深色区之外
   ========================================================================== */
.xc-hero{
  min-height:480px;
  display:flex; align-items:center;
  overflow:hidden;                 /* 防止悬浮卡溢出 */
  padding:72px 0 80px;
}
.xc-hero__grid{ align-items:center; }
.xc-hero__media{
  position:relative;
  min-height:360px;
  margin-right:-40px;              /* 让卡片可以"探出"但仍在容器内 */
  padding-right:40px;
}
.xc-hero__chip--1{ top:2%;  left:4%;  width:158px; }
.xc-hero__chip--2{ top:26%; right:2%; width:146px; }
.xc-hero__chip--3{ bottom:14%; left:12%; width:140px; }
.xc-hero__chip--4{ bottom:0;   right:16%; width:132px; }
.xc-hero__chip img{ width:112px; height:112px; }
@media (max-width:1199px){
  .xc-hero__media{ margin-right:0; padding-right:0; }
  .xc-hero__chip--1{ width:136px; } .xc-hero__chip--2{ width:126px; }
  .xc-hero__chip--3{ width:122px; } .xc-hero__chip--4{ width:114px; }
  .xc-hero__chip img{ width:94px; height:94px; }
}
@media (max-width:991px){
  .xc-hero{ min-height:auto; padding:52px 0 60px; }
  .xc-hero__media{ min-height:240px; }
}

/* ==========================================================================
   Hero 底色强制修正
   （--xc-grad-hero 是多层 radial+linear 渐变，叠上 mix-blend-mode:screen 的
     背景图时右侧会被冲淡，这里改成实色深底 + 背景图正常叠加）
   ========================================================================== */
.xc-hero{
  background:#0a1017 !important;
  background-image:
    radial-gradient(120% 140% at 78% 18%, rgba(59,130,246,.34) 0%, rgba(10,16,23,0) 58%),
    radial-gradient(90% 120% at 12% 88%, rgba(27,92,232,.24) 0%, rgba(10,16,23,0) 60%),
    linear-gradient(160deg,#111c2c 0%,#0a1017 100%) !important;
}
.xc-hero__bg{ mix-blend-mode:normal !important; opacity:.28 !important; }
.xc-hero::after{
  background:linear-gradient(90deg, rgba(10,16,23,.94) 0%, rgba(10,16,23,.80) 44%, rgba(10,16,23,.30) 100%) !important;
}

/* ==========================================================================
   Hero 文字与悬浮卡排版修正（标签压图 / 文案与按钮重叠）
   ========================================================================== */
.xc-hero__eyebrow{ margin-bottom:14px; }
.xc-hero__title{ line-height:1.14 !important; margin:0 0 6px !important; }
.xc-hero__sub{ line-height:1.25 !important; margin:0 0 16px !important; display:block; }
.xc-hero__desc{ line-height:1.7 !important; margin:0 0 26px !important; max-width:46ch; }
.xc-hero__cta{ margin-bottom:26px; }
.xc-hero__stats{ padding-top:20px; }
.xc-hero__stats strong{ color:#fff; }
.xc-hero__stats span{ color:rgba(255,255,255,.62); }

.xc-hero__chip{
  width:auto; height:auto; padding:10px 10px 9px;
  display:flex; flex-direction:column; gap:7px; align-items:center;
}
.xc-hero__chip img{
  display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:contain;
  border-radius:var(--xc-r-sm); background:#fff;
}
.xc-hero__chip-label{
  display:block; width:100%; text-align:center; margin-top:0;
  font-size:11px; line-height:1.3; font-weight:600; color:var(--xc-text-1);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ==========================================================================
   按钮完整样式（基础类在、变体类丢失导致透明 —— 补齐）
   ========================================================================== */
.xc-btn{
  display:inline-flex !important; align-items:center; justify-content:center; gap:8px;
  height:46px; padding:0 26px; border-radius:var(--xc-r-md);
  border:1px solid transparent;
  font-size:var(--xc-fs-body); font-weight:600; letter-spacing:-.01em;
  text-decoration:none !important; text-transform:none; cursor:pointer;
  transition:transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.xc-btn--primary{
  background:var(--xc-grad-brand) !important; color:#fff !important;
  box-shadow:var(--xc-sh-brand);
}
.xc-btn--primary:hover{
  color:#fff !important; transform:translateY(-2px);
  box-shadow:0 12px 28px -8px rgba(27,92,232,.5);
}
.xc-btn--ghost{
  background:#fff !important; color:var(--xc-text-1) !important;
  border-color:var(--xc-border-strong);
}
.xc-btn--ghost:hover{ border-color:var(--xc-primary-500); color:var(--xc-primary-500) !important; transform:translateY(-2px); }
.xc-btn--ghost-light{
  background:rgba(255,255,255,.08) !important; color:#fff !important;
  border-color:rgba(255,255,255,.3); backdrop-filter:blur(6px);
}
.xc-btn--ghost-light:hover{ background:rgba(255,255,255,.16) !important; color:#fff !important; transform:translateY(-2px); }
.xc-btn i{ font-size:15px; }

/* hero 左侧文案列 */
.xc-hero__copy{ position:relative; z-index:2; }

/* review / trend 的历史类名兜底 */
.xc-review,.xc-trend__media{ display:block; }

/* ==========================================================================
 * 10. Floating "All Products" bar  (site-wide, fixed to the top)
 * ========================================================================== */
.xc-product-bar{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--xc-bg);
  border-bottom: 1px solid var(--xc-border);
  box-shadow: var(--xc-sh-3);
  font-family: var(--xc-font-sans);
}
/* The floating bar is retired — no top offset is reserved for it. */

.xc-product-bar__inner{
  display: flex; align-items: center; gap: 14px;
  height: 56px; max-width: 1620px; margin: 0 auto; padding: 0 20px;
}
.xc-product-bar__logo{
  flex: 0 0 auto; display: inline-flex; align-items: center; line-height: 0;
  text-decoration: none;
}
.xc-product-bar__logo img{
  height: 30px; width: 30px; display: block; border-radius: 7px;
  box-shadow: 0 1px 3px rgba(16,24,40,.18);
}
.xc-product-bar__home{
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--xc-text-1); font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: var(--xc-r-pill);
  background: var(--xc-bg-soft); border: 1px solid var(--xc-border); white-space: nowrap;
}
.xc-product-bar__home:hover{ color: var(--xc-primary-500); border-color: var(--xc-primary-500); }
.xc-product-bar__home .porto-icon-home{ font-size: 15px; }

.xc-product-bar__toggle{
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: var(--xc-grad-brand); color: #fff; border: none;
  padding: 9px 16px; border-radius: var(--xc-r-pill);
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer;
  white-space: nowrap; box-shadow: var(--xc-sh-brand);
}
.xc-product-bar__toggle:hover{ filter: brightness(1.05); }
.xc-product-bar__toggle .xc-caret{ transition: transform .25s ease; font-size: 12px; }
.xc-product-bar__toggle[aria-expanded="true"] .xc-caret{ transform: rotate(180deg); }

.xc-product-bar__chips{
  display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.xc-product-bar__chips::-webkit-scrollbar{ display: none; }
.xc-product-bar__chip{
  flex: 0 0 auto; padding: 7px 14px; border-radius: var(--xc-r-pill);
  text-decoration: none; color: var(--xc-text-1); font-size: 13.5px; font-weight: 500;
  white-space: nowrap; background: var(--xc-bg-soft); border: 1px solid var(--xc-border);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.xc-product-bar__chip:hover{ color: #fff; background: var(--xc-primary-500); border-color: transparent; }

.xc-product-bar__search{ display: flex; align-items: center; flex: 0 0 auto; }
.xc-product-bar__search input{
  height: 38px; width: 210px; max-width: 34vw; border: 1px solid var(--xc-border); border-right: none;
  border-radius: var(--xc-r-pill) 0 0 var(--xc-r-pill); padding: 0 14px; font-family: inherit;
  font-size: 13.5px; color: var(--xc-text-1); background: var(--xc-bg-soft); outline: none;
}
.xc-product-bar__search input:focus{ border-color: var(--xc-primary-500); background: #fff; }
.xc-product-bar__search button{
  height: 38px; width: 44px; border: 1px solid var(--xc-primary-500); border-left: none;
  background: var(--xc-primary-500); color: #fff;
  border-radius: 0 var(--xc-r-pill) var(--xc-r-pill) 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.xc-product-bar__search button:hover{ background: var(--xc-primary-600, #1244b8); border-color: var(--xc-primary-600, #1244b8); }

.xc-product-bar__panel{
  border-top: 3px solid var(--xc-primary-500);
  background: var(--xc-bg-soft);
  box-shadow: 0 22px 40px -18px rgba(16,24,40,.45);
  border-radius: 0 0 16px 16px;
  max-height: 70vh; overflow-y: auto;
}
.xc-product-bar__panel[hidden]{ display: none; }
.xc-product-bar__panel-inner{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px;
  max-width: 1620px; margin: 0 auto; padding: 24px 20px;
}
.xc-prod-col__head{
  display: block; font-weight: 700; font-size: 14px; color: var(--xc-text-1);
  text-decoration: none; margin-bottom: 10px;
}
.xc-prod-col__head:hover{ color: var(--xc-primary-500); }
.xc-prod-col ul{ list-style: none; margin: 0; padding: 0; }
.xc-prod-col li a{
  display: block; padding: 5px 0; color: var(--xc-text-3); text-decoration: none; font-size: 13.5px;
}
.xc-prod-col li a:hover{ color: var(--xc-primary-500); }

@media (max-width: 767px){
  .xc-product-bar__chips{ display: none; }
  .xc-product-bar__search input{ width: 130px; max-width: 40vw; }
}
@media (max-width: 480px){
  .xc-product-bar__home span{ display: none; }
  .xc-product-bar__home{ padding: 8px; }
  .xc-product-bar__logo img{ height: 26px; width: 26px; }
  .xc-product-bar__inner{ gap: 10px; padding: 0 12px; }
  .xc-product-bar__search input{ width: 118px; }
}

/* ==========================================================================
   Blog grid — 统一卡片配图比例
   Porto 的 posts grid 按原图比例输出，源图长宽比不一致时卡片高度会参差
   （实测同一行出现 248px / 373px / 411px 三种高度）。这里统一裁切成
   16:10，保证网格齐平。
   ========================================================================== */
.porto-posts-grid .post-item .post-image img,
.posts-container .post-item .post-image img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.porto-posts-grid .post-item .post-image,
.posts-container .post-item .post-image{
  overflow: hidden;
  border-radius: var(--xc-r-md, 10px);
}
