body {
    padding-top: 88px;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    min-width: 0;
    width: calc(100% - 32px);
    max-width: 1300px;
}

.sr_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(244, 81, 30, 0.98), rgba(229, 67, 16, 0.98));
    backdrop-filter: blur(12px);
}

.site-header .header_bar {
    height: auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.site-header .site_brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .site_brand img {
    width: auto;
    height: 24px;
}

.site-header .menu_toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.site-header .menu_toggle > span:not(.sr_only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background-color: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.menu-open .menu_toggle > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu_toggle > span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu_toggle > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-header .header_panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.site-header .site_nav {
    height: auto;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.site-header .site_nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.site-header .site_nav a,
.site-header .nav_group_toggle {
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.site-header .site_nav a.active,
.site-header .site_nav a:hover,
.site-header .nav_group.is-active .nav_group_toggle,
.site-header .nav_group_toggle:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.site-header .nav_group {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-header .nav_group_toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.site-header .nav_group_toggle::after {
    content: "+";
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.site-header .nav_group.is-open .nav_group_toggle::after {
    content: "-";
}

.site-header .nav_group_links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.site-header .site_search {
    position: relative;
    display: flex;
    align-items: center;
    width: 220px;
    flex-shrink: 0;
}

.site-header .site_search input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 0 48px 0 16px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 14px;
}

.site-header .site_search input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.site-header .site_search input[aria-invalid="true"] {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22);
}

.site-header .site_search button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(244, 81, 30, 0.12);
}

.site-header .site_search button .iconfont {
    font-size: 20px;
}

.pagination {
    flex-wrap: wrap;
    gap: 6px;
}

.pagination li {
    margin-left: 0 !important;
}

.crumbs,
.detail_main .detail_bottom_info .d_main .hot_sell_product .top {
    gap: 12px;
    flex-wrap: wrap;
}

.product_info .info_main dl dd {
    overflow-x: auto;
}

.product_info .info_main dl dd table {
    min-width: 480px;
}

.primary_main .mainBox,
.product_main .product_main_content,
.detail_main .detail_top_info,
.detail_main .detail_bottom_info,
.product_info .info_main,
.pat .pat_main,
.category_list li,
.pro_list_box li,
.hot_pet .main li a {
    overflow: hidden;
}

.hot_pet,
.pat,
.primary_main,
.category_list,
.pro_list_box,
.product_info,
.product_main,
.detail_main,
#extension,
.recommend_pet {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

@media screen and (max-width: 1180px) {
    #banner .swiper-wrapper .swiper-slide {
        flex-direction: column;
    }

    #banner .swiper-wrapper .swiper-slide > .ih-item,
    #banner .swiper-wrapper .swiper-slide .small_list,
    #new_pet .main,
    #new_pet .aside,
    .pat .pat_main .left_swiper,
    .pat .pat_main .right_dl,
    .product_info .info_main,
    .product_info .ad,
    .product_main .product_main_content,
    .product_main aside,
    .detail_main .detail_bottom_info .d_main,
    .detail_main .detail_bottom_info aside,
    .detail_main .detail_top_info .m .main_info_content,
    .detail_main .detail_top_info .m .main_info_thum {
        width: 100%;
    }

    #banner .swiper-wrapper .swiper-slide .small_list {
        margin-top: 15px;
    }

    #banner .swiper-wrapper .swiper-slide .small_list .ih-item {
        height: 220px;
    }

    #new_pet,
    .pat .pat_main,
    .product_info,
    .product_main,
    .detail_main .detail_bottom_info,
    .detail_main .detail_top_info .m {
        flex-direction: column;
        gap: 20px;
    }

    #new_pet .aside .top_pet {
        min-height: 320px;
    }

    .hot_pet .main li,
    .category_list li,
    .pro_list_box li {
        width: calc((100% - 30px) / 3);
    }

    .hot_pet .main li:nth-child(6n),
    .category_list li:nth-child(5n),
    .pro_list_box li:nth-child(5n) {
        margin-right: 15px;
    }

    .hot_pet .main li:nth-child(3n),
    .category_list li:nth-child(3n),
    .pro_list_box li:nth-child(3n) {
        margin-right: 0;
    }

    .hot_pet .main li:nth-child(n + 4),
    .category_list li:nth-child(n + 4),
    .pro_list_box li:nth-child(n + 4) {
        margin-top: 15px;
    }

    .pat .pat_main .left_swiper {
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .pat .pat_main .left_swiper .swiper-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .pat .pat_main .right_dl {
        padding: 24px 0;
    }

    .recommend_pet .ih-item {
        width: calc((100% - 42px) / 4);
    }

    .recommend_pet .ih-item:nth-child(n + 5) {
        margin-top: 14px;
    }

    .product_main aside ul li a .thum,
    .product_main aside ul li a .thum.thum_small,
    .detail_main .detail_bottom_info aside ul li a .thum,
    .detail_main .detail_bottom_info aside ul li a .thum.thum_small {
        width: 100%;
        height: 220px;
    }
}

@media screen and (max-width: 1280px) {
    body {
        padding-top: 64px;
    }

    .site-header .header_bar {
        min-height: 64px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 0;
    }

    .site-header .menu_toggle {
        display: flex;
        width: 40px;
        height: 40px;
    }

    .site-header .header_panel {
        order: 3;
        display: none;
        width: 100vw;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 76px);
        padding: 12px 16px 16px;
        border-radius: 0;
        background: linear-gradient(180deg, rgba(236, 96, 51, 0.98), rgba(213, 71, 26, 0.98));
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .site-header .header_panel.is-open {
        display: flex;
    }

    .site-header .site_nav {
        display: grid;
        gap: 10px;
    }

    .site-header .site_nav > a,
    .site-header .nav_group {
        width: 100%;
    }

    .site-header .site_nav > a {
        justify-content: flex-start;
    }

    .site-header .site_nav a,
    .site-header .nav_group_toggle {
        min-height: 42px;
        padding: 10px 14px;
        background-color: rgba(255, 255, 255, 0.12);
    }

    .site-header .nav_group {
        display: grid;
        gap: 10px;
    }

    .site-header .nav_group_toggle {
        display: flex;
    }

    .site-header .nav_group_links {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .site-header .nav_group.is-open .nav_group_links {
        display: grid;
    }

    .site-header .nav_group_links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
    }

    .site-header .site_search {
        width: 100%;
    }

    .recommend_pet {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }

    .recommend_pet .ih-item {
        width: calc((100% - 12px) / 2);
        margin-top: 0;
    }

    #banner {
        padding: 16px 0;
    }

    #banner .swiper-wrapper .swiper-slide {
        padding: 0;
    }

    #banner .swiper-wrapper .swiper-slide > .ih-item {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    #banner .swiper-wrapper .swiper-slide .small_list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #banner .swiper-wrapper .swiper-slide .small_list .ih-item {
        width: 100%;
        height: auto;
        /*aspect-ratio: 16 / 9;*/
    }

    .ad_box {
        margin-bottom: 12px;
    }

    .ad_box > div,
    .detail_main .detail_bottom_info .d_main .introduce .adbox > div {
        width: 100% !important;
    }

    .ad_box > div {
        height: 180px !important;
    }

    #new_pet .main .new_pet_main > li a {
        flex-direction: column;
        align-items: flex-start;
    }

    #new_pet .main .new_pet_main > li a .thum,
    #new_pet .main .new_pet_main > li a dl {
        width: 100%;
        margin-right: 0;
    }

    #new_pet .main .new_pet_main > li a .thum {
        height: 220px;
    }

    #new_pet .main .new_pet_main > li a dl {
        padding: 16px;
    }

    #new_pet .aside .top_pet,
    #new_pet .aside .top_pet a {
        min-height: 240px;
    }

    .hot_pet .main li,
    .category_list li,
    .pro_list_box li {
        width: calc((100% - 15px) / 2);
    }

    .hot_pet .main li:nth-child(3n),
    .category_list li:nth-child(3n),
    .pro_list_box li:nth-child(3n) {
        margin-right: 15px;
    }

    .hot_pet .main li:nth-child(2n),
    .category_list li:nth-child(2n),
    .pro_list_box li:nth-child(2n) {
        margin-right: 0;
    }

    .hot_pet .main li:nth-child(n + 3),
    .category_list li:nth-child(n + 3),
    .pro_list_box li:nth-child(n + 3) {
        margin-top: 15px;
    }

    .pat .pat_main .right_dl .t,
    .pat .pat_main .right_dl .b {
        display: grid;
        gap: 16px;
    }

    .pat .pat_main {
        padding: 16px;
        gap: 16px;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .pat .pat_main .left_swiper {
        padding-bottom: 0;
        border-bottom: none;
        border-radius: 20px;
        overflow: hidden;
    }

    .pat .pat_main .right_dl {
        padding: 0;
    }

    .pat .pat_main .right_dl .t a,
    .pat .pat_main .right_dl .b > a {
        width: calc(50% - 8px);
        padding: 0;
        border-left: none;
    }

    .pat .pat_main .right_dl .t {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pat .pat_main .right_dl .b {
        grid-template-columns: 1fr;
    }

    .pat .pat_main .right_dl .t a,
    .pat .pat_main .right_dl .b > a {
        width: 100%;
    }

    .pat .pat_main .right_dl .t a .thum {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .pat .pat_main .right_dl .b > a {
        align-items: flex-start;
    }

    .hot_pet .main,
    .category_list,
    .pro_list_box {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hot_pet .main li,
    .category_list li,
    .pro_list_box li {
        width: 100% !important;
        margin: 0 !important;
    }

    .hot_pet .main li:nth-child(n),
    .category_list li:nth-child(n),
    .pro_list_box li:nth-child(n) {
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    .product_info .info_main {
        flex-direction: column;
    }

    .product_info .info_main .thum,
    .product_info .info_main dl {
        width: 100%;
        margin-right: 0;
    }

    .product_info .info_main .thum {
        height: 240px;
        margin-bottom: 16px;
    }

    .product_main .product_main_content,
    .detail_main .detail_top_info,
    .detail_main .detail_bottom_info {
        padding: 16px;
    }

    .detail_main .detail_top_info .main_info_thum .gallery_stage {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail_main .detail_top_info .main_info_thum .gallery_preview_stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .detail_main .detail_top_info .main_info_thum .gallery_preview_stack .gallery_preview {
        width: 100%;
    }

    .detail_main .detail_top_info .m .main_info_thum {
        flex-direction: column;
    }

    .detail_main .detail_top_info .m .main_info_thum .big,
    .detail_main .detail_top_info .m .main_info_thum .right,
    .detail_main .detail_top_info .m .main_info_thum .right .thum {
        width: 100%;
    }

    .detail_main .detail_top_info .m .main_info_thum .big {
        height: 240px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .detail_main .detail_top_info .m .main_info_thum .right {
        flex-direction: row;
        gap: 10px;
    }

    .detail_main .detail_top_info .m .main_info_thum .right .thum {
        height: 120px;
    }

    .detail_main .detail_top_info .m .main_info_thum > a {
        right: 12px;
        bottom: 12px;
    }

    .detail_main .detail_bottom_info .d_main .introduce .adbox {
        float: none;
        margin: 0 0 16px;
        width: 100%;
    }

    .detail_main .detail_bottom_info .d_main .prev_next {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .detail_main .detail_bottom_info .d_main .prev_next a {
        width: 100%;
    }

    .detail_main .detail_bottom_info .d_main .hot_sell_product #hot_product .swiper-wrapper .swiper-slide a {
        width: 50%;
        padding: 6px;
        box-sizing: border-box;
    }

    .detail_main .detail_bottom_info .d_main .hot_sell_product #hot_product .swiper-wrapper .swiper-slide a:nth-child(n + 3) {
        margin-top: 10px;
    }

    .detail_main .detail_bottom_info aside .category_list,
    .product_main .product_main_content .pet_recommend .category_list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: flex-start;
        gap: 12px;
    }

    .detail_main .detail_bottom_info aside .category_list li,
    .product_main .product_main_content .pet_recommend .category_list li {
        width: auto !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    .detail_main .detail_bottom_info aside .category_list li:nth-child(n),
    .product_main .product_main_content .pet_recommend .category_list li:nth-child(n) {
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list),
    .product_main aside > ul:not(.category_list) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 6px 4px 0;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li,
    .product_main aside > ul:not(.category_list) li {
        margin: 0 !important;
        width: auto !important;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li + li,
    .product_main aside > ul:not(.category_list) li + li {
        margin-top: 0;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li a,
    .product_main aside > ul:not(.category_list) li a {
        height: 100%;
        padding: 12px;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li a .thum,
    .detail_main .detail_bottom_info aside > ul:not(.category_list) li a .thum.thum_small,
    .product_main aside > ul:not(.category_list) li a .thum,
    .product_main aside > ul:not(.category_list) li a .thum.thum_small {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 0 10px;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li a dl,
    .product_main aside > ul:not(.category_list) li a dl {
        width: 100%;
    }

    #extension {
        width: calc(100% - 24px);
    }

    #extension .extension_box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
    }

    #extension .extension_box > li {
        width: 100%;
        height: 100%;
    }

    #extension .extension_box > li.adBox_,
    #extension .extension_box > li.recommend {
        width: 100%;
        height: 100%;
        grid-column: span 2;
        grid-row: span 2;
    }

    #extension .extension_box > li.adBox_ {
        grid-column: span 2;
        grid-row: span 2;
    }

    footer {
        margin-top: 32px;
    }

    footer .container {
        flex-wrap: wrap;
        gap: 12px 0;
    }

    footer .container a {
        width: 50%;
    }

    footer .container a + a {
        border-left: none;
    }
}

@media screen and (max-width: 640px) {
    .container {
        width: calc(100% - 24px);
    }

    .site-header .nav_group_links {
        grid-template-columns: 1fr;
    }

    .site-header .header_panel {
        top: 60px;
        max-height: calc(100vh - 68px);
        padding-left: 12px;
        padding-right: 12px;
    }

    .detail_main .detail_bottom_info .d_main .hot_sell_product #hot_product .swiper-wrapper .swiper-slide a {
        width: 50%;
        padding: 6px;
        box-sizing: border-box;
    }

    .hot_pet .main,
    .category_list,
    .pro_list_box,
    .detail_main .detail_bottom_info aside .category_list,
    .product_main .product_main_content .pet_recommend .category_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hot_pet .main li,
    .category_list li,
    .pro_list_box li,
    .detail_main .detail_bottom_info aside .category_list li,
    .product_main .product_main_content .pet_recommend .category_list li {
        width: auto !important;
        margin: 0 !important;
    }

    .hot_pet .main li:nth-child(n),
    .category_list li:nth-child(n),
    .pro_list_box li:nth-child(n),
    .detail_main .detail_bottom_info aside .category_list li:nth-child(n),
    .product_main .product_main_content .pet_recommend .category_list li:nth-child(n) {
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list),
    .product_main aside > ul:not(.category_list) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 6px 4px 0;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li,
    .product_main aside > ul:not(.category_list) li {
        width: auto !important;
        margin: 0 !important;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li a,
    .product_main aside > ul:not(.category_list) li a {
        height: 100%;
        padding: 10px;
    }

    .detail_main .detail_bottom_info aside > ul:not(.category_list) li a .thum,
    .detail_main .detail_bottom_info aside > ul:not(.category_list) li a .thum.thum_small,
    .product_main aside > ul:not(.category_list) li a .thum,
    .product_main aside > ul:not(.category_list) li a .thum.thum_small {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 0 8px;
    }

    .product_info .info_main {
        padding: 16px;
    }

    .product_info .info_main dl dd table tr td {
        padding-left: 10px;
        font-size: 12px;
    }

    .product_info .info_main dl dd table tr td:nth-child(1) {
        width: 130px;
    }

    .product_info .info_main dl dd table {
        min-width: 360px;
    }

    .detail_main .detail_top_info .m .main_info_content h1,
    .main_title,
    .p_title {
        font-size: 26px;
    }

    .detail_main .detail_top_info .main_info_thum .gallery_preview_stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail_main .detail_top_info .m .main_info_content ul li,
    .crumbs .crumbs_nav {
        line-height: 1.5;
        height: auto;
    }

    #extension .extension_box {
        grid-template-columns: 1fr;
    }

    #extension .extension_box > li.adBox_,
    #extension .extension_box > li.recommend {
        grid-column: span 1;
    }
}
