/* ===== 小咔子商城首页样式 - 与参考页面一致 ===== */

/* ===== 分类页面包屑 minimal-breadcrumb ===== */
.minimal-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 0.875rem;
}
.minimal-breadcrumb__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.minimal-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.minimal-breadcrumb__item {
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.minimal-breadcrumb__item--active {
    color: #6c757d;
    font-weight: 600;
}
.minimal-breadcrumb__link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.minimal-breadcrumb__link:hover {
    color: #343a40;
    text-decoration: underline;
}
.minimal-breadcrumb__separator {
    display: inline-flex;
    align-items: center;
    color: #adb5bd;
    margin: 0 5px;
    font-size: 0.75rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===== 分类页 catalog-item 列表样式 ===== */
.catalog-item {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    transition: all 0.25s ease;
}
.catalog-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59,130,246,0.12);
}
.catalog-item__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}
.catalog-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.catalog-item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.catalog-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.catalog-item__link {
    color: #1e293b;
    text-decoration: none;
}
.catalog-item__link:hover {
    color: #3b82f6;
}
.catalog-item__details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.catalog-item__details .btn--base,
.pcg-actions .btn--base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.boxA#productList .catalog-item {
    margin-bottom: 12px;
}

/* ===== 分类页 视图切换 view-switch ===== */
.view-switch {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.view-switch__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 25px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.view-switch__btn i {
    font-size: 1.1rem;
}
.view-switch__btn:hover {
    color: #64748b;
}
.view-switch__btn.active {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.products-count {
    font-size: 0.9rem;
    color: #64748b;
}
.products-count-num {
    font-weight: 600;
    color: #1e293b;
}

/* ===== 分类页 卖家/售后/发货标签（与 Instagram 参考一致） ===== */
.seller-return-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.seller-pill-wrap {
    flex-shrink: 0;
}
.seller-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    max-width: 260px;
}
.seller-pill--self {
    background: #fff7ed;
}
.seller-pill--seller,
.seller-pill--merchant {
    background: #eef2ff;
}
.seller-pill__avatar {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    flex-shrink: 0;
}
.seller-pill__avatar--self {
    background: linear-gradient(135deg, #ffb347, #ff6b6b);
}
.seller-pill__avatar--seller,
.seller-pill__avatar--merchant {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
}
.seller-pill__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}
.seller-pill__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}
.pr-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}
.as-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.as-badge i {
    font-size: 14px;
    opacity: 0.85;
}
.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.delivery-badge i {
    font-size: 10px;
}
.delivery-badge--auto {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border: 1px solid #86efac;
}
.delivery-badge--manual {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* ===== 列表视图库存样式 ===== */
.catalog-item__stock {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}
.catalog-item__stock--ok {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}
.catalog-item__stock--no {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

/* ===== 格子视图 自动/手动发货标签样式 ===== */
.pcg-delivery {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.pcg-delivery i {
    font-size: 0.7rem;
}
.pcg-delivery--auto {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border: 1px solid #86efac;
}
.pcg-delivery--manual {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* 格子列表：购买按钮图标+文字居中，库存和自动同行 */
.pcg-actions .btn,
.pcg-actions .btn--base {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pcg-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.pcg-meta-row .pcg-stock,
.pcg-meta-row .pcg-delivery {
    flex-shrink: 0;
}
@media (max-width: 420px) {
    .pcg-meta-row {
        flex-wrap: nowrap;
    }
    .pcg-meta-row .pcg-stock {
        width: auto !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .seller-pill { max-width: 200px; }
    .seller-pill__name { max-width: 150px; }
}

/* ===== 分类页商品列表区域宽度居中 ===== */
.category-products-main {
    width: 66.66666667%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 991.98px) {
    .category-products-main {
        width: 100%;
    }
}

/* ===== Header V2 搜索框/余额/语言/账户 - 与小咔子一致 ===== */
.header-v2 .header-v2__container {
    gap: 1rem;
}
.header-v2 .header-v2__search {
    flex: 1;
    max-width: 480px;
    min-width: 200px;
    margin: 0 0.5rem;
}
.header-v2 .header-v2__search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.header-v2 .header-v2__search-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    flex-shrink: 0;
}
.header-v2 .header-v2__search-cat-btn {
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.65rem 0.5rem 0.65rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 110px;
}
.header-v2 .header-v2__search-cat-btn .search-cat-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}
.header-v2 .header-v2__search-form:focus-within {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.header-v2 .header-v2__search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 1rem;
    color: #1e293b;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
}
.header-v2 .header-v2__search-input::placeholder {
    color: #64748b;
}
.header-v2 .header-v2__search-btn {
    background: #3b82f6;
    border: none;
    color: #fff;
    padding: 0.65rem 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 0 999px 999px 0;
    margin: -1px -1px -1px 0;
}
.header-v2 .header-v2__search-btn:hover {
    background: #2563eb;
}
.header-v2 .header-v2__search-btn i {
    font-size: 1.1rem;
}

/* 余额 - 黄色胶囊（与小咔子一致，紧凑尺寸） */
.header-v2 .header-v2__balance {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: #92400e;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}
.header-v2 .header-v2__balance i {
    font-size: 0.9rem;
    color: #b45309;
}
.header-v2 .header-v2__recharge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    background: #10b981;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}
.header-v2 .header-v2__recharge:hover {
    background: #059669;
    transform: scale(1.05);
    color: #fff;
}

/* 语言选择 - 与小咔子一致，紧凑尺寸 + 下三角图标 */
.header-v2__lang-dropdown {
    display: flex !important;
    align-items: center;
}
.header-v2__actions .language-select-theme.select2-container,
.header-v2__actions .language-select-theme.select2-container--default {
    min-width: 80px !important;
    width: auto !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.header-v2__actions .language-select-theme .select2-selection {
    background: #f8fafc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.5rem center/12px 10px !important;
    border: 1px solid #e5e7eb !important;
    color: #64748b !important;
    border-radius: 999px !important;
    padding: 0.3rem 1.75rem 0.3rem 0.65rem !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    min-height: 30px !important;
    display: flex !important;
    align-items: center !important;
}
.header-v2__actions .language-select-theme .select2-selection__rendered {
    padding-left: 0.25rem !important;
    padding-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}
.header-v2__actions .language-select-theme .select2-selection__rendered .table-item-icon {
    width: 16px !important;
    height: 12px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border-radius: 2px !important;
}
.header-v2__actions .language-select-theme .select2-selection {
    color: #000000 !important;
}
.header-v2__actions .language-select-theme .select2-selection__rendered .table-item-name {
    color: inherit !important;
    font-size: 0.82rem !important;
}
/* 语言选择器 - 下三角已通过 background-image 显示 */
.header-v2__actions .language-select-theme .select2-selection__arrow {
    display: none !important;
}
/* 语言下拉列表 - 紧凑整齐（dropdown 在 body 下，用 dropdownCssClass 定位） */
.language-select-dropdown,
.select2-dropdown.language-select-dropdown,
.select2-dropdown:has(img[src*="language/"]) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 200px !important;
    padding: 0.15rem !important;
    border-radius: 6px !important;
    color: #000000 !important;
}
.language-select-dropdown *,
.select2-dropdown.language-select-dropdown * {
    color: inherit !important;
}
.language-select-dropdown .select2-results__options,
.select2-dropdown.language-select-dropdown .select2-results__options {
    max-height: 200px !important;
}
.language-select-dropdown .select2-results__option,
.select2-dropdown.language-select-dropdown .select2-results__option {
    padding: 0.15rem 0.35rem !important;
    font-size: 0.65rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    line-height: 1.25 !important;
    min-height: 22px !important;
}
.language-select-dropdown .select2-results__option .select2-item,
.language-select-dropdown .select2-results__option .table-item,
.select2-dropdown.language-select-dropdown .select2-results__option .select2-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    font-size: 0.65rem !important;
    color: inherit !important;
}
.language-select-dropdown .select2-results__option .table-item-icon,
.language-select-dropdown .select2-results__option img,
.select2-dropdown.language-select-dropdown .select2-results__option .table-item-icon,
.select2-dropdown.language-select-dropdown .select2-results__option img {
    width: 18px !important;
    height: 13px !important;
    min-width: 18px !important;
    min-height: 13px !important;
    max-width: 18px !important;
    max-height: 13px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 1px !important;
}
.language-select-dropdown .select2-results__option .table-item-name,
.select2-dropdown.language-select-dropdown .select2-results__option .table-item-name {
    font-size: 0.65rem !important;
    color: inherit !important;
}
/* 备用：语言下拉图标（路径含 language/） */
.select2-results__option img[src*="/language/"],
.select2-results__option img[src*="language/"] {
    width: 18px !important;
    height: 13px !important;
    min-width: 18px !important;
    min-height: 13px !important;
    max-width: 18px !important;
    max-height: 13px !important;
    object-fit: contain !important;
}
.header-v2__actions .language-select-theme.select2-container--focus .select2-selection,
.header-v2__actions .language-select-theme.select2-container--open .select2-selection {
    border-color: #3b82f6 !important;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.5rem center/12px 10px !important;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15) !important;
}

/* 账户下拉 - 与小咔子一致，紧凑尺寸 */
.header-v2 .header-v2__user-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.header-v2 .header-v2__user-btn:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}
.header-v2 .header-v2__user-avatar {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}
.header-v2 .header-v2__user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1050;
}
.header-v2 .header-v2__user:hover .header-v2__user-menu,
.header-v2 .header-v2__user .header-v2__user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-v2 .header-v2__user-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s ease;
}
.header-v2 .header-v2__user-item:hover {
    background: #f1f5f9;
    color: #3b82f6;
}
.header-v2 .header-v2__user-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}
.header-v2 .header-v2__user-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.4rem 0;
}

