:root {
    --noon-yellow: #feee00;
    --noon-yellow-dark: #e7d800;
    --noon-black: #202020;
    --noon-bg: #f7f7f8;
    --noon-border: #e5e7eb;
}

/* 强制修改页面整体 */
html,
body {
    background: #ffffff !important;
    color: var(--noon-black) !important;
    font-family: Arial, "PingFang SC",
        "Microsoft YaHei", sans-serif !important;
}

/* 顶部主导航强制黄色 */
header,
.aiz-header,
.aiz-navbar,
.navbar,
.navbar-light,
.main-header,
.header-wrapper,
.header {
    background-color: var(--noon-yellow) !important;
    background-image: none !important;
    border-color: var(--noon-yellow-dark) !important;
}

/* 搜索框 */
.aiz-search-box input,
.search-box input,
header input[type="text"],
header input[type="search"] {
    height: 46px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.12) !important;
}

/* 分类导航 */
.aiz-category-menu,
.category-menu,
.category-nav,
.megamenu,
.nav-category,
.aiz-megamenu {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.aiz-category-menu a,
.category-menu a,
.megamenu a {
    color: #202020 !important;
    font-weight: 700 !important;
}

.aiz-category-menu a:hover,
.category-menu a:hover,
.megamenu a:hover {
    background: #fff7a8 !important;
}

/* 首页背景 */
main,
.aiz-main-wrapper,
.main-content,
.home-page,
.home-section {
    background: #ffffff !important;
}

/* 所有首页区块 */
section,
.aiz-section,
.home-section {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* 轮播 */
.aiz-carousel,
.carousel,
.slick-slider,
.home-slider,
.swiper-container {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* 商品卡片强制 Noon 风格 */
.aiz-card-box,
.product-card,
.product-box,
.card-product,
.product-item,
.card {
    background: #ffffff !important;
    border: 1px solid var(--noon-border) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition:
        transform .22s ease,
        box-shadow .22s ease !important;
}

.aiz-card-box:hover,
.product-card:hover,
.product-box:hover,
.card-product:hover,
.product-item:hover {
    transform: translateY(-5px) !important;
    box-shadow:
        0 12px 30px rgba(15,23,42,.12) !important;
}

/* 桌面商品卡片尺寸 */
@media (min-width: 769px) {
    .aiz-card-box,
    .product-card,
    .product-box,
    .card-product,
    .product-item {
        height: 380px !important;
    }

    .aiz-card-box img,
    .product-card img,
    .product-box img,
    .card-product img,
    .product-item img,
    .img-fit {
        height: 200px !important;
        max-height: 200px !important;
        object-fit: contain !important;
        background: #f5f6f8 !important;
    }
}

/* 商品标题最多两行 */
.aiz-card-box .fs-13,
.aiz-card-box .fs-14,
.product-title,
.card-title,
.product-name {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.35 !important;
    min-height: 38px !important;
}

/* 商品价格 */
.aiz-card-box .fw-600,
.aiz-card-box .fw-700,
.product-price,
.price,
.current-price {
    color: #111827 !important;
    font-size: 19px !important;
    font-weight: 900 !important;
}

/* 按钮黄色 */
.btn-primary,
.btn-warning,
.btn-soft-primary,
.btn-main,
.add-to-cart,
.buy-now {
    background: var(--noon-yellow) !important;
    border-color: var(--noon-yellow-dark) !important;
    color: #111827 !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}

/* 标题 */
.section-title,
h1,
h2,
h3 {
    color: #111827 !important;
    font-weight: 800 !important;
}

/* 页脚 */
footer,
.aiz-footer,
.footer {
    background: #f7f7f7 !important;
    border-top: 1px solid #e5e7eb !important;
}

/* 手机每行两件 */
@media (max-width: 768px) {
    .aiz-card-box,
    .product-card,
    .product-box,
    .card-product,
    .product-item {
        height: 274px !important;
        border-radius: 11px !important;
    }

    .aiz-card-box img,
    .product-card img,
    .product-box img,
    .card-product img,
    .product-item img,
    .img-fit {
        height: 155px !important;
        max-height: 155px !important;
        object-fit: contain !important;
    }

    .row-cols-2 > *,
    .product-grid > *,
    .products-row > * {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .product-title,
    .card-title,
    .product-name,
    .aiz-card-box .fs-13,
    .aiz-card-box .fs-14 {
        font-size: 12px !important;
        min-height: 33px !important;
    }
}

/* 测试标记，确认新主题已经加载 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--noon-yellow);
    z-index: 999999;
    pointer-events: none;
}

@keyframes noonshenFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
