/* 移动设备优先（默认样式） */
body { font-size: 12px; }
/* 平板竖屏 & 小屏设备（≥768px） */
@media (min-width: 768px) {
    body { font-size: 15px; }
}
/* 平板横屏 & 小桌面（≥1024px） */
@media (min-width: 1024px) {
    body { font-size: 16px; }
}
/* 标准桌面（≥1280px） */
@media (min-width: 1280px) {
}
/* 大桌面/电视（≥1440px） */
@media (min-width: 1440px) {
}
/* 超宽屏（≥1920px） */
@media (min-width: 1920px) {
}

a{
    color:#212529;
    text-decoration: none;
}

/**scroll text start**/
#headCaptions{
    background: #EEDAC8;
    text-align: center;
    position: relative;
    height: 2em;
    overflow: hidden;
    display: inline-block;
    line-height:2em;
}
.container-full {
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.head-captions-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    animation: rotateWords 12s linear infinite 0s;
    transform: translateX(100%);
}
.head-captions-text:nth-child(1) { animation-delay: 0s; }
.head-captions-text:nth-child(2) { animation-delay: 4s; }
.head-captions-text:nth-child(3) { animation-delay: 8s; }
@keyframes rotateWords {
    0% { opacity: 0; transform: translateX(100%); }
    10% { opacity: 1; transform: translateX(0); }
    30% { opacity: 1; transform: translateX(0); }
    40% { opacity: 0; transform: translateX(-100%); }
    100% { opacity: 0; transform: translateX(-100%); }
}
/**scroll text end**/

/**logo model start**/
#logoModel{
    text-align: center;
    margin-top:10px;
    min-height: 50px;
}
#logoPhone{
    width: 150px;
}
#logoModelPc{
    display: none;
}
.logo-model-ifont{
    font-size: 22px;
    font-weight: bold;
    line-height: 42px;
    margin-left: 10px;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-muber {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
}

.cart-muber-pc {
    position: absolute;
    top: 25px;
    left: 20px;
}

.cart-muber-phone {
    position: absolute;
    top: 5px;
    right: -10px;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

#navbarNavDropdown .nav-item a {
    color:#000000;
}

#navbarNavDropdown .active{
    border-bottom: 2px solid #000;
    font-weight:700;
}

@media (min-width: 767px) {
    #logoModel{
        line-height: 100px;
    }
    #logoModelPc{
        display: flex;
    }
    #logoModelPhone{
        display: none;
    }
    .logo-model-ifont{
        font-size: 30px;
        margin-left: 0px;

    }
}
.logo-phone-i{
    text-align: right;
    padding-right: 100px;
}

.navbar-nav-font{
    font-size: 20px;
    font-weight: bold;
}
.navbar-nav-font-ml20{
    margin-left: 20px;
}
#searchOffcanvas{
    height:100px;
}

#searchOffcanvas .offcanvas-body.no-overflow {
    overflow-y: visible !important;

}


.container-full.search-goods-row{
    background-color: #fff;
    padding-bottom:20px;
}

.search-goods-row a{
    color:#212529;
    text-decoration: none;
}

.search-goods-row .shop-goods-money{
    margin-top:10px;
    color:#958E09;
}
.search-goods-row .shop-goods-button{
    margin-top:10px;
}

.search-goods-row .shop-goods button{
    color:#515151;
    background: #E9E6ED;
}
.search-goods-row .shop-goods button:hover{
    color:#7b7a7a;
    background: #dcd7e2;
}

.search-goods-row .shop-goods-title{
    margin-top:20px;
    color:#cc3366;
    overflow:hidden;
}

.search-goods-row .shop-goods-money{
    margin-top:10px;
}
.search-goods-row .shop-goods-money .base-price{
    text-decoration: line-through;
    color: rgba(255, 126, 1, 0.4);
}
.search-goods-row .shop-goods-money .actual-price{
    color: #FF7E01;
}

/**手机端只显示2个商品**/
@media (max-width: 576px) {
    .search-goods-row .shop-goods:nth-child(n+3) {
        display: none;
    }
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}
/**logo model search start**/
.search-ifont {
    font-size: 20px;
    line-height: 67px;
    text-align: center;
}
.logo-phone-i i:last-child{
    font-size: 28px;
}
.search-input {
    border: 0px;
    padding-left: 20px;
}
.search-close {
    font-size: 16px;
    line-height: 67px;
    text-align: center;
    align-items: center;
    justify-content: center;
}
@media (min-width: 767px) {
    .search-ifont {
        font-size: 30px;
    }
    .search-close {
        font-size: 24px;
    }
}
.modal-backdrop {
    opacity: 0.5 !important; /* 默认值为 0.5，可调整为更低值 */
}
/**logo model search end**/

/**logo model end**/

/**footer subscribe start**/
#footerSubscribe{
    margin-bottom: 10px;
}
#footerSubscribe .subscribe-txt{
    font-size: 13px;
    padding: 6px 16px;
}
#footerSubscribe .subscribe-submit{
    background: #222423;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0 !important;
    text-align: center;
}
#footerSubscribe .row >div{
    margin-top: 10px;
}
@media (min-width: 767px) {
    #footerSubscribe .subscribe-txt{
        text-align: right;
        line-height: 50px;
    }
    #footerSubscribe .row >div{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #footerSubscribe .subscribe-email{
        padding: 5px 0 5px 10px;
    }
    #footerSubscribe .subscribe-submit{
        font-size: 14px;
    }
}
@media (min-width: 1024px) {
    #footerSubscribe .subscribe-txt {
        font-size: 17px;
        text-align: center;
        line-height: 22px;
    }
}
/* 移除原来对列的所有控制 */
.email-container {
    display: block !important; /* 覆盖 display: flex */
    justify-content: normal !important;
    align-items: normal !important;
}