/* actions 区域布局 */
.header-v2 .header-v2__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* 确保 Select2 语言选择器在 header 内正确显示 */
.header-v2__lang-dropdown .select2-container {
    display: inline-flex !important;
}
/* 避免 Select2 与相邻元素间出现多余分隔线 */
.header-v2__actions .language-select-theme .select2-selection {
    margin: 0 !important;
}
/* 确保 iconfont 图标在 header 中正确显示 */
.header-v2 .mcy-icon {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
/* 商品分类、余额、申请卖家按钮：图标与文字齐平 */
.header-v2__category-btn i,
.header-v2__category-btn--mobile i,
.header-v2__balance i,
.header-v2__seller-btn i {
    vertical-align: -0.12em;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .header-v2 .header-v2__balance { display: none !important; }
    .header-v2 .header-v2__lang-dropdown { display: none !important; }
}

/* How Work Section */
.how-work-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 70px 0;
}
.how-work-header { margin-bottom: 50px; }
.how-work-header__badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.how-work-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
}
.how-work-header__desc {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}
.how-work-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}
.hw-step {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 24px 16px;
    position: relative;
    background: #fff;
    border-radius: 16px;
    margin: 0 -1px;
    transition: all 0.3s ease;
}
.hw-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    z-index: 2;
}
.hw-step__num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(59,130,246,0.4);
}
.hw-step__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 14px;
    transition: transform 0.3s ease;
}
.hw-step:hover .hw-step__icon { transform: scale(1.1); }
.hw-step__icon i { font-size: 26px; color: #3b82f6; }
.hw-step__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}
.hw-step__desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.hw-step__arrow {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 3;
}
.hw-step__arrow i { font-size: 14px; color: #3b82f6; }
.hw-step--success .hw-step__num {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 3px 10px rgba(16,185,129,0.4);
}
.hw-step--success .hw-step__icon {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}
.hw-step--success .hw-step__icon i { color: #10b981; }
@media (max-width: 991px) {
    .how-work-steps { flex-wrap: wrap; gap: 24px 12px; justify-content: center; }
    .hw-step { flex: 0 0 calc(33.33% - 12px); max-width: 160px; margin: 0; }
    .hw-step__arrow { display: none; }
}
@media (max-width: 767px) {
    .how-work-section { padding: 50px 0; }
    .how-work-header { margin-bottom: 40px; }
    .how-work-header__title { font-size: 1.5rem; }
    .how-work-steps { gap: 20px 10px; }
    .hw-step { flex: 0 0 calc(50% - 10px); max-width: none; padding: 20px 12px; }
    .hw-step__icon { width: 48px; height: 48px; }
    .hw-step__icon i { font-size: 22px; }
    .hw-step__title { font-size: 0.9rem; }
    .hw-step__desc { font-size: 0.75rem; }
}
@media (max-width: 480px) {
    .hw-step { flex: 0 0 calc(50% - 8px); padding: 16px 10px; }
    .hw-step__num { width: 24px; height: 24px; font-size: 0.7rem; top: -10px; }
    .hw-step__icon { width: 42px; height: 42px; margin: 6px auto 10px; }
    .hw-step__icon i { font-size: 20px; }
}

/* Banner */
.banner-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: fadeInDown 0.6s ease;
}
.banner-trust-badge .badge-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-trust-badge .badge-icon i { color: #fff; font-size: 14px; }
.banner-trust-badge .badge-text { font-size: 0.9rem; color: #374151; }
.banner-trust-badge .badge-text strong { color: #10b981; font-weight: 700; }
@media (max-width: 767px) {
    .banner-trust-badge { padding: 8px 16px; margin-bottom: 20px; }
    .banner-trust-badge .badge-text { font-size: 0.8rem; }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.banner-ac-imgs .ac-img {
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}
.banner-ac-imgs .ac-img:hover {
    transform: scale(1.3) !important;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.25));
}
.banner-ac-imgs .ac-img img { border-radius: 8px; }
.banner-ac-imgs .ac-img:nth-child(1) { animation-name: floatUp; animation-delay: 0s; }
.banner-ac-imgs .ac-img:nth-child(2) { animation-name: floatDiagonal; animation-delay: 0.5s; }
.banner-ac-imgs .ac-img:nth-child(3) { animation-name: floatRotate; animation-delay: 1s; }
.banner-ac-imgs .ac-img:nth-child(4) { animation-name: floatPulse; animation-delay: 1.5s; }
@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}
@keyframes floatDiagonal {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -10px) rotate(8deg); }
    50% { transform: translate(0, -15px) rotate(0deg); }
    75% { transform: translate(-8px, -10px) rotate(-8deg); }
}
@keyframes floatRotate {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-8px) rotate(10deg) scale(1.05); }
    50% { transform: translateY(-12px) rotate(0deg) scale(1.1); }
    75% { transform: translateY(-8px) rotate(-10deg) scale(1.05); }
}
@keyframes floatPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-10px) scale(1.15); opacity: 0.85; }
}

