/* ===== 列表模式样式 ===== */
.commodity-layout.list-mode {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.commodity-layout.list-mode .goods-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff !important;
    opacity: 1 !important;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
    cursor: default;
    transition: none;
    min-height: 52px;
}
/* 删除整行 hover 效果 */
.commodity-layout.list-mode .goods-custom .list-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.commodity-layout.list-mode .goods-custom .list-left .commodity-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.commodity-layout.list-mode .goods-custom .list-left .list-name {
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}
.commodity-layout.list-mode .goods-custom .list-price {
    font-size: 15px;
    font-weight: 600;
    color: #18c16b;
    margin: 0 0 0 15px;
    flex-shrink: 0;
    white-space: nowrap;
}
.commodity-layout.list-mode .goods-custom .list-btn {
    padding: 4px 16px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #f1a3b0;
    color: #fff;
}
/* 购买按钮悬浮效果 */
.commodity-layout.list-mode .goods-custom .list-btn:hover:not(:disabled) {
    background: #d47f8e;
    transform: scale(1.06);
    box-shadow: 0 2px 12px rgba(241, 163, 176, 0.4);
}
.commodity-layout.list-mode .goods-custom .list-btn:disabled {
    background: #d0d0d0;
    color: #999;
    cursor: not-allowed;
    transform: none;
}
.commodity-layout.list-mode .goods-custom > a:not(.list-left) {
    display: none;
}
.commodity-layout.list-mode .goods-custom .list-left a {
    text-decoration: none;
    color: inherit;
}

/* 列表模式响应式 */
@media (max-width: 600px) {
    .commodity-layout.list-mode .goods-custom {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
    }
    .commodity-layout.list-mode .goods-custom .list-left {
        flex: 1 1 100%;
        gap: 10px;
    }
    .commodity-layout.list-mode .goods-custom .list-price {
        margin: 0 12px 0 0;
        font-size: 14px;
    }
    .commodity-layout.list-mode .goods-custom .list-btn {
        padding: 3px 12px;
        font-size: 12px;
    }
}


/* ===== 商品介绍排版规范化（修复 TG 与多层列表偏右、缩进错乱问题） ===== */
.acg-rich {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.acg-rich .apple-app {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    clear: both !important;
}

.acg-rich .apple-app > div {
    float: none !important;
}

.acg-rich .apple-app > div:first-child {
    flex: 0 0 90px !important;
}

.acg-rich .apple-app > div:last-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.acg-rich .apple-app img {
    margin: 0 !important;
    display: block !important;
}

.acg-rich .app-warning,
.acg-rich .app-tip,
.acg-rich .app-desc {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.acg-rich ul,
.acg-rich ol {
    padding-left: 1.25rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.acg-rich .app-desc ul,
.acg-rich .app-desc ol {
    padding-left: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.acg-rich .app-desc ul > li,
.acg-rich .app-desc ol > li {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
