/* ============================================================
   公共组件样式 — components.css
   来源：style.css + new.css（跨页面公共组件）
   组织：从上到下按页面视觉顺序
   计算规则：new.css 在 style.css 之后加载，同名选择器取 new.css 值
   已删除：hot-keywords（未使用）、more-link（未使用）、brand-chip（未使用）
          arrow-btn 基类（未使用）、p-card/p-media/p-name 系列（视图用 product-card 替代）
          footer-top/footer-col-title/footer-tags（new.css 替代或未使用）
   ============================================================ */

/* ============================================================
   1. 顶部页头
   来源：style.css（唯一来源，无覆盖）
   ============================================================ */
.top-header {
    background: var(--blue-grad);
    min-height: 90px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ============================================================
   11. 移动端底栏
   原 style.css min-width:320px — 提升为顶层规则
   ============================================================ */
@media (min-width: 320px) {
    .mobile_bottom span a {
        color: #FFF;
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .mobile_bottom span .fa-home,
    .mobile_bottom span .fa-special,
    .mobile_bottom span .fa-categories,
    .mobile_bottom span .fa-cart,
    .mobile_bottom span .fa-bmember {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}

.logo-text {
    font-size: 50px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
}

.logo-text .t {
    color: #ff4a2a;
    text-shadow: 0 0 10px rgba(255,74,42,.45);
}

.logo-text a { display: flex; }

.header-main {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    width: 100%;
}

.header-left { flex: 0 0 220px; }
.header-center { flex: 1 1 auto; min-width: 0; }
.header-right { flex: 0 0 360px; }

.search-wrap input {
    border-radius: 0;
    border: none;
    height: 40px;
    font-size: 15px;
    padding-left: 16px;
}

.search-wrap input:focus { box-shadow: none; }

.search-wrap button {
    border-radius: 0;
    background: #ff4a2a;
    border: none;
    color: #fff;
    min-width: 125px;
    height: 40px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s ease;
}

.search-wrap button:hover,
.search-wrap button:focus,
.search-wrap button:active {
    background: #e43f22 !important;
    border: none;
    color: #fff !important;
    box-shadow: none;
}

.header-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    width: 100%;
}

.header-tools a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.tool-icon { font-size: 15px; opacity: .95; }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4a2a;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
    padding: 0 4px;
}

/* ============================================================
   2. 菜单栏
   来源：style.css（唯一来源，无覆盖）
   ============================================================ */
.menu-bar {
    background: var(--red-grad);
    position: sticky;
    top: 90px;
    z-index: 90;
}

.menu-item { position: relative; }

.menu-item > a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 14px 18px;
}

.menu-item:hover > a { background: rgba(255,255,255,.12); }

.menu-item.has-sub > a::after {
    content: "▾";
    font-size: 12px;
    margin-left: 7px;
    opacity: .9;
}

.submenu, .thirdmenu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    position: absolute;
    display: none;
    z-index: 50;
}

.submenu { top: 100%; left: 0; }
.thirdmenu { top: 0; left: 100%; }

.submenu li, .thirdmenu li { position: relative; }