/* Footer */
.footer-compact {
    background: #000000;
    color: #a0aec0;
}
.footer-desktop { display: block; }
.footer-mobile { display: none; }
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 40px;
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 280px; }
.footer-logo img { height: 36px; margin-bottom: 12px; }
.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #8892a0;
    margin: 0;
}
.footer-links { display: flex; gap: 60px; }
.footer-links-group { min-width: 140px; }
.footer-links-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links-list a {
    color: #8892a0;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links-list a:hover { color: #fff; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8892a0;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-contact-item:hover { color: #fff; }
.footer-contact-item i { width: 16px; color: #6366f1; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 12px;
    color: #64748b;
}
.footer-policies { display: flex; gap: 20px; }
.footer-policies a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-policies a:hover { color: #fff; }
@media (max-width: 992px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; }
    .footer-links { gap: 40px; }
}
@media (max-width: 768px) {
    .footer-desktop { display: none; }
    .footer-mobile { display: block; }
    .footer-mobile-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .footer-mobile-logo img { height: 28px; }
    .footer-mobile-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
        font-size: 13px;
    }
    .footer-mobile-nav a { color: #9ca3af; text-decoration: none; }
    .footer-mobile-nav a:hover { color: #fff; }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        padding: 16px 0;
        text-align: center;
    }
    .footer-policies { gap: 14px; flex-wrap: wrap; justify-content: center; }
}

/* OneUI 占位 - 避免 index.js _uiHandleTheme 报错 */
#page-header-loader.overlay-header { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; }

/* ===== 首页分类图标布局（与参考图一致） ===== */
.home-category-icon-panel {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
.home-category-icon-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.home-category-icon-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.home-category-icon-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.home-category-icon-search {
    width: 180px;
    padding: 0.4rem 0.75rem 0.4rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f1f5f9 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3e%3cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3e%3c/svg%3e") no-repeat 0.6rem center;
    color: #334155;
}
.home-category-icon-search::placeholder { color: #94a3b8; }
.home-category-icon-showall {
    padding: 0.4rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
}
.home-category-icon-nav {
    display: flex;
    gap: 0.25rem;
}
.home-category-icon-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.home-category-icon-arrow:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
.home-category-icon-body {
    padding: 1rem 1.25rem;
    overflow: hidden;
}
.home-category-icon-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.home-category-icon-scroll::-webkit-scrollbar { height: 6px; }
.home-category-icon-scroll::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 3px; }
.home-category-icon-scroll::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
/* 全部显示：展开分类框，换行显示全部分类 */
.home-category-icon-panel--expanded .home-category-icon-scroll {
    flex-wrap: wrap;
    overflow: visible;
    max-height: none;
}
.home-cat-icon-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #334155;
    transition: transform 0.2s, color 0.2s;
}
.home-cat-icon-item:hover {
    color: #2563eb;
    transform: translateY(-2px);
}
.home-cat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.home-cat-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.home-cat-icon-name {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 576px) {
    .home-category-icon-header { flex-direction: column; align-items: stretch; }
    .home-category-icon-search-wrap { margin-left: 0; }
    .home-category-icon-search { width: 100%; }
}

/* Layout */
/* 默认不使用 flex 布局,避免底部空白问题 */
html { height: auto; }
body { min-height: 100vh; display: block; margin: 0; }
.site-wrapper { display: block; }

/* 修复遮罩层和隐藏元素占据页面高度的问题 */
.body-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* 只在特定页面启用 flex 布局(如果需要 sticky footer) */
body.use-flex-layout { display: flex; flex-direction: column; min-height: 100vh; }
body.use-flex-layout .site-wrapper { flex: 1; display: flex; flex-direction: column; }
body.use-flex-layout .site-wrapper > .footer-compact,
body.use-flex-layout .site-wrapper > footer { margin-top: auto; flex-shrink: 0; }
body.use-flex-layout .site-wrapper > main,
body.use-flex-layout .site-wrapper > #main-container { flex: 0 1 auto; }

/* 商家主页例外：完全取消 flex 布局避免底部空白 */
/* 第一优先级：覆盖 html 的全局高度设置 */
html:has(body.profile-page) {
    height: auto !important;
    min-height: 0 !important;
}
/* 第二优先级：覆盖 body 的 flex 和高度设置 */
body.profile-page {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    flex-direction: initial !important;
}
/* 第三优先级：覆盖 site-wrapper 的 flex: 1 设置 */
body.profile-page .site-wrapper,
body.profile-page #page-container {
    flex: none !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
}
/* 第四优先级：覆盖 main 的 flex 设置 */
body.profile-page #main-container,
body.profile-page main {
    flex: none !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
}
/* 第五优先级：确保 footer 不会被 margin-top: auto 推到底部 */
body.profile-page footer,
body.profile-page .footer-compact {
    margin-top: 0 !important;
    position: relative !important;
}