/* 给验证码 div 添加样式 */
.captcha-code {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: left;
    width: 100%;
}

/* 修改原来的媒体查询，排除 email-container */
@media (min-width: 767px) {
    #footerSubscribe .subscribe-txt{
        text-align: right;
        line-height: 50px;
    }
    #footerSubscribe .row >div:not(.email-container){
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #footerSubscribe .subscribe-email{
        padding: 5px 0 5px 10px;
    }
    #footerSubscribe .subscribe-submit{
        font-size: 14px;
    }
}
/* 添加包裹容器 */
.email-wrapper {
    position: relative;
    width: 100%;
}

/* 绝对定位验证码 */
.captcha-code {
    position: absolute;
    top: 100%; /* 放在输入框正下方 */
    left: 0;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    text-align: left;
}
/**footer subscribe end**/

/**footer menu start**/
#footerMenu {
    background-color: #464646;
}

.footer-menu-item {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

#footerMenu a:hover {
    opacity: 0.8;
}

/* 为不同语言做调整 */
@media (max-width: 1200px) {
    .footer-menu-item {
        font-size: 0.85rem;
    }
    .list-inline-item {
        padding: 0.5rem 0.75rem !important;
    }
}

@media (max-width: 992px) {
    .footer-menu-item {
        font-size: 0.8rem;
        white-space: normal; /* 允许换行 */
        word-break: break-word; /* 长单词换行 */
    }
    .list-inline-item {
        padding: 0.4rem 0.6rem !important;
    }
}

@media (max-width: 768px) {
    #footerMenu .row {
        min-height: auto;
        padding: 1rem 0;
    }

    .footer-menu-item {
        font-size: 0.8rem;
        white-space: normal;
    }

    .list-inline-item {
        padding: 0.3rem 0.5rem !important;
        width: auto;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .footer-menu-item {
        font-size: 0.75rem;
    }

    .list-inline-item {
        padding: 0.2rem 0.4rem !important;
    }
}

.quantity-selector {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}


.quantity-selector:hover {
    border-color: #bdbdbd;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);

}


.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    color: #424242;
}


.quantity-btn:hover {
    background-color: #f5f5f5;
    color: #212121;
}


.quantity-btn:active {
    background-color: #eeeeee;
}


.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    -moz-appearance: textfield;
}


.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.quantity-input:focus {
    outline: none;
    background-color: #f5f5f5;
}
.inventory-txt {
    color:red;
}

@media (max-width: 480px) {
    .quantity-btn {
        width: 36px;
        height: 36px;
    }

    .quantity-input {
        width: 40px;
        height: 36px;
        font-size: 15px;
    }
}
/**footer menu end**/


/**car start**/
 #cartOffcanvasBody .cart-item {
     background: white;
     border-radius: 12px;
     padding: 16px;
     margin-bottom: 15px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     border-left: 4px solid #ff3c41;
     display: flex;
     align-items: flex-start;
     gap: 15px;
     transition: all 0.3s ease;
     position: relative;
 }

#cartOffcanvasBody .cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

#cartOffcanvasBody .item-image-container {
    flex-shrink: 0;
}

#cartOffcanvasBody .item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

#cartOffcanvasBody .item-details {
    flex: 1;
    min-width: 0;
}

#cartOffcanvasBody .item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#cartOffcanvasBody .item-price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

#cartOffcanvasBody .item-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff3c41;
}

#cartOffcanvasBody .item-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

#cartOffcanvasBody .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}


#cartOffcanvasBody .item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
}

#cartOffcanvasBody .remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#cartOffcanvasBody .remove-btn:hover {
    background: #fff5f5;
    color: #ff3c41;
}

#cartOffcanvasBody .item-subtotal {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* 例如在小屏幕下 */
    .offcanvas-car {
        width: 90% !important; /* 小屏幕的宽度 */
    }

    #cartOffcanvasBody .item-price {
        font-size: 12px;

    }
}
/**car end**/


/**lang start**/
.country-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.country-flag {
    width: 28px;
    height: 21px;
    display: inline-block;
    background-size: cover;
    flex-shrink: 0;
}
.country-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 16px;
    gap: 16px;
}
.country-option:hover {
    background-color: #f8f9fa;
}
.selected-country {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 12px;
}
/* 自定义下拉按钮样式 */
.custom-dropdown-btn {
    background: white !important;
    border: none;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    font-size: 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    width: 100%; /* 让按钮宽度继承父级 */
}
.custom-dropdown-btn::after {
    display: none !important;
}
.custom-dropdown-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.custom-dropdown-btn:focus {
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.dropdown-arrow {
    color: #6c757d;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.dropdown-toggle.show .dropdown-arrow {
    transform: rotate(180deg);
}
/* 下拉菜单样式 - 向上展开 */
.custom-dropdown-menu {
    border: none;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    bottom: 100% !important;
    top: auto !important;
    transform: none !important;
    margin-bottom: 5px;
}
.dropdown-container {
    display: inline-block;
}

.preview-title {
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
}
.demo-content {
    height: 2000px;
    padding: 20px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 8px;
}
/**lang end**/
