/**
 * 紧急修复 - 强制单行显示
 * 使用最高优先级选择器和!important
 * 必须确保商品只显示一行
 */

/* 使用body html提升优先级，覆盖所有其他样式 */
/* 匹配实际的HTML结构：.section-content-track > .module-goods-container > ul */
body html .special-goods-sections .special-section .section-content-track,
body html .special-goods-sections .special-section .section-content-slider,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul,
body html .special-goods-sections .special-section .section-content-track > ul,
body html .special-goods-sections .special-section .section-content-track .am-g {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    -webkit-flex-wrap: nowrap !important;
    -ms-flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* 强制所有子项单行显示 - 使用最高优先级 */
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li,
body html .special-goods-sections .special-section .section-content-track > ul > li,
body html .special-goods-sections .special-section .section-content-track .am-g > div,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li > div,
body html .special-goods-sections .special-section .section-content-track > ul > li > div,
body html .special-goods-sections .special-section .section-content-track .am-g > div > div,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li[class*="am-u"],
body html .special-goods-sections .special-section .section-content-track > ul > li[class*="am-u"],
body html .special-goods-sections .special-section .section-content-track .am-g > div[class*="am-u"] {
    flex: 0 0 20% !important;
    -webkit-flex: 0 0 20% !important;
    -ms-flex: 0 0 20% !important;
    flex-shrink: 0 !important;
    -webkit-flex-shrink: 0 !important;
    -ms-flex-negative: 0 !important;
    flex-grow: 0 !important;
    max-width: 20% !important;
    min-width: 20% !important;
    width: 20% !important;
    padding: 0 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
    display: block !important;
    position: relative !important;
    vertical-align: top !important;
}

/* 禁用所有可能的换行方式 */
body html .special-goods-sections .special-section .section-content-track > .module-goods-container,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul,
body html .special-goods-sections .special-section .section-content-track > ul,
body html .special-goods-sections .special-section .section-content-track .am-g {
    white-space: nowrap !important;
    line-height: 0 !important;
}

/* 覆盖AmazeUI的所有am-avg类 */
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-sm-2 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-sm-3 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-sm-4 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-sm-5 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-sm-6 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-md-2 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-md-3 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-md-4 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-md-5 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-md-6 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-lg-2 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-lg-3 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-lg-4 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-lg-5 > li,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul.am-avg-lg-6 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-sm-2 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-sm-3 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-sm-4 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-sm-5 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-sm-6 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-md-2 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-md-3 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-md-4 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-md-5 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-md-6 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-lg-2 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-lg-3 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-lg-4 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-lg-5 > li,
body html .special-goods-sections .special-section .section-content-track > ul.am-avg-lg-6 > li {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
    min-width: 20% !important;
    display: block !important;
    float: none !important;
    clear: none !important;
}

/* 覆盖所有am-u-*类 */
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li[class*="am-u-sm"],
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li[class*="am-u-md"],
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li[class*="am-u-lg"],
body html .special-goods-sections .special-section .section-content-track > ul > li[class*="am-u-sm"],
body html .special-goods-sections .special-section .section-content-track > ul > li[class*="am-u-md"],
body html .special-goods-sections .special-section .section-content-track > ul > li[class*="am-u-lg"],
body html .special-goods-sections .special-section .section-content-track .am-g > div[class*="am-u-sm"],
body html .special-goods-sections .special-section .section-content-track .am-g > div[class*="am-u-md"],
body html .special-goods-sections .special-section .section-content-track .am-g > div[class*="am-u-lg"] {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
    min-width: 20% !important;
    display: block !important;
    float: none !important;
    clear: none !important;
}

/* 禁用伪元素换行 */
body html .special-goods-sections .special-section .section-content-track > .module-goods-container::before,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container::after,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul::before,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul::after,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li::before,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul > li::after,
body html .special-goods-sections .special-section .section-content-track > ul::before,
body html .special-goods-sections .special-section .section-content-track > ul::after,
body html .special-goods-sections .special-section .section-content-track > ul > li::before,
body html .special-goods-sections .special-section .section-content-track > ul > li::after,
body html .special-goods-sections .special-section .section-content-track .am-g::before,
body html .special-goods-sections .special-section .section-content-track .am-g::after,
body html .special-goods-sections .special-section .section-content-track .am-g > div::before,
body html .special-goods-sections .special-section .section-content-track .am-g > div::after {
    display: none !important;
    content: none !important;
}

/* 确保slider容器隐藏溢出 */
body html .special-goods-sections .special-section .section-content-slider {
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* 确保track容器正确设置（不显示滚动条，使用transform滑动） */
body html .special-goods-sections .special-section .section-content-track {
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* 确保module-goods-container和ul可以使用transform滑动 */
body html .special-goods-sections .special-section .section-content-track > .module-goods-container,
body html .special-goods-sections .special-section .section-content-track > .module-goods-container > ul,
body html .special-goods-sections .special-section .section-content-track > ul {
    position: relative !important;
    will-change: transform !important;
    transition: transform 0.3s ease-in-out !important;
}