/* ========== goodlist 搜索结果页样式（与 goodlist.htm 一致）========== */
.goodlist-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    min-height: 60vh;
}
.goodlist-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.goodlist-summary__left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.goodlist-summary__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.goodlist-summary__label {
    color: #6b7280;
    font-size: 0.9rem;
}
.goodlist-summary__keyword {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}
.goodlist-summary__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    padding: 0.35rem 0.6rem 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
.goodlist-summary__tag i { font-size: 0.9rem; }
.goodlist-summary__tag-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    color: #2563eb;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}
.goodlist-summary__tag-close:hover {
    background: #2563eb;
    color: #fff;
}
.goodlist-summary__count {
    color: #6b7280;
    font-size: 0.9rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e5e7eb;
}
.goodlist-summary__count strong {
    color: #1e293b;
    font-weight: 600;
}
.goodlist-summary__right { flex-shrink: 0; }
.goodlist-sort-form { display: flex; align-items: center; }
.goodlist-sort-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
}
.goodlist-sort-label i { font-size: 1rem; }
.goodlist-sort-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}
.goodlist-sort-select:hover,
.goodlist-sort-select:focus {
    border-color: #3b82f6;
    outline: none;
}
.goodlist-item { margin-bottom: 0.75rem; }
.goodlist-section .catalog-item.improved.horizontal-layout.fixed-two-rows.responsive-card {
    display: flex; flex-direction: row; align-items: center;
    border: 1px solid #e6e6e6; border-radius: 10px;
    padding: 15px; background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    transition: all .3s ease; margin-bottom: 0;
    gap: 8px; flex-wrap: nowrap; width: 100%;
}
.goodlist-section .catalog-item.improved.horizontal-layout.fixed-two-rows.responsive-card:hover {
    box-shadow: 0 10px 24px rgba(15,23,42,.15);
    border-color: rgba(37,99,235,.28);
}
.goodlist-section .catalog-item__thumb.single-row {
    flex: 0 0 50px; display: flex; align-items: center;
    justify-content: center; height: 50px; margin-right: 8px;
}
.goodlist-section .catalog-item__image.fixed-position {
    width: 100%; height: 100%; object-fit: contain;
    border-radius: 8px;
}
.goodlist-section .catalog-item__content.compact-layout {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.goodlist-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}
.goodlist-empty__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.goodlist-empty__icon i {
    font-size: 2.5rem;
    color: #94a3b8;
}
.goodlist-empty__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.goodlist-empty__text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.goodlist-empty__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.goodlist-empty__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn--outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}
.btn--outline:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #1e293b;
}
.goodlist-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}
@media (max-width: 768px) {
    .goodlist-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.875rem 1rem;
    }
    .goodlist-summary__count {
        padding-left: 0;
        border-left: none;
        margin-top: 0.25rem;
    }
    .goodlist-summary__right {
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid #f1f5f9;
    }
    .goodlist-sort-select { width: 100%; }
    .goodlist-empty { padding: 3rem 1.5rem; }
}

