body {
    display: flex;
    flex-direction: column;
}
/* 默认显示（PC 上可见） */
.pc-visible {
    display: block;
}
/* PC 设备隐藏 */
.sp-visible {
    display: none;
}
/* 默认情况下（PC端），子元素保持原始顺序 */
.reverse-mobile-1 {
    order: 0; /* 第一列默认顺序 */
}
.reverse-mobile-2 {
    order: 0; /* 第二列默认顺序 */
}
/* 屏幕宽度小于 768px */
@media (max-width: 768px) {
    /* 手机设备隐藏 */
    .pc-visible {
        display: none;
    }
    /* 手机设备可见 */
    .sp-visible {
        display: block;
    }
    .reverse-mobile-1 {
        order: 2; /* 第一列在手机端显示为第二 */
    }
    .reverse-mobile-2 {
        order: 1; /* 第二列在手机端显示为第一 */
    }
    .vertical-text-sp{
        display: flex;
        writing-mode: vertical-lr;
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }
    .sp-stretch{
        display: flex;
        align-items: stretch !important;
    }
}
@media (max-width: 991px) {
    .sp-m-w{
        width: 100%;
    }
    .s-m-arrow{
        display: none;
    }
    .s-p-0{
        padding: 0 !important;
    }
    .inf-xin-p{
        padding: 13px 18px !important;
    }
    .pagination-p li {
        display: inline-block;
        border-radius: 4px;
        min-width: 21px;
        font-size: 0.8rem;
    }
}
@media (min-width: 992px) {
    .info-suject {
        background: #f2f2f2;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .s-m-arrow{
        display: block;
    }
    .pagination-p li {
        display: inline-block;
        margin: 0 4px;
        padding: 6px 12px;
        border-radius: 4px;
        min-width: 35px;
    }
    .course-min-h{
        min-height: 27rem;
    }
}
.center-all-about{
    display: flex;
    display: -webkit-flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
}
.center-all{
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
}
.center-all-up-down{
    display: flex;
    display: -webkit-flex;
    align-items: center;
}
.lines-omitted-1{
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.lines-omitted-2{
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
/* 限定容器高度，比如 300px */
.single-product-img {
    height: 300px;
    display: flex;
    justify-content: center;  /* 水平居中 */
    align-items: center;      /* 垂直居中 */
    overflow: hidden;
    position: relative;
}

/* 图片统一最大高度和宽度自适应 */
.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.page-numbers li {
    display: inline-block;
}
.page-numbers li a,
.page-numbers li span {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}
.page-numbers li a:hover {
    color: #007bff;
}

.page-numbers li .current {
    font-weight: bold;
    color: #007bff;
}
.row-info {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    margin: 3px 0;
}
.row-info-c {
    display: flex;
    align-items: center;
    margin: 3px 0;
}
.background-f {
    background: #ffffff;
}
.c-hr{
    margin: 3px 0;
    border: 0;
    border-top: 1px solid rgb(0 0 0 / 30%)
}
.c-hr-2{
    margin: 3px 0;
    border: 0;
    border-top: 2px solid rgb(0 0 0 / 50%)
}
.main-wrapper {
    flex: 1;
}
.submit-result span {
    display: none;
    transition: all 0.2s ease-out;
}

.submit-result span.show-result {
    margin-top: 24px;
    display: block;
}

.submit-result #success {
    color: #28a745; /* 替代 $green */
}

.submit-result #error {
    color: #dc3545; /* 替代 $red */
}

.submit-result .error-color {
    background: rgba(255, 0, 0, 0.1);
}
.c-w{
    color: #fff;
}
.c-3{
    color: #333;
}
.testimonial-bg-n{
    height: 600px;
}
.single-product-img a {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.product-img-w {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-i {
    height: 100%;
    width: auto !important;
    object-fit: contain;
}
.cds{
    height: 18px !important;
    border-radius: 0  !important;
    padding: 8px !important;
}


.size-option.active {
    background-color: #006be9;
    color: #fff;
}

/* WooCommerce产品描述 */

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignright {
    float: right;
    margin-left: 1rem;
}
.alignleft {
    float: left;
    margin-right: 1rem;
}

/* /WooCommerce产品描述 */

.quantity-selector {
    position: relative;
    width: 120px;
    font-family: sans-serif;
}
/* /WooCommerce产品描述 */

.quantity-selector {
    position: relative;
    width: 120px;
    font-family: sans-serif;
}

.quantity-display {
    padding: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 160px;
    border: 1px solid #ccc;
    background-color: #fff;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.quantity-options div {
    padding: 8px;
    cursor: pointer;
}

.quantity-options div:hover {
    background-color: #f2f2f2;
}
.variation-option {
    cursor: pointer;
    user-select: none;
    padding: 3px;
    border: 1px solid #ccc;
}

.variation-option.active {
    background-color: #333 !important;
    color: #fff;
    border-color: #333 !important;
    padding: 3px;
}


.variation-option.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.product-short-description img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}


.quantity-display {
    padding: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 160px;
    border: 1px solid #ccc;
    background-color: #fff;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.quantity-options div {
    padding: 8px;
    cursor: pointer;
}

.quantity-options div:hover {
    background-color: #f2f2f2;
}
.variation-option {
    cursor: pointer;
    user-select: none;
    padding: 3px;
    border: 1px solid #ccc;
}

.variation-option.active {
    background-color: #333 !important;
    color: #fff;
    border-color: #333 !important;
    padding: 3px;
}


.variation-option.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.product-short-description img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

.price ins {
    text-decoration: none; /* 移除下划线 */
    font-weight: bold;
}


#thumbnailList {
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
}

#thumbnailList::-webkit-scrollbar {
    width: 6px;
}

#thumbnailList::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}
/*禁止购物车产品点击跳转*/
/*.wc-block-cart-item__wrap a {*/
/*    color: #333;*/
/*    pointer-events: none;*/
/*    text-decoration: none;*/
/*    cursor: default;*/
/*}*/


/*header分类菜单*/
.category-mega-container {
    display: flex;
    gap: 20px;
}
.category-level-1 ul, .category-level-2 ul, .category-level-3 ul {
    list-style: none;
    padding: 0;
}
.category-level-1 li, .category-level-2 li {
    cursor: pointer;
    padding: 6px 10px;
    display: flex;
    align-items: center;
}
.category-level-1 li.active, .category-level-2 li.active {
    background: #e8f1fa;
    font-weight: bold;
}
.subcategory-block, .sub-subcategory-block {
    display: none;
}
.subcategory-block.active, .sub-subcategory-block.active {
    display: block;
}
.category-level-3 ul li a {
    display: flex;
    align-items: center;
    padding: 4px 6px;
}
.category-level-1 li,
.category-level-2 li,
.category-level-3 li {
    margin: 9px 0 !important;
}
.category-level-1,
.category-level-2,
.category-level-3 {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}
.category-level-1::-webkit-scrollbar,
.category-level-2::-webkit-scrollbar,
.category-level-3::-webkit-scrollbar {
    width: 3px;
}

.category-level-1::-webkit-scrollbar-thumb,
.category-level-2::-webkit-scrollbar-thumb,
.category-level-3::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}
@media (min-width: 769px) {
    .d-sp { display: none !important; }
}
@media (max-width: 768px) {
    .d-sp { display: block !important; }
}
/*header分类菜单-end*/