.submenu a, .thirdmenu a {
    color: #1f2937;
    padding: 9px 14px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.submenu li.has-third > a {
    position: relative;
    padding-right: 28px;
}

.submenu li.has-third > a::after {
    content: "▸";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
}

.submenu a:hover, .thirdmenu a:hover { background: #f3f4f6; }

.submenu-category-a a:hover { background: none; }

/* ============================================================
   2b. All Categories 下拉菜单
   来源：list.css（原始唯一来源，多页面共用）
   ============================================================ */
.menu-item.all-categories > a { background: rgba(0,0,0,.16); }
.menu-item.all-categories:hover > a { background: rgba(0,0,0,.24); }

.allcat-dropdown {
    width: 318px;
    padding: 0;
    border-top: none;
    overflow: visible;
    background: #fff;
    list-style: none;
}

.allcat-dropdown > li {
    position: static;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    background: #fff;
}

.allcat-dropdown > li:last-child { border-bottom: none; }

.allcat-dropdown > li::after {
    content: "\25B8";
    margin-left: auto;
    color: #a3afc9;
    font-size: 12px;
}

.allcat-dropdown > li:hover { background: #fff3ef; color: #e43f22; }

.allcat-dropdown .category-flyout {
    position: absolute;
    left: 100%;
    top: 0px;
    margin-top: 0;
    transform: none;
    width: calc(var(--container-max) - 100% - 24px);
    min-height: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
    display: none;
    padding: 16px;
    white-space: normal;
    border: none;
}

.allcat-dropdown .category-flyout .sub-col-title a:hover,
.allcat-dropdown .category-flyout .sub-links a:hover {
    background: transparent !important;
}

.allcat-dropdown > li:hover .category-flyout { display: block; }

/* ============================================================
   3. 分类面板 & 浮层
   来源：style.css（唯一来源，无覆盖）
   ============================================================ */
.banner-row {
    align-items: stretch;
    position: relative;
    overflow: visible;
}

.category-panel {
    background: #fff;
    overflow: visible;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-height: 472px;
}

.cat-title {
    background: #ffc928;
    color: #1c2746;
    font-size: 17px;
    font-weight: 800;
    height: 56px;
    padding: 0 16px;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lvl1-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
}

.lvl1-list > li {
    min-height: 52px;
    padding: 0 16px;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    white-space: nowrap;
}

.lvl1-list > li:last-child { border-bottom: none; }

.lvl1-list > li:hover {
    background: #fff3ef;
    color: #e43f22;
}

.lvl1-list > li::after {
    content: "▸";
    margin-left: auto;
    color: #a3afc9;
    font-size: 12px;
    line-height: 1;
}

.lvl1-icon { color: #5f77b3; font-size: 14px; flex: 0 0 auto; }
.lvl1-text { flex: 1 1 auto; }

.lvl1-text a { text-decoration: none; color: #1f2937; }
.lvl1-text a:hover { color: #e43f22; }

.category-flyout {
    position: absolute;
    left: 100%;
    top: 0px;
    width: calc(var(--container-max) - 100% - 24px);
    min-height: calc(100% + 1px);
    height: auto;
    background: #fff;
    border-left: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
    z-index: 60;
    display: none;
    padding: 16px;
    white-space: normal;
    border: none;
}

.lvl1-list > li:hover .category-flyout { display: block; }

.category-flyout .mb-2 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #eef1f7;
}

.category-flyout .mb-2:last-child { border-bottom: none; }

.sub-col-title {
    color: #e43f22;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 14px;
    position: relative;
}

.category-flyout .sub-col-title {
    margin-bottom: 0;
    margin-top: 4px;
    flex: 0 0 220px;
    line-height: 1.5;
}

.category-flyout .sub-links {
    flex: 1 1 auto;
    line-height: 1.8;
    white-space: normal;
}

.sub-col-title a {
    font-size: 15px;
    color: #374151;
    margin-right: 10px;
    padding: 0px;
    text-decoration: none;
    display: inline-block;
}

.sub-col-title a:hover { color: #e43f22; }

.sub-col-title::after {
    content: "▸";
    margin-left: auto;
    position: absolute;
    right: 0;
    top: 0;
    color: #a3afc9;
}

.sub-links a {
    font-size: 13px;
    color: #374151;
    margin-right: 25px;
    padding: 0px;
    text-decoration: none;
    display: inline-block;
    font-weight: normal;
}

.sub-links a:hover { color: #e43f22; }

/* ============================================================
   4. Banner & 轮播
   来源：style.css（唯一来源）
   ============================================================ */
.banner-main {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

#heroCarousel, #heroCarousel .carousel-inner, #heroCarousel .carousel-item {
    height: 100%;
}

.carousel-inner img {
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ============================================================
   5. 内容区 & 区域标题
   .content-strip: style.css 唯一
   .section-title: 实际渲染取 new.css（style.css 被覆盖）
      新值 font-size:2rem; font-weight:700; margin-bottom:1rem; color:var(--dark-color)
      vs 旧值 font-size:22px; margin:0; font-weight:800
   ============================================================ */
.content-strip {
    margin-top: 24px;
    padding-bottom: 24px;
}

.section-title {
    font-size: 2rem;              /* new.css 覆盖 style.css:22px */
    font-weight: 700;             /* new.css 覆盖 style.css:800 */
    margin-bottom: 1rem;          /* new.css，style.css:margin:0 */
    color: var(--dark-color);     /* 仅 new.css 定义 */
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

/* ============================================================
   5b. 产品卡片系统（p-card/p-media/p-name 系列）
   来源：style.css line 661-767（style.css 独有）
   注：products-grid-featured 在下方覆盖 min-height/height
   ============================================================ */
.p-card {
    border: none;
    border-radius: 0;
    padding: 0px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 34, 64, .12);
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
    cursor: pointer;
}

.p-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 34px rgba(20, 34, 64, .22);
}

.p-media {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.p-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.p-name {
    margin: 10px 0 8px;
    font-size: 14px;
    min-height: 40px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    color: #e43f22;
    font-weight: 700;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 12px;
    margin-left: 8px;
}

.p-badge-left,
.p-badge-right {
    position: absolute;
    top: 10px;
    font-size: 11px;
    line-height: 1;
    padding: 6px 8px;
    color: #fff;
    font-weight: 700;
    z-index: 2;
}

.p-badge-left { left: 10px; background: #e43f22; }
.p-badge-right { right: 10px; background: #1f2e57; }

.p-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 12px;
    margin: 8px 0 10px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 8px;
    display: none;
}

.p-btn {
    margin-top: auto;
    width: 100%;
    border: none;
    background: #ff4a2a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    height: 36px;
    cursor: pointer;
    transition: background .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    display: none;
}

.p-btn i { font-size: 14px; }

.p-btn:hover { background: #c0392b; }

/* ============================================================
   6. 分类滑块
   来源：style.css，arrow-btn 基类未使用已删除，仅保留子类
   ============================================================ */
.cat-slider-wrap {
    position: relative;
    overflow: hidden;
}

.cat-slider-track {
    display: flex;
    gap: 14px;
    transition: transform .35s;
}

.cat-card {
    min-width: 154px;
    text-align: center;
    cursor: pointer;
}

.cat-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0;
}

.cat-card p {
    margin: 0px;
    padding: 10px 0;
    background-color: #e5e5e5;
    font-size: 13px;
    font-weight: 600;
}

.arrow-prev { left: 0px; }
.arrow-next { right: 0px; }

/* arrow-btn 的通用样式合并到子类 */
.arrow-prev, .arrow-next {
    position: absolute;
    top: 38%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    color: #fff;
    background: rgba(28,39,70,.8);
    z-index: 4;
}

/* ============================================================
   7. 产品网格 & 产品卡片
   products-grid: style.css 默认5列，list.css 4列覆盖
   product-card: 实际渲染取 new.css（视图中使用此版本）
   p-card/p-media/p-name/price/old-price 等旧版组件已删除
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* style.css 基础值，list.css 覆盖为4列 */
    gap: 14px;                    /* style.css 基础值，list.css 覆盖为15px */
    margin-top: 14px;
}

/* list.css 全局覆盖：产品卡片在网格中去掉底部间距 */
.products-grid .product-card {
    margin-bottom: 0;
}

.products-grid-featured {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.products-grid-featured .p-card {
    min-height: 400px;
}

.products-grid-featured .p-media {
    height: 300px;
}

.products-grid-featured .p-name {
    min-height: 44px;
    font-size: 15px;
    margin-top: 10px;
    padding: 0 10px;
}

.products-grid-featured .p-card:nth-child(n+9) {
    display: none;
}

.products-grid-featured .p-card > div:nth-of-type(3) {
    padding: 0 10px;
}

/* --- 新版产品卡片（new.css，实际渲染版本）--- */
.product-card {
    background: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.best-sellers-layout .product-card { margin-bottom: 0px; }
.best-sellers-layout .product-card .product-info { padding: 10px; }
.best-sellers-layout .product-card .product-info p { margin-bottom: 0px; }

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-card:hover .product-image img { transform: scale(1.1); }

.product-actions {
    position: absolute;
    bottom: -72px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions { bottom: 0; }

.product-actions button {
    background: var(--dark-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions button:hover { background: var(--primary-color); }

.product-info { padding: 0.5rem; }

.product-title {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(3 * 1.2rem);
}

.product-title a { text-decoration: none; color: var(--dark-color); }
.product-title a:hover { color: var(--primary-color); }

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* ============================================================
   7b. 品牌网格 + 博客网格
   来源：style.css line 907-1012（style.css 独有）
   响应式覆盖见下方 @media 区域
   ============================================================ */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.brand-item {
    border: 1px solid #eceff5;
    border-radius: 0;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.blog-card {
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 100%;
    border-top: 2px solid #e6ebf6;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card h5 {
    font-size: 18px;
    margin-bottom: 8px;
}

.blog-card p {
    margin-bottom: 10px;
    color: #4b5563;
}

/* ============================================================
   7c. 分页 — Bootstrap 分页覆盖（多页面共用）
   来源：list.css line 260-263
   ============================================================ */
.pagination-wrap { margin-top: 18px; display: flex; justify-content: center; }
.pagination .page-link { color: #1f2e57; }
.pagination .active .page-link { background: #ff4a2a; border-color: #ff4a2a; color: #fff; }
.page-link:focus { box-shadow: none !important; }

/* ============================================================
   8. 标签页 & 面板
   来源：style.css（唯一来源）
   ============================================================ */
.tabs a {
    color: #6b7280;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

.tabs a.active { color: #e43f22; font-weight: 700; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.popular-panel { display: none; }
.popular-panel.active { display: block; }

.category-product-panel { display: none; }
.category-product-panel.active { display: block; }

/* ============================================================
   9. 页脚
   实际渲染取 new.css（style.css 被覆盖）
   style.css: .footer background:#1b2748; color:#d8e1ff; margin-top:24px
   new.css: background-color:#1b2748; color:white; padding:4rem 0 0rem
   计算实际：new.css 版本生效
   .footer-bottom / .footer-links 同样以 new.css 实际渲染为准
   ============================================================ */
.footer {
    background-color: #1b2748;  /* new.css（同色系，与 style.css:#1b2748 一致） */
    color: white;               /* new.css 覆盖 style.css:#d8e1ff */
    padding: 4rem 0 0rem;       /* new.css */
    margin-top: 24px;           /* style.css，new.css 未覆盖 */
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer a {
    color: #d8e1ff;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--primary-color); }

.footer-bottom {
    padding-top: 2rem;           /* new.css 覆盖 style.css padding-top:14px */
    padding-bottom: 20px;        /* style.css 保留 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.6); /* new.css 覆盖 style.css:#c7d5fb */
    text-align: center;           /* new.css 新增 */
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0px;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0px;
    font-weight: 600;
}

/* ============================================================
   10. 面包屑
   来源：style.css line 93-105（style.css 独有，new.css 无此组件）
   注：list.css 也有 breadcrumb-strip，属性相同，由 list.css 按需扩充
   ============================================================ */
.breadcrumb-strip {
    background: #f3f6fb;
    border-top: 1px solid #e8edf6;
    border-bottom: 1px solid #e8edf6;
}

.breadcrumb-strip .breadcrumb { margin: 0; padding: 10px 0; }

.breadcrumb a { text-decoration: none; }

/* ============================================================
   11. 移动端底栏
   来源：style.css（唯一来源）
   ============================================================ */
.mobile_bottom {
    width: 100%;
    background: #ffcf38;
    padding: 0.5rem 0;
    z-index: 1000;
    position: fixed;
    bottom: 0;
}

.mobile_bottom span {
    float: left;
    width: 25%;
    text-align: center;
    font-size: 1rem;
    color: #FFF;
}

.mobile_bottom span a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
}

.mobile_bottom span .fa-home,
.mobile_bottom span .fa-special,
.mobile_bottom span .fa-categories,
.mobile_bottom span .fa-cart,
.mobile_bottom span .fa-bmember {
    font-size: 2rem;
    color: #FFF;
}

/* ============================================================
   响应式适配
   按四档断点：≥1200px / ≥992px / ≥768px / <768px
   将 style.css 中原有各断点 @media 规则按映射归入
   ============================================================ */

/* ≥1200px (大屏补充) */
@media (min-width: 1200px) {
    /* 暂无极小屏规则，预留 */
}

/* ≥992px (桌面补充)
   原 min-width:992px → mobile_bottom display:none
   ============================================================ */
@media (min-width: 992px) {
    .mobile_bottom { display: none; }
}

/* ≤1199px (原 style.css max-width:1200px 映射)
   .products-grid 5→4列、products-grid-featured、brand-grid
   ============================================================ */
@media (max-width: 1199.98px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .products-grid-featured .p-media { height: 260px; }
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ≥768px (平板补充)
   保留原 style.css max-width:991px 分类行 → 可视区内4列
   保留原 style.css min-width:768px mobile_bottom 样式
   ============================================================ */
@media (min-width: 768px) {
    /* --- 原 style.css max-width:991px 分类行 --- */
    .categories-row > div {
        flex: 0 0 calc(25% - 0.75rem);
        max-width: calc(25% - 0.75rem);
    }

    /* --- 原 style.css min-width:768px mobile_bottom --- */
    .mobile_bottom span a { color: #FFF; font-size: 1rem; line-height: 2rem; }
    .mobile_bottom span .fa-home,
    .mobile_bottom span .fa-special,
    .mobile_bottom span .fa-categories,
    .mobile_bottom span .fa-cart,
    .mobile_bottom span .fa-bmember {
        font-size: 1.875rem;
        line-height: 2.2rem;
        color: #FFF;
    }
}

/* ≤991px (移动端折叠布局)
   原 style.css @media (max-width:992px) — 头部/菜单/布局折叠
   修复：从 min-width:768px 移回 max-width:991.98px
   ============================================================ */
@media (max-width: 991.98px) {
    .logo-text { font-size: 34px; }
    .header-tools { display: none; }
    .category-panel { display: none; }
    .header-main { display: block; }
    .header-left, .header-center, .header-right {
        max-width: 100%;
        min-width: 0;
        flex: unset;
    }
    .header-center { margin-top: 8px; }
    .banner-row { flex-direction: column; }
    .category-flyout {
        position: static;
        width: 100%;
        height: auto;
        border-left: 1px solid #e5e7eb;
        margin-top: 10px;
        display: none !important;
    }
    .banner-main { margin-top: 10px; }
    .carousel-inner img { border-radius: 0; height: 280px; }

    /* 原 new.css max-width:991.98px */
    .section-title { font-size: 1.5rem; }

    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .best-sellers-layout { grid-template-columns: 1fr; }
    .best-sellers-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card img { height: 200px; }
}

/* <768px (移动端)
   包含原 max-width:767px → 分类行 2 列
   包含原 max-width:575px → 分类行 1 列
   包含原 min-width:320px → mobile_bottom
   ============================================================ */
@media (max-width: 767.98px) {
    /* 原 style.css max-width:767px */
    .categories-row > div {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    /* 原 style.css max-width:575px */
    @media (max-width: 575.98px) {
        .categories-row > div {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

}