/* ===== Banner 浮动图标动画 ===== */
.banner-ac-imgs .ac-img {
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}
.banner-ac-imgs .ac-img:hover {
    transform: scale(1.3) !important;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.25));
}
.banner-ac-imgs .ac-img img {
    border-radius: 8px;
}

/* 不同图标不同动画 */
.banner-ac-imgs .ac-img:nth-child(1) { animation-name: floatUp; animation-delay: 0s; }
.banner-ac-imgs .ac-img:nth-child(2) { animation-name: floatDiagonal; animation-delay: 0.5s; }
.banner-ac-imgs .ac-img:nth-child(3) { animation-name: floatRotate; animation-delay: 1s; }
.banner-ac-imgs .ac-img:nth-child(4) { animation-name: floatPulse; animation-delay: 1.5s; }
.banner-ac-imgs .ac-img:nth-child(5) { animation-name: floatUp; animation-delay: 0.8s; }
.banner-ac-imgs .ac-img:nth-child(6) { animation-name: floatDiagonal; animation-delay: 1.2s; }
.banner-ac-imgs .ac-img:nth-child(7) { animation-name: floatRotate; animation-delay: 0.3s; }
.banner-ac-imgs .ac-img:nth-child(8) { animation-name: floatPulse; animation-delay: 0.7s; }

