:root {
    --container-max: 1260px;
    --blue-grad: linear-gradient(90deg, #1c2746, #1f2e57);
    --red-grad: linear-gradient(90deg, #ff4a2a, #e43f22);
    --text-dark: #1f2937;
    --muted: #6b7280;
}

body {
    color: var(--text-dark);
    background: #fafcff;
    overflow-x: hidden;
}

/* 自定义样式 */
.at-m-0 {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.at-ml-1 {
    margin-left: 12px;
}

.at-mr-1 {
    margin-right: 12px;
}

.at-mt-1 {
    margin-top: 12px;
}

.at-mb-1 {
    margin-bottom: 12px;
}

.at-p-0 {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.at-pl-1 {
    padding-left: 12px;
}

.at-pr-1 {
    padding-right: 12px;
}

.at-pt-1 {
    padding-top: 12px;
}

.at-pb-1 {
    padding-bottom: 12px;
}

.bi-plus-circle {
    margin-top: 2px;
}

.advertisement-container {
    padding: 0 4rem 3rem;
    background: linear-gradient(135deg, #004e89 0%, #0066b2 100%);
}

.categories-section {
    padding: 3rem 0;
}

.categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .categories-row > div {
        flex: 0 0 calc(12.5% - 1rem);
        max-width: calc(12.5% - 1rem);
    }

@media (max-width: 991px) {
    .categories-row > div {
        flex: 0 0 calc(25% - 0.75rem);
        max-width: calc(25% - 0.75rem);
    }
}

@media (max-width: 767px) {
    .categories-row > div {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 575px) {
    .categories-row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .category-icon-wrapper svg {
        width: 100%;
        height: 100%;
    }

.category-card h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}


.safe-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

.top-header {
    background: var(--blue-grad);
    min-height: 90px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.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 {
        -webkit-box-shadow: none;
        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;
    }

.hot-keywords {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .hot-keywords a {
        color: #c6d2f3;
        font-size: 12px;
        margin-right: 12px;
        text-decoration: none;
    }

        .hot-keywords a:hover {
            color: #fff;
        }

.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;
}

.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;
}
/* Menu show/hide animation is controlled by jQuery slide effects. */
.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;
    }

.brand-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 15px;
    margin: 2px 6px 2px 0;
    font-size: 12px;
}

.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;
}

.content-strip {
    margin-top: 24px;
    padding-bottom: 24px;
}

.section-title {
    font-size: 22px;
    margin: 0;
    font-weight: 800;
}

.more-link {
    color: #e43f22;
    text-decoration: none;
    font-weight: 600;
}

.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-btn {
    position: absolute;
    top: 38%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    color: #fff;
    background: rgba(28,39,70,.8);
    z-index: 4;
}

.arrow-prev {
    left: 0px;
}

.arrow-next {
    right: 0px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.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;
        line-height: 1;
    }

    .p-btn:hover {
        background: #e43f22;
    }

.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;
    }

.best-sellers-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: stretch;
}

.best-sellers-ad {
    background: linear-gradient(180deg, #ff6a4f, #e43f22);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

    .best-sellers-ad h4 {
        font-size: 24px;
        margin: 0 0 10px;
        font-weight: 800;
    }

    .best-sellers-ad p {
        font-size: 13px;
        margin: 0 0 12px;
        opacity: .95;
    }

    .best-sellers-ad .ad-btn {
        display: inline-block;
        background: #ffcf38;
        color: #8a2d13;
        font-weight: 700;
        font-size: 13px;
        text-decoration: none;
        padding: 7px 12px;
    }

    .best-sellers-ad img {
        width: 100%;
        object-fit: cover;
    }

.best-sellers-grid {
    margin-top: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.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;
    }

.ad-carousel img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
}

.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;
}

.testimonials {
    background: linear-gradient(90deg, #ecf2ff, #f8fbff);
    padding: 36px 0;
    margin-top: 24px;
}

.testimonials-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.review-card {
    background: #fff;
    border-radius: 0;
    padding: 18px;
    border: none;
    box-shadow: none;
    height: 100%;
    border-top: 2px solid #e6ebf6;
}

.review-stars {
    color: #ff9f1a;
    letter-spacing: 1px;
    font-size: 13px;
}

.review-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e6ebf5;
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 13px;
}

.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-body {
    padding: 14px 16px 16px;
}

.blog-card h5 {
    font-size: 18px;
    margin-bottom: 8px;
}

.blog-meta {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.blog-card p {
    margin-bottom: 10px;
    color: #4b5563;
}

.blog-read {
    color: #e43f22;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.footer {
    background: #1b2748;
    color: #d8e1ff;
    margin-top: 24px;
}

.footer-top {
    padding: 34px 0 20px;
    border-bottom: 1px solid rgba(173, 190, 235, .24);
}

.footer-col-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

.footer a {
    color: #d8e1ff;
    text-decoration: none;
    font-size: 14px;
}

    .footer a:hover {
        color: #fff;
    }

.footer-tags span {
    display: inline-block;
    border: 1px solid rgba(216, 225, 255, .35);
    border-radius: 20px;
    padding: 4px 10px;
    margin: 0 8px 8px 0;
    font-size: 12px;
}

.footer-bottom {
    padding: 14px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #c7d5fb;
}

.clearfix:before, .clearfix:after {
    content: "";
    display: table;
}

.clearfix::after {
    display: flex;
    clear: both;
    content: ""
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.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 {
            font-size: 2rem;
            color: #FFF;
        }

        .mobile_bottom span .fa-special {
            font-size: 2rem;
            color: #FFF;
        }

        .mobile_bottom span .fa-categories {
            font-size: 2rem;
            color: #FFF;
        }

        .mobile_bottom span .fa-cart {
            font-size: 2rem;
            color: #FFF;
        }

        .mobile_bottom span .fa-bmember {
            font-size: 2rem;
            color: #FFF;
        }

@media (min-width:320px) {
    .mobile_bottom span a {
        color: #FFF;
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .mobile_bottom span .fa-home {
        font-size: 1.5rem;
        line-height: 1.5rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-special {
        font-size: 1.5rem;
        line-height: 1.5rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-categories {
        font-size: 1.5rem;
        line-height: 1.5rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-cart {
        font-size: 1.5rem;
        line-height: 1.5rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-bmember {
        font-size: 1.5rem;
        line-height: 1.5rem;
        color: #FFF;
    }
}

@media (min-width:768px) {
    .mobile_bottom span a {
        color: #FFF;
        font-size: 1rem;
    }

    .mobile_bottom span .fa-home {
        font-size: 1.875rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-special {
        font-size: 1.875rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-categories {
        font-size: 1.875rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-cart {
        font-size: 1.875rem;
        color: #FFF;
    }

    .mobile_bottom span .fa-bmember {
        font-size: 1.875rem;
        color: #FFF;
    }
}

@media (min-width:992px) {
    .mobile_bottom {
        display: none;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid-featured .p-media {
        height: 260px;
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .logo-text {
        font-size: 34px;
    }

    .header-tools {
        display: none;
    }

    .category-panel {
        display: none;
    }

    .banner-panel {
        padding-left: 0;
    }

    .hot-keywords {
        white-space: normal;
    }

    .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-panel {
        width: 100%;
        flex: unset;
    }

    .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;
    }

    .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;
    }
}
