body {
    font-family: "Microsoft Yahei",
        "Hiragino Sans GB",
        "Helvetica Neue",
        Helvetica,
        tahoma,
        arial,
        Verdana,
        sans-serif,
        "WenQuanYi Micro Hei",
        "\5B8B\4F53";
}

.fz-14 {
    font-size: 14px !important;
}

a {
    color: #333 !important;
    text-decoration: none !important;
}

a:hover {
    color: #ff3300 !important;
    text-decoration: none !important;
}

.bkmenu:hover {
    border-color: #ff7f00;
}

.logo {
    height: 36px !important;
}

.catcon {
    min-width: 0;
}

.catcon h5 {
    color: unset !important;
}

.preimg {
    width: 40px;
    height: 40px;
}

.infopic {
    width: 60px !important;
    height: 60px !important;
}

.infologo {
    width: 30px !important;
    height: 30px !important;
}

.comlogo {
    width: 60px !important;
    height: 60px !important;
}

/* 默认手机端：2列 */
.vertical-columns {
    display: block !important;
    column-count: 2;
    column-gap: 20px;
}

@media (min-width: 768px) {
    .vertical-columns {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .vertical-columns {
        column-count: 6;
    }
}

.column-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
}

.tabulator-cell a:link,
.tabulator-cell a:visited {
    color: #3671c9;
    text-decoration: none;
    font-size: 14px;
}

.tabulator-row .tabulator-cell {
    cursor: default !important;
    font-size: 14px;
}

.tabulator-page-counter span {
    font-size: 14px;
}

.tabulator-paginator .tabulator-page,
.tabulator-paginator label,
.tabulator-paginator .tabulator-page-size {
    font-size: 14px;
    font-weight: normal;
}

.tabulator-col-title {
    font-size: 14px;
}

.tabulator-footer {
    background-color: #ffffff !important;
    padding-top: 15px;
}

.tabulator-row.tabulator-selectable:hover {
    background-color: #eceef5;
}

.tabulator-row.tabulator-row-even {
    background-color: #f9fafd;
}

.tabulator-row {
    border-bottom: 1px solid #eeeeee;
}

.tabulator .tabulator-header {
    border-bottom: 1px solid #eeeeee;
}

.tabulator-row.tabulator-selected {
    background-color: #fef2d8;
}

.submit-card {
    width: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: #6366f1;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #4f46e5;
}
.btn-primary:active {
    background-color: #4338ca;
}
.btn-primary:focus {
    background-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}
.btn-primary,
.product-card .count-input:not(.collapsed) .product-card-button,
.product-card:hover .product-card-button,
[data-bs-theme=dark] .product-card:hover .product-card-button {
    --cz-btn-hover-bg: #4338ca;
    --cz-btn-active-bg: #4338ca;
    --cz-btn-hover-border-color: #4338ca;
    --cz-btn-active-border-color: #4338ca;
}
#loadingContent {
    display: none;
}
.pixel-grid {
    padding: 0;
    margin: 0;
}

.pixel-item {
    position: relative;
    padding: 0;
    /* 移除内边距，由内部 flex 控制居中 */
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;

    /* 核心：让内部所有元素（默认层和遮罩层）水平垂直居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 悬停时的缩放效果 */
.pixel-item:hover {
    z-index: 10;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 2. 默认展示层（Logo + 底部标题） */
.pixel-item>.d-block {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 图片垂直居中 */
    align-items: center;
    padding: 12px 12px 0px 12px;
    /* 留出安全边距，防止图片贴边 */
    box-sizing: border-box;
    text-decoration: none !important;
}

.pixel-item img {
    width: 100% !important;
    height: 100px !important;
    /* 限制高度，给下方的文字留出空间 */
    width: auto;
    height: auto;
    object-fit: contain;
    /* 保证 Logo 比例完整，不被拉伸或裁剪 */
    border-radius: 4px;
    display: block;
}

.pixel-footer-title {
    width: 100%;
    font-size: 12px;
    color: #666;
    padding-top: 6px;
    text-align: center;
    transition: opacity 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 3. 悬停遮罩层 */
.pixel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    text-align: center;
    padding: 10px 10px 0px 10px;
    box-sizing: border-box;
}

.pixel-item:hover .pixel-overlay {
    opacity: 1;
}

/* 悬停时隐藏底部的默认标题 */
.pixel-item:hover .pixel-footer-title {
    opacity: 0;
}

/* 4. 遮罩层内的全区域跳转链接 */
.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    color: white !important;
    z-index: 10;
}

/* 5. 遮罩层文字内容（支持自动换行） */
.pixel-content {
    width: 100%;
    padding: 5px;
    /* 给底部的 Push 按钮预留避让空间 */
    margin-bottom: 35px;
    pointer-events: none;
    /* 点击穿透到 overlay-link */
}

.pixel-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

    /* 允许文字根据宽度自动换行 */
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    width: 100%;
}

/* 6. Push 按钮样式 */
.refresh-top-btn {
    position: absolute !important;
    bottom: 12px !important;
    /* 固定在格子底部上方一点 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    /* 确保在跳转链接之上，可被点击 */
    font-size: 10px !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.refresh-top-btn:active {
    transform: translateX(-50%) scale(0.95);
}

/* 7. 其他辅助样式 */
.star {
    color: #ff0000;
    margin-left: 3px;
}
.icon-txt{
  color: #ff3300;
}
/* 响应式调整 */
@media (max-width: 576px) {
    .pixel-item>.d-block {
        padding: 6px;
    }

    .pixel-title {
        font-size: 0.75rem;
    }

    .refresh-top-btn {
        bottom: 8px !important;
        padding: 1px 6px !important;
    }
}