/* 上下浮动 */
@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 斜向浮动 */
@keyframes floatDiagonal {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -10px) rotate(8deg); }
    50% { transform: translate(0, -15px) rotate(0deg); }
    75% { transform: translate(-8px, -10px) rotate(-8deg); }
}

/* 旋转浮动 */
@keyframes floatRotate {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-8px) rotate(10deg) scale(1.05); }
    50% { transform: translateY(-12px) rotate(0deg) scale(1.1); }
    75% { transform: translateY(-8px) rotate(-10deg) scale(1.05); }
}

/* 脉冲浮动 */
@keyframes floatPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-10px) scale(1.15); opacity: 0.85; }
}

/* ===== 排序标签按钮样式 (SEO优化) ===== */
.sort-tabs button.sort-tab {
    border: none;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--pl-text-muted, #64748b);
    border-radius: 999px;
    transition: all 0.15s ease;
}

.sort-tabs button.sort-tab:hover {
    color: var(--pl-primary, #3b82f6);
    background: rgba(59, 130, 246, 0.08);
}

.sort-tabs button.sort-tab.active {
    color: #fff;
    background: #000;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.sort-tabs button.sort-tab:focus {
    outline: none;
}

/* ===== 视图切换按钮样式 ===== */
.view-switch {
    display: inline-flex;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    height: 32px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.view-switch__btn {
    border: 0;
    background: transparent;
    padding: 0 14px;
    font-size: 0.85rem;
    line-height: 32px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.view-switch__btn + .view-switch__btn {
    border-left: 1px solid #e2e8f0;
}

.view-switch__btn:hover {
    color: #1e293b;
    background: #f8fafc;
}

.view-switch__btn.active {
    background: #3b82f6;
    color: #fff;
}

.view-switch__btn:focus {
    outline: 0;
}

.view-switch__btn i {
    font-size: 16px;
}

/* ===== 加载提示样式 ===== */
#loading-more {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loading-more .spinner-border {
    border-width: 0.2em;
}

#loading-more .text-muted {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== 商品数量显示样式 ===== */
.products-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f9fafb;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

.products-count-num {
    font-weight: 700;
    color: #111827;
}

.products-count-label {
    font-weight: 500;
}

/* ===== Banner 分类列表 ===== */
.banner-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.banner-category-list .item {
    margin: 0;
    padding: 0;
}

.banner-category-list .link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.banner-category-list .category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.banner-category-list .category-icon-font {
    font-size: 18px;
    flex-shrink: 0;
}

.banner-category-list .link:hover {
    background: #fff;
    color: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.banner-category-list .item.active .link {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.banner-category-list .item.active .link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .banner-category-list {
        gap: 8px 10px;
    }
    .banner-category-list .link {
        padding: 6px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }
    .banner-category-list .category-icon {
        width: 16px;
        height: 16px;
    }
    .banner-category-list .category-icon-font {
        font-size: 16px;
    }
}

/* ===== 全部分类页 - 分类树 ===== */
:root {
  --cat-lvl-0: #0d6efd;
  --cat-lvl-1: #5799fd;
  --cat-lvl-2: #9ebefd;
  --cat-lvl-3: #d5e3ff;
  --cat-divider: #eef2f7;
}

.cat-toolbar {
  background: #fff;
  border: 1px solid #e9eef4;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin: 0.75rem 0.75rem 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr minmax(260px, 520px);
  grid-template-areas:
    "left  chips"
    "search search";
}
.tool-left { grid-area: left; display: flex; align-items: center; gap: 0.35rem; }
.cat-toolbar .title { font-weight: 700; color: #111827; }

.tool-chips {
  grid-area: chips;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tool-chips::-webkit-scrollbar { height: 6px; }
.tool-chips::-webkit-scrollbar-thumb { background: #e5eaf1; border-radius: 999px; }

.tool-search { grid-area: search; display: flex; }

.searchbar .input-group-text { background: #f8fafc; border-color: #e5eaf1; }
.searchbar .form-control { border-color: #e5eaf1; border-left: 0; }
.searchbar .form-control:focus {
  border-color: #bcd2ff;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.08);
}

.chip, .chip-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  background: #fff;
  border: 1px solid #e5eaf1;
  color: #374151;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.chip:hover, .chip-btn:hover { background: #f7fafc; }
.chip-btn { cursor: pointer; }
.chip-btn i { color: #2563eb; }

.cat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  position: relative;
  transition: background 0.15s;
  border-bottom: 1px dashed var(--cat-divider);
}
.cat-row:hover { background: #f5f9ff; }
.cat-row:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cat-lvl-0);
  border-radius: 0.25rem 0 0 0.25rem;
}
.category-tree .lvl-1 > .cat-row:before { background: var(--cat-lvl-1); }
.category-tree .lvl-2 > .cat-row:before { background: var(--cat-lvl-2); }
.category-tree .lvl-3 > .cat-row:before { background: var(--cat-lvl-3); }

.toggle-btn {
  background: #fff;
  border: 1px solid #e3eaf3;
  width:36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.toggle-btn[type="button"] { cursor: pointer; }
.toggle-btn i { transition: transform 0.2s; font-size: 12px; color: #6c7a8a; }
.toggle-btn.collapsed i { transform: rotate(0); }
.toggle-btn[aria-expanded="true"] i { transform: rotate(90deg); }

.cat-icon { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.cat-link { flex: 1; color: #212529; text-decoration: none; font-weight: 500; line-height: 1.2; padding: 0.15rem 0; }
.cat-link:hover { color: #0d6efd; text-decoration: underline; }
.badge-count {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  padding: 0.15rem 0.5rem;
  min-width: 36px;
  border-radius: 999px;
  font-size: 0.75rem;
}
.badge-count[data-zero="1"][data-show="0"] { display: none; }

.cat-children { padding-left: 1.25rem; }
.category-tree .active > .cat-row { background: #eef6ff; font-weight: 600; }

.match .cat-link { background: #fff3cd; border-radius: 6px; padding: 0.15rem 0.35rem; }
.dimmed { opacity: 0.45; }

.categories-page .main-container {
  width: 100%;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (min-width: 768px) {
  .categories-page .main-container { width: 66.666667%; }
}
@media (max-width: 576px) {
  .cat-toolbar {
    padding: 0.9rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "chips"
      "search";
  }
  .tool-left { margin-bottom: 0.2rem; }
  .tool-chips { gap: 0.6rem; }
  .chip, .chip-btn { height: 36px; padding: 0 0.75rem; font-size: 0.9rem; }
  .searchbar .input-group-text i { font-size: 14px; }
  .cat-row { padding: 0.7rem 0.75rem 0.7rem 1rem; }
}